mc4man
February 9th, 2009, 04:46 AM
I sometimes like to extract (in wine) or dump (with mplayer) individual ac3 5.1 music tracks . I just noticed that while a recent mplayer can dump the ac3, it can't play it back. (neither can vlc 0.9.x, though xine based players can along with the intrepid repo version of mplayer
This is only 5.1 448k tracks, 5.1 384k and all 2.1 are fine. I'm fairly sure it's not me, tried with my own mplayer build method, Andrew's way, the smplayer package and Sherpya, Lord Mulder builds for windows. (same result
i figure some libav* is involved because it affects both mplayer and vlc.
What's odd then is simply doing a straight re- encode (no changes) in a recent ffmpeg fixes them for both mplayer and vlc.
I was wondering if anybody who was up on the ffmpeg or mplayer mailing lists has seen any mention?
Or if the few who may also do this, ffmpeg will fix them just fine.
some logs for curious
mplayer dump
doug@doug-desktop:~$ mplayer -vc null -vo null -aid 129 -dumpaudio -dvd-device /dev/dvd1 dvd://2 -chapter 3-3
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing dvd://2.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
There are 4 titles on this DVD.
There are 1 angles in this DVD title.
clipped...................
audio stream: 0 format: lpcm (stereo) language: en aid: 160.
audio stream: 1 format: ac3 (5.1) language: en aid: 129.
number of audio channels on disk: 2.
number of subtitles on disk: 0
MPEG-PS file format detected.
Core dumped ;)
Exiting... (End of file)
Mplayer playback of dump
doug@doug-desktop:~$ mplayer -ao alsa -channels 6 ~/stream.ac3
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /home/doug/stream.ac3.
Exiting... (End of file)
ffmpeg re encode
doug@doug-desktop:~/Desktop/test2$ ~/fixac3
FFmpeg version SVN-r16844, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --libdir=${prefix}/lib --shlibdir=${prefix}/lib --bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --enable-libspeex --enable-avfilter-lavf --enable-xvmc --enable-vdpau --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 3. 0 / 0. 3. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 28 2009 15:22:30, gcc: 4.3.3
Input #0, ac3, from 'stream.ac3':
Duration: 00:05:51.36, bitrate: 448 kb/s
Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Output #0, ac3, to './temp/stream.ac3':
Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[ac3 @ 0x9c0f1f0]frame sync error
Error while decoding stream #0.0
[ac3 @ 0x9c0f1f0]incomplete framete= 448.0kbits/s
[ac3 @ 0x9c0f1f0]invalid frame size
size= 19215kB time=351.36 bitrate= 448.0kbits/s
video:0kB audio:19215kB global headers:0kB muxing overhead 0.000000%
Mplayer after fix
doug@doug-desktop:~$ mplayer -ao alsa -channels 6 ~/test2/stream.ac3
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /home/doug/test2/stream.ac3.
libavformat file format detected.
[lavf] Audio stream found, -aid 0
================================================== ========================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000->576000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
================================================== ========================
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 20.9 (20.9) of 351.4 (05:51.3) 1.1%
Exiting... (Quit)
The error in vlc before fixing is the pop up about doesn't support mlp streams
This is only 5.1 448k tracks, 5.1 384k and all 2.1 are fine. I'm fairly sure it's not me, tried with my own mplayer build method, Andrew's way, the smplayer package and Sherpya, Lord Mulder builds for windows. (same result
i figure some libav* is involved because it affects both mplayer and vlc.
What's odd then is simply doing a straight re- encode (no changes) in a recent ffmpeg fixes them for both mplayer and vlc.
I was wondering if anybody who was up on the ffmpeg or mplayer mailing lists has seen any mention?
Or if the few who may also do this, ffmpeg will fix them just fine.
some logs for curious
mplayer dump
doug@doug-desktop:~$ mplayer -vc null -vo null -aid 129 -dumpaudio -dvd-device /dev/dvd1 dvd://2 -chapter 3-3
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing dvd://2.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
There are 4 titles on this DVD.
There are 1 angles in this DVD title.
clipped...................
audio stream: 0 format: lpcm (stereo) language: en aid: 160.
audio stream: 1 format: ac3 (5.1) language: en aid: 129.
number of audio channels on disk: 2.
number of subtitles on disk: 0
MPEG-PS file format detected.
Core dumped ;)
Exiting... (End of file)
Mplayer playback of dump
doug@doug-desktop:~$ mplayer -ao alsa -channels 6 ~/stream.ac3
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /home/doug/stream.ac3.
Exiting... (End of file)
ffmpeg re encode
doug@doug-desktop:~/Desktop/test2$ ~/fixac3
FFmpeg version SVN-r16844, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --libdir=${prefix}/lib --shlibdir=${prefix}/lib --bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --enable-libspeex --enable-avfilter-lavf --enable-xvmc --enable-vdpau --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 3. 0 / 0. 3. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 28 2009 15:22:30, gcc: 4.3.3
Input #0, ac3, from 'stream.ac3':
Duration: 00:05:51.36, bitrate: 448 kb/s
Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Output #0, ac3, to './temp/stream.ac3':
Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[ac3 @ 0x9c0f1f0]frame sync error
Error while decoding stream #0.0
[ac3 @ 0x9c0f1f0]incomplete framete= 448.0kbits/s
[ac3 @ 0x9c0f1f0]invalid frame size
size= 19215kB time=351.36 bitrate= 448.0kbits/s
video:0kB audio:19215kB global headers:0kB muxing overhead 0.000000%
Mplayer after fix
doug@doug-desktop:~$ mplayer -ao alsa -channels 6 ~/test2/stream.ac3
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /home/doug/test2/stream.ac3.
libavformat file format detected.
[lavf] Audio stream found, -aid 0
================================================== ========================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000->576000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
================================================== ========================
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 20.9 (20.9) of 351.4 (05:51.3) 1.1%
Exiting... (Quit)
The error in vlc before fixing is the pop up about doesn't support mlp streams