Page MenuHomePhabricator

[native] Remove ffmpeg dependency
ClosedPublic

Authored by angelika on Thu, Mar 20, 4:48 AM.
Tags
None
Referenced Files
F5111648: D14481.diff
Wed, Apr 2, 4:32 AM
Unknown Object (File)
Mon, Mar 31, 12:51 PM
Unknown Object (File)
Sun, Mar 30, 11:10 AM
Unknown Object (File)
Sun, Mar 30, 10:28 AM
Unknown Object (File)
Sat, Mar 29, 5:00 PM
Unknown Object (File)
Sat, Mar 29, 12:50 PM
Unknown Object (File)
Sat, Mar 29, 12:26 PM
Unknown Object (File)
Sat, Mar 29, 9:33 AM
Subscribers

Details

Summary

https://linear.app/comm/issue/ENG-10314/migrate-comm-app-to-use-new-media-module

  • got rid of ffmpeg dependency
  • renamed ffmpeg.js to mediaProcessingQueue.js because the main feature of this file is the queue and wrapping functions from the media module
  • reanamed FFmpegStatistics and video_ffmpeg_transcode step

Depends on D14480

Test Plan

Compile the app and verify sending videos still work

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.

Wondering how much smaller our binaries will be without ffmpeg ๐Ÿ˜€

This revision is now accepted and ready to land.Fri, Mar 21, 8:57 AM
native/media/media-processing-queue.js
31 โ†—(On Diff #47503)

Do we still need this synchronous queue? We previously had it because of limitations in ffmpeg-kit, but it reduces performance when a user uploads multiple media in a single message

native/media/media-processing-queue.js
31 โ†—(On Diff #47503)

I was thinking about this too, but I have a suspicion that mobile devices can struggle with processing multiple videos simultaneously and CPU performance will be a limiting factor

native/media/media-processing-queue.js
31 โ†—(On Diff #47503)

Tested it and:

  1. It's very slow
  2. Reporting progress currently works for one video at a time - we can implement progress for multiple videos (for example by adding video id to the progress event) but it's some additional work
This revision was automatically updated to reflect the committed changes.