Page MenuHomePhabricator

[native] Remove ffmpeg dependency
ClosedPublic

Authored by angelika on Mar 20 2025, 4:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 19, 7:23 PM
Unknown Object (File)
Fri, Apr 18, 6:16 AM
Unknown Object (File)
Thu, Apr 17, 12:18 PM
Unknown Object (File)
Thu, Apr 17, 11:43 AM
Unknown Object (File)
Thu, Apr 17, 5:11 AM
Unknown Object (File)
Mon, Apr 14, 5:16 PM
Unknown Object (File)
Mon, Apr 14, 1:20 AM
Unknown Object (File)
Thu, Apr 10, 4:02 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.Mar 21 2025, 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.