[Libav-user] how can i use cisco openh264 encoder in ffmpeg

Josef Vosyka josef.vosyka at sharkintelligence.com
Wed Apr 13 15:22:08 CEST 2016


I followed your guidance and received this error:

    ERROR: openh264 not found using pkg-config

I'm on MacOSX 10.11.4 (15E65) and trying to build ffmpeg 3.0 with
openh264 for iOS.

BTW, I'm using this build script:
https://github.com/kewlbear/FFmpeg-iOS-build-script

I've placed the libopenh264-1.5.0-ios.a file in a separate dir and
used it as extra-ldflags as proposed bellow.

I even tried to rename the lib to various names to avoid problem with lib name.

Content of /pp/src/ffmeg/openh264:
libopenh264-1.5.0-ios.a	libopenh264-1.5.0.a	
openh264-1.5.0.a	openh264.a

This is my extra-ldflags:

    extra-ldflags=-arch arm64 -mios-version-min=6.0 -fembed-bitcode
-L/pp/src/ffmeg/openh264


I will appreciate your help with this,

--Josef






>* On 23 Oct 2015, at 12:44, Amir Hossein Rouhi <amir.rouhi at rmit.edu.au <http://ffmpeg.org/mailman/listinfo/libav-user>> wrote:
*> >* Do you know how can i used cisco openh264 encoder in ffmpeg
instead of using libx264?
*
It’s basically rather easy. You only need to tell FFmpeg to use it
while linking and you can then simply use the H.264 encoder and FFmpeg
will use OpenH264 for you.
Just add the flag “—enable-libopenh264” and add some extra linked
flags to tell FFmpeg where to look for the OpenH264 library
“—extra-ldflags=<path to OpenH264 lib here>” while compiling.

Works like a charm!

Best,

Flo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160413/af366a19/attachment.html>


More information about the Libav-user mailing list