Bug 7425

Summary: gst-ffmpeg broken since libav-9 update
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Gary Thomas <gary>
Component: coreAssignee: Ross Burton <ross.burton>
Status: VERIFIED WONTFIX QA Contact: Cristina Agurida <cristina-danielax.agurida>
Severity: critical    
Priority: Medium+ CC: cristina-danielax.agurida, jku, Martin.Jansa, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.9 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Gary Thomas 2015-03-07 13:29:03 UTC
There seem to be major issues with gst-ffmpeg since the move to libav-9.  The recipe builds with libav-9, but fails at runtime.  At least these errors have been seen:

(gst-plugin-scanner:1108): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstffmpeg.so': /usr/lib/gstreamer-0.10/libgstffmpeg.so: undefined symbol: av_get_bits_per_sample_format

(gst-plugin-scanner:971): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstffmpeg.so': /usr/lib/gstreamer-0.10/libgstffmpeg.so: undefined symbol: avcodec_get_context_defaults


[Poky] commit 09aa2b1ed85408939a8bae433c032ea5da7cc7a5 attempted to address this but does not completely.  In particular, in that commit there is a comment that some known patches were left out. Why?  At least one of them might have addressed some of these issues.

As is, this component is totally broken :-(
Comment 1 Ross Burton 2015-03-10 17:43:56 UTC
Gary, did you try switching to the internal libav?
Comment 2 Jussi Kukkonen 2015-03-31 13:29:58 UTC
It seems the configuration for the internal libav goes somehow wrong if it's enabled. I'll take a look at fixing that and testing the internal one.
Comment 3 Jussi Kukkonen 2015-04-01 08:18:25 UTC
About using internal libav:
* some tweaks are required (and the libav9 patches dropped) but it does build and seems to work 
* the internal libav version is 0.7.2 (versus 9.16 in oecore)

The last point makes this route unappealing: 0.7.2 must have a CVE list the length of my arm (and of course countless bugs that have been silently fixed in later versions). Even if we backported the tip of 0.7 branch (0.7.7), it has still been officially unmaintained for two years. 

As ugly as the libav9 patches look, they're probably the second safest option (option #1 is dropping GStreamer 0.10 altogether).
Comment 4 Jussi Kukkonen 2015-04-01 08:31:28 UTC
Martin, can you comment on why the libav9 patch includes most of the Gentoo patches but not all?
Comment 5 Martin Jansa 2015-04-01 18:04:31 UTC
(In reply to comment #4)
> Martin, can you comment on why the libav9 patch includes most of the Gentoo
> patches but not all?

I'm sorry, I don't remember the reason anymore. IIRC it was already included in one of remaining 42 patches we have for gst-ffmpeg-0.10.13
Comment 6 Ross Burton 2015-05-22 00:01:30 UTC
This isn't part of oe-core anymore, closing.
Comment 7 Cristina Agurida 2015-06-05 10:18:17 UTC
As of current bug status and last comment I will mark this issue as verified.