Closed Bug 1107264 Opened 9 years ago Closed 9 years ago

Enable FFmpeg/LibAV with mac for debugging purposes

Categories

(Core :: Audio/Video, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37
Tracking Status
firefox36 --- fixed
firefox37 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(1 file)

This is a patch that I've been carrying in my patch queue for a while. It allows to use FFmpeg/LibAV with firefox and use FFmpeg h264/aac decoder instead of CoreAudio/CoreVideo.

Instructions to enable FFmpeg on a mac are as follow:

compile nightly with "ac_add_options --enable-ffmpeg" in your .mozconfig

Install macport ffmpeg-devel port.
Start nightly with DYLD_LIBRARY_PATH=/opt/local/lib

Sometimes that may prevent nightly from starting, if you have installed libraries that are incompatible with system one (such as sqlite3).

In which case, you can build your own FFmpeg as follow. I use FFmpeg and branch release/2.4

$ ./configure --enable-debug --enable-shared --disable-stripping --enable-nonfree --prefix=$PWD/build
$ make
$ make install

then start nightly with:
DYLD_LIBRARY_PATH=$PWD/build/lib

replace $PWD/build with the path you intend to install FFmpeg to.

in about:config, set media.fragmented-mp4.ffmpeg.enabled to true
Enable FFmpeg use for mac
Attachment #8531734 - Flags: review?(ajones)
Blocks: 1107339
Attachment #8531734 - Flags: review?(ajones) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/3e7232eebf3f
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment on attachment 8531734 [details] [diff] [review]
Enable the use of FFmpeg on mac

Approval Request Comment
[Feature/regressing bug #]: MSE
[User impact if declined]: Less consistent playback support, video sites more
likely to use flash.
[Describe test coverage new/current, TBPL]: Landed on m-c.
[Risks and why]: None. This change only affects testing code behind a pref.
[String/UUID change made/needed]: None
Attachment #8531734 - Flags: approval-mozilla-aurora?
Attachment #8531734 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.