Bug 7425 - gst-ffmpeg broken since libav-9 update
Summary: gst-ffmpeg broken since libav-9 update
Status: VERIFIED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ critical
Target Milestone: 1.9 M1
Assignee: Ross Burton
QA Contact: Cristina Agurida
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-03-07 13:29 UTC by Gary Thomas
Modified: 2015-06-05 10:18 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.