Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411387 - media-video/ffmpeg-0.10: unable to use crystalhd hardware (via mplayer2 -vc ffh264crystalhd)
Summary: media-video/ffmpeg-0.10: unable to use crystalhd hardware (via mplayer2 -vc f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-09 20:06 UTC by ernsteiswuerfel
Modified: 2013-02-08 17:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2012-04-09 20:06:13 UTC
Since the stable ffmpeg-0.10 upgrade mplayer2 (I am running media-video/mplayer2-2.0_p20111126) no longer can utilize the crystalhd decoder-hardware --> no video shown.

Downgrading to ffmpeg-0.7.8 and mplayer2'S -vc switch works fine again for crystalhd --> the video is playing fine.

Reproducible: Always

Actual Results:  
~ $ mplayer2 -vo xv -vc ffh264crystalhd Media/_DOWNLOADS_/Asso\ \(m.\ Adriano\ Celentano\)\ \(1981\)\ _\ \[ger\;ac3+ita\;ac3\]\ _\ x264-dvdrip.mkv 
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team

Playing Media/_DOWNLOADS_/Asso (m. Adriano Celentano) (1981) _ [ger;ac3+ita;ac3] _ x264-dvdrip.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang ger
[mkv] Track ID 3: audio (A_AC3), -aid 1, -alang ita
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO:  [avc1]  560x464  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in Media/_DOWNLOADS_/
[ass] auto-open
==========================================================================
Forced video codec: ffh264crystalhd
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Asking decoder to use 2 threads if supported.
[NULL @ 0x7f75f5ba7420]Codec is experimental but experimental codecs are not enabled, see -strict -2
Could not open codec.
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.1 (02.1) of 5168.0 ( 1:26:08.0)  0.8% 

Exiting... (Quit)



~ $ emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.2.14-gentoo x86_64)
=================================================================
System uname: Linux-3.2.14-gentoo-x86_64-AMD_Athlon-tm-_II_X2_250e_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 09 Apr 2012 16:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo multimedia update_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -Os -march=native -mtune=native -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -Os -march=native -mtune=native -fstack-protector -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,-z,relro -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/multimedia /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth bluray bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups custom-cflags cxx dbus dirac djvu dri dts dvd dvdr eds emboss enca encode evo exif fam firefox flac fortran gdbm gdu gif gnome-keyring gnome-online-accounts gstreamer gtk iconv icu ipv6 ithreads java5 java6 jbig jpeg jpeg2k lcms libnotify libsamplerate live lzma mad matroska mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls no-old-linux nptl nptlonly ogg ogm opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio readline rle schroedinger sdl session smp socialweb speex spell sse sse2 sse3 ssl startup-notification svg sysfs system-sqlite tcpd theora threads tiff truetype udev unicode usb vorbis wmf x264 xcb xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="vesa radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 ernsteiswuerfel archtester 2012-04-10 14:54:44 UTC
Noticed that ffmpeg-0.10.2 already got stable for amd64 and tried it out. But it has the same problem with crystalhd as ffmpeg-0.10.
Comment 2 Alexis Ballier gentoo-dev 2012-04-16 15:03:41 UTC
(In reply to comment #0)
> [NULL @ 0x7f75f5ba7420]Codec is experimental but experimental codecs are not
> enabled, see -strict -2
> Could not open codec.

guess this is the answer to your problem; not sure how to set this in mplayer though.
Comment 3 ernsteiswuerfel archtester 2012-04-16 18:58:03 UTC
nope, unfortunately not. this is no mplayer or mplayer2 switch. I think it relates to http://lists.mplayerhq.hu/pipermail/mplayer-users/2012-February/084227.html
Comment 4 ernsteiswuerfel archtester 2012-05-08 21:58:36 UTC
'mkay, I think the issue is fixed upstream with this commit:
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=1318b143796d4eafe1a726e8f08186ce587f7c86

Date of the commit is 25.03. So this should be in v0.10.3 which has been released 2 days ago? I'll test this again as soon as ffmpeg gets bumped in portage.
Comment 5 ernsteiswuerfel archtester 2012-05-09 20:21:17 UTC
ok, tested crystalhd playback with ffmpeg-0.10.3, but the bug is still there. Seems the commit http://git.videolan.org/?p=ffmpeg.git;a=commit;h=1318b143796d4eafe1a726e8f08186ce587f7c86 did not get into ffmpeg-0.10.3. However, next I tried media-video/ffmpeg-9999 and crystalhd playback works again! So this issue should be fixed in the next major release of ffmpeg?
Comment 6 Alexis Ballier gentoo-dev 2013-02-08 14:07:06 UTC
(In reply to comment #5)
> ok, tested crystalhd playback with ffmpeg-0.10.3, but the bug is still
> there. Seems the commit
> http://git.videolan.org/?p=ffmpeg.git;a=commit;
> h=1318b143796d4eafe1a726e8f08186ce587f7c86 did not get into ffmpeg-0.10.3.
> However, next I tried media-video/ffmpeg-9999 and crystalhd playback works
> again! So this issue should be fixed in the next major release of ffmpeg?

this should be fixed by using hard masked versions of ffmpeg, please try that.
closing as this will be automagically fixed when ffmpeg gets unmasked
Comment 7 ernsteiswuerfel archtester 2013-02-08 17:18:02 UTC
Correct. Using hard masked 1.04 or 1.1.2 resolves this issue.