Page MenuHomePhabricator

[native] Remove ffmpeg dependency
ClosedPublic

Authored by angelika on Thu, Mar 20, 4:48 AM.
Tags
None
Referenced Files
F5241794: D14481.id47608.diff
Sat, Apr 5, 8:31 PM
F5237632: D14481.id47557.diff
Sat, Apr 5, 3:17 PM
F5235800: D14481.id47559.diff
Sat, Apr 5, 11:05 AM
F5235773: D14481.id47503.diff
Sat, Apr 5, 10:57 AM
F5235613: D14481.id47607.diff
Sat, Apr 5, 10:49 AM
Unknown Object (File)
Fri, Apr 4, 9:23 PM
Unknown Object (File)
Fri, Apr 4, 7:39 PM
Unknown Object (File)
Thu, Apr 3, 7:14 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.