Upgrading from mplayer-1.0_rc2_p20090731-r1 to mplayer-1.0_rc4_p20090919-r1 mencoder doesn't open mpeg2 streams on my pc. The mpeg2 streams are TV-Sat-Recordings demuxed with ProjectX. When I try to use such an mpeg2-File for reencoding I get: !!!!!!!!!!!!!!!!!!!!!!!!!!!! MEncoder SVN-r29463-4.3.3 (C) 2000-2009 MPlayer Team success: format: 0 data: 0x0 - 0xe8f85474 MPEG-ES file format detected. libavformat file format detected. [ac3 @ 0x1629400]max_analyze_duration reached [lavf] Audio stream found, -aid 0 [V] filefmt:65536 fourcc:0x0 size:0x0 fps:0.000 ftime:=0.0000 ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 4 ch, s16le, 448.0 kbit/14.58% (ratio: 56000->384000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0 Opening video filter: [harddup] Opening video filter: [scale w=720 h=-10] Opening video filter: [delogo x=634 y=36 w=33 h=44 t=5] Opening video filter: [pp=fd] ========================================================================== Trying to force video codec driver family ffmpeg... Trying to force video codec driver family libmpeg2... Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder VDecoder init failed :( Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder VDecoder init failed :( Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Cannot find codec matching selected -vo and video format 0x0. ========================================================================== Exiting... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Downgrading to mplayer-1.0_rc2_p20090731-r1 and using the same files works without problems. Here is the output of the working version: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! MEncoder SVN-r29463-4.3.3 (C) 2000-2009 MPlayer Team success: format: 0 data: 0x0 - 0xe8f85474 MPEG-ES file format detected. libavformat file format detected. [lavf] Audio stream found, -aid 0 VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9000.0 kbps (1125.0 kbyte/s) [V] filefmt:65536 fourcc:0x10000002 size:720x576 fps:25.000 ftime:=0.0400 ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 4 ch, s16le, 448.0 kbit/14.58% (ratio: 56000->384000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [harddup] Opening video filter: [scale w=720 h=-10] Opening video filter: [delogo x=634 y=36 w=33 h=44 t=5] Opening video filter: [pp=fd] ========================================================================== Trying to force video codec driver family ffmpeg... Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Unsupported PixelFormat -1 Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== Forcing output FourCC to 44495658 [XVID]. [ac3 @ 0x15e7a80]No channel layout specified. The encoder will guess the layout, but it might be incorrect. VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. [swscaler @ 0x167c6e0]BICUBIC scaler, from yuv420p to yuv420p using MMX2 videocodec: libavcodec (720x400 fourcc=44495658 [XVID]) [VE_LAVC] High quality encoding selected (non-realtime)! [VE_LAVC] Using constant qscale = 2.000000 (VBR). Writing header...1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] ODML: vprp aspect is 16:9. Writing header... ODML: vprp aspect is 16:9. Pos: 21.0s 504f ( 0%) 19.40fps Trem: 0min 0mb A-V:0.025 [1493:448] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! May it helps, here is my emerge --info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-gentoo-2.0.1 Timestamp of tree: Mon, 21 Sep 2009 14:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 1.3.7-r1, 2.1.9 dev-lang/python: 2.5.4-r2, 2.6.2-r1, 3.1.1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://de-mirror.org/distro/gentoo/ " LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en en_GB de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/own /usr/local/portage/layman/berkano /usr/local/portage/layman/portato /usr/local/portage/layman/oss-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/vmware" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdr cli cracklib crypt cups dbus dga dri dts dvd dvdr eds emboss encode esd evo fam firefox flac fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="HDA NVidia" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="mga nv nvidia nvidia%" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Reproducible: Always Steps to Reproduce: 1.Emerge mplayer-1.0_rc4_p20090919-r1 2.Encoding of *.m2v files demuxed by ProjectX failed 3.Downgrade (emerge) mplayer-1.0_rc2_p20090731-r1 4.Encoding of *.m2v files demuxed by ProjectX works again
just for Info: the same behaviour with mplayer-1.0_rc4_p20090919-r2
I can't reproduce this but it probably is fixed in FFmpeg SVN r20075
Should be fixed with mplayer-1.0_rc4_p20091026.
emerge -s mplayer media-video/mplayer Latest version available: 1.0_rc4_p20091026-r1 Latest version installed: 1.0_rc4_p20091026-r1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mplayer test.m2v MPlayer SVN-r29796-4.3.3 (C) 2000-2009 MPlayer Team Playing test.m2v. MPEG-ES file format detected. VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9000.0 kbps (1125.0 kbyte/s) [vdpau] Error when calling vdp_device_create_x11: 1 ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Unsupported PixelFormat -1 Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== Audio: no sound Starting playback... Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [xv] 720x576 => 1024x576 Planar YV12 V: 3.8 94/ 94 20% 4% 0.0% 0 0 In other words: playing works fine. ========================================================================== Now opening the same file "test.m2v" with mencoder to reencode it: mencoder -ovc lavc -audiofile test.ac3 -channels 2 -oac copy -lavcopts vcodec=mpeg4:vqscale=2:vmax_b_frames=0:vrc_buf_size=1835:vrc_maxrate=4000 test.m2v -o test.avi MEncoder SVN-r29796-4.3.3 (C) 2000-2009 MPlayer Team success: format: 0 data: 0x0 - 0xe8f85474 MPEG-ES file format detected. libavformat file format detected. [ac3 @ 0x27c06d0]max_analyze_duration reached [lavf] Audio stream found, -aid 0 [V] filefmt:65536 fourcc:0x0 size:0x0 fps:0.000 ftime:=0.0000 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder VDecoder init failed :( Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder VDecoder init failed :( Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Opening video decoder: [raw] RAW Uncompressed Video VDecoder init failed :( Cannot find codec matching selected -vo and video format 0x0. ========================================================================== So the problem persists. Falling back to mplayer-1.0_rc2_p20090731, every file of this kind (=DVB recording demuxed by ProjectX) I tested works again with mencoder.
This has _nothing_ to do with mencoder vs. mplayer, and I'd like to point out that this bug would have been fixed quite a bit earlier if you hadn't misled us to believe that. -audiofile is what causes the issue both with mplayer and mencoder, and MPlayer SVN r29810 should fix it.
Tried out SVN-r29962-4.4.2 (svn snapshot from 2009_11_23) with the help of the recent ebuild mplayer-1.0_rc4_p20091026-r1 and the old behaviour is back on my pc. Sorry for misleading anyone including myself and thanks for the quick support.