Using system ffmpeg/compiling ffmpeg with custom flags

551 views
Skip to first unread message

Lander Noterman

unread,
Sep 18, 2018, 1:42:37 PM9/18/18
to discuss-webrtc
Hi!

For my project I am currently in the process of adding a hardware H264 encoder for the Raspberry Pi in WebRTC.
My plan was to use FFmpeg to provide an easy to use interface to the hardware accelerated encoder, but I have noticed that the WebRTC source includes the ffmpeg source in the third_party folder.
The "Chrome"-branded build does not include the h264_omx encoder I need (or any encoders, it seems).

At this point, I can see two solutions:
1. Adapt the build system to build ffmpeg with the required encoder (I would need to add the flags --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree)
2. Ditch the included ffmpeg entirely and use the system libraries (I have the correct ffmpeg build installed, i.e. ffmpeg -encoders displays the h264_omx encoder I need).

What would be the easiest/preferred solution and how would I do it?

Thanks!

李晓帆

unread,
Sep 18, 2018, 10:48:31 PM9/18/18
to discuss...@googlegroups.com

Lander Noterman <lander....@gmail.com> 于2018年9月19日周三 上午1:42写道:
--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/8465d150-1aa4-4a2d-b2dd-52559904dc67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lander Noterman

unread,
Sep 19, 2018, 3:05:58 AM9/19/18
to discuss-webrtc
Hi! Thanks for the help, however, executing python chromium/scripts/build_ffmpeg.py linux arm-neon results in:

Traceback (most recent call last):
  File "chromium/scripts/build_ffmpeg.py", line 21, in <module>
    import gn_helpers
ImportError: No module named gn_helpers

I have cloned the webrtc repo and have depot_tools in my PATH. How to make gn_helpers available?

Op woensdag 19 september 2018 04:48:31 UTC+2 schreef Wesley:
Reply all
Reply to author
Forward
0 new messages