Bug 10824 - GStreamer can't open FFmpeg codecs
Summary: GStreamer can't open FFmpeg codecs
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Funda Wang
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, Triaged
Depends on:
Blocks:
 
Reported: 2013-07-23 12:50 CEST by Juan Magallon
Modified: 2017-09-10 22:03 CEST (History)
2 users (show)

See Also:
Source RPM: gstreamer1.0-1.0.8-1.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Juan Magallon 2013-07-23 12:50:52 CEST
Hi...

since some time ago, totem fails to open files that have a codec that
redirects gstreamer to FFmeg (reported as FFODIVX by gnome-mplayer).
Probably some part of gstreamer-1.0 needs a rebuild for new ffmpeg...

Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-07-23 19:30:03 CEST
seems not that as it was rebuild two days after 

http://svnweb.mageia.org/packages?view=revision&revision=452437
http://svnweb.mageia.org/packages?view=revision&revision=453545

Keywords: (none) => Triaged
Assignee: bugsquad => fundawang

Comment 2 Juan Magallon 2013-07-23 20:54:31 CEST
More, for if it rings any bell...
Lets take a failing video file:

werewolf:~/tmp> totem test.avi
** Message: Missing plugin: gstreamer|1.0|totem|MPEG Video decoder|decoder-video/mpeg, mpegversion=(int)4 (MPEG Video decoder)
** Message: PackageKit: xid = 37748751
** Message: PackageKit: Codec nice name: MPEG Video decoder
** Message: PackageKit: field is: mpegversion, type: gint
** Message: PackageKit: structure: gstreamer1(decoder-video/mpeg)(mpegversion=4)()(64bit)
** Message: PackageKit: Did not install codec: GDBus.Error:org.freedesktop.PackageKit.Modify.internalError: failed to resolve: Error calling StartServiceByName for org.freedesktop.PackageKit: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/libexec/dbus-1/dbus-daemon-launch-helper received signal 5
** Message: No installation candidate for missing plugins found.

werewolf:~/tmp> dmesg
...
[ 9853.467580] traps: packagekitd[8119] trap int3 ip:7f523d83a0bb sp:7fff4f5a43d0 error:0

werewolf:~/tmp> ffplay test.avi
...
Input #0, avi, from 'test.avi':    0KB vq=    0KB sq=    0B f=0/0   
  Duration: 01:18:32.32, start: 0.000000, bitrate: 1246 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 624x352 [SAR 1:1 DAR 39:22], 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 125 kb/s

werewolf:~/tmp> mplayer  test.avi
...
VIDEO:  [XVID]  624x352  12bpp  25.000 fps  1108.3 kbps (135.3 kbyte/s)
...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.18.102 (external)
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)

CC: (none) => jamagallon

Comment 3 Juan Magallon 2013-07-23 20:57:39 CEST
Perhaps...

werewolf:~# ver lib64avcodec
lib64avcodec54-1.2.1-3.mga4.tainted x86_64
lib64avcodec55-2.0-1.mga4.tainted x86_64

werewolf:~# rpm -e lib64avcodec54-1.2.1-3.mga4.tainted
error: Failed dependencies:
	libavcodec.so.54()(64bit) is needed by (installed) lib64avformat54-1.2.1-3.mga4.tainted.x86_64
	libavcodec.so.54()(64bit) is needed by (installed) transcode-1.1.7-6.mga4.tainted.x86_64
	libavcodec.so.54()(64bit) is needed by (installed) x264-0.130-0.20130615.stable.3.mga4.tainted.x86_64

x264 (at least tainted) is built against old ffmpeg ?

Will try with non-tainted...
Comment 4 Juan Magallon 2013-07-23 21:15:13 CEST
BTW...

werewolf:~/in# urpmi x264-0.130-0.20130615.stable.3.mga4.tainted.src.rpm
...
To satisfy dependencies, the following packages are going to be installed:
...
  lib64x264-devel                0.130        0.20130615.s> x86_64

x264 src.rpm requires itself ??
Comment 5 Jani Välimaa 2013-07-24 19:07:09 CEST
Is gstreamer1.0-libav installed? Or other pkgs which provides 'gstreamer1(decoder-video/mpeg)(mpegversion=4)'?

"urpmf --provides --literal 'gstreamer1(decoder-video/mpeg)(mpegversion=4)'" tells pkgs which provides it.

CC: (none) => jani.valimaa

Comment 6 Juan Magallon 2013-07-24 21:37:25 CEST
Yes, it is installed:

werewolf:~# urpmf --provides --literal 'gstreamer1(decoder-video/mpeg)(mpegversion=4)'
gstreamer1.0-plugins-bad:gstreamer1(decoder-video/mpeg)(mpegversion=4)(systemstream=false)()(64bit)
gstreamer1.0-libav:gstreamer1(decoder-video/mpeg)(mpegversion=4)(systemstream=false)()(64bit)
gstreamer1.0-plugins-bad:gstreamer1(decoder-video/mpeg)(mpegversion=4)(systemstream=false)()(64bit)
Comment 7 Jani Välimaa 2013-07-25 18:07:18 CEST
Just to be sure: urpmf doesn't tell which pkgs are installed, but pkgs available on repos. 'rpm -q gstreamer1.0-libav' tells if it's installed.
Comment 8 Juan Magallon 2013-07-25 21:04:23 CEST
Yes, it is intalled:

werewolf:~# rpm -q gstreamer1.0-libav
gstreamer1.0-libav-1.1.2-1.mga4
werewolf:~# rpm -q --provides gstreamer1.0-libav | grep 'decoder-video/mpeg'
gstreamer1(decoder-video/mpeg)(mpegversion=1)(systemstream=false)()(64bit)
gstreamer1(decoder-video/mpeg)(mpegversion=2)(systemstream=false)()(64bit)
gstreamer1(decoder-video/mpeg)(mpegversion=4)(systemstream=false)()(64bit)
Comment 9 Juan Magallon 2013-07-25 21:33:10 CEST
Another clue...
I noticed that the FOURCC of a failin fle was XVID, not DIVX.
Tried this:

ffmpeg -i t0.avi -c: copy -vtag DIVX t1.avi
ffmpeg -i t0.avi -c: copy -vtag XVID t2.avi

so t1 plays fine on totem/parole and t2 fails.
Probaly it is just that no gstreamer-1.0 plugin has registered XVID as
supported !!

What gnome-mplayer reports as FFODIVX is the chosen codec...
Comment 10 Juan Magallon 2013-07-25 22:11:41 CEST
Could be this ? In gst-1.0-plugins-bad spec I found this:

%define build_amrwb 0
%define build_faac  0
%define build_faad  0
%define build_xvid  0
%define build_dts   0
%define build_dirac 0
%define build_gme   1
%define build_celt  1

%if %build_plf
%define build_amrwb 0
%define build_faac  0
%define build_faad  1
%define build_xvid  0
%define build_dts   1
%endif

it looks xvid is disabled since this log entry:

* Wed Sep 05 2012 fwang <fwang> 0.11.93-3.mga3.tainted
+ Revision: 288351
- xvid not ported to new api

But that is from 0.11...
I have seen that gst-1.0.8 is out, perhaps they have made more codecs
ported and compiled to the new api...

Oops, part or gstreamer in Cauldron is 1.0.8 and part 1.0.7 !! Only
the main package is updated, not plugins !

Please, could you try an update for plugins to 1.0.8 and build them
with all the codecs enabled (in core or tainted), to check if all
build and work ?

TIA
Comment 11 Funda Wang 2013-08-01 15:19:23 CEST
1. xvid is still not ported in latest gst-plugins-bad 1.0.9.

2. From your log, totem is requesting 'gstreamer1(decoder-video/mpeg)(mpegversion=4)()(64bit)', while gst-plugins-bad provides '@gstreamer1(decod
er-video/mpeg)(mpegversion=4)(systemstream=false)(64bit)', which is obviously not match.
Comment 12 Samuel Verschelde 2015-05-17 21:03:43 CEST
Is this bug still present in Mageia 4 & 5?

Keywords: (none) => NEEDINFO

Jani Välimaa 2015-05-21 19:30:08 CEST

CC: jani.valimaa => (none)

Comment 13 Marja Van Waes 2017-09-10 22:03:00 CEST
(In reply to Samuel Verschelde from comment #12)
> Is this bug still present in Mageia 4 & 5?

2 years later, no one replied still seeing the issue.

Closing as OLD. Feel free to reopen if needed.

Resolution: (none) => OLD
CC: (none) => marja11
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.