[MPlayer-users] Playing raw audio with video

Peter Nelson rufus at rufus.d2g.com
Thu Sep 4 00:54:22 CEST 2003


Matthias Schwarzott wrote:

>I also fiddle around with ac3. I finally managed to play it along a 
>video-sequence. Some time ago I thought how to change this behaviour to make 
>the syntax a bit more simple, but had not the time to realize it.
>Try this command line:
>
>mplayer -audio-demuxer 20 -rawaudio format=0x2000 -audiofile Metropolis.ac3 
>Metropolis.avi
>
>Matthias
>

Ha, so order matters.  I should have tried that.  Well it playes now 
properly, only problem is video is reported as being about 3x off (and 
will horribly missync if I have autosync enabled).  After 
fast-forwarding, this is what it reports:

A:  89.5 V: 281.6 A-V:-192.160 ct: -0.100  8441/8441   0%  0%  0.0% 0 6 0

But the sound actualy matches up perfectly.

Thanks,
Peter

Here's the full log:
$ mplayer -v -audio-demuxer 20 -rawaudio format=0x2000 -audiofile 
Metropolis.2002.DVDRip.DivX505.Japanese.AC3.5.1.ac3 
Metropolis.2002.DVDRip.DivX505.AC3.CD1.avi
MPlayer dev-CVS-030902-20:04-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices  (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or 
directory
Reading config file /home/rufus/.mplayer/config
Reading /home/rufus/.mplayer/codecs.conf: parse error at line 30
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
CommandLine: '-v' '-audio-demuxer' '20' '-rawaudio' 'format=0x2000' 
'-audiofile' 'Metropolis.2002.DVDRip.DivX505.Japanese.AC3.5.1.ac3' 
'Metropolis.2002.DVDRip.DivX505.AC3.CD1.avi'
get_path('font/font.desc') -> '/home/rufus/.mplayer/font/font.desc'
font: can't open file: /home/rufus/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 
chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/rufus/.mplayer/input.conf'
Can't open input config file /home/rufus/.mplayer/input.conf: No such 
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such 
file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('Metropolis.2002.DVDRip.DivX505.AC3.CD1.avi.conf') -> 
'/home/rufus/.mplayer/Metropolis.2002.DVDRip.DivX505.AC3.CD1.avi.conf'

Playing Metropolis.2002.DVDRip.DivX505.AC3.CD1.avi
[file] File size is 734585468 bytes
STREAM: [file] Metropolis.2002.DVDRip.DivX505.AC3.CD1.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
[file] File size is 365428224 bytes
STREAM: [file] Metropolis.2002.DVDRip.DivX505.Japanese.AC3.5.1.ac3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x1000
======= AVI Header =======
us/frame: 33367  (fps=29.970)
max bytes/sec: 0
padding: 2
MainAVIHeader.dwFlags: (48) HAS_INDEX MUST_USE_INDEX
frames  total: 109053   initial: 0
streams: 2
Suggested BufferSize: 448348
Size:  640 x 336
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: DX50 (30355844)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 10000000/333667 = 29.970
Start: 0   Len: 109053
Suggested BufferSize: 182620
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 336
  biPlanes 1
  biBitCount 24
  biCompression 808802372='DX50'
  biSizeImage 2073600
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x13A
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 56000/1 = 56000.000
Start: 0   Len: 203768320
Suggested BufferSize: 3584
Quality -1
Sample size: 1
==========================
found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 5
Samplerate: 48000
avg byte/sec: 55999
Block align: 1
bits/sample: 0
cbSize: 0
===========================
Broken chunk?  chunksize=3774  (id=JUNK)
list_end=0x2B9FB414
Found movie at 0x100C - 0x2B9FB414
Reading INDEX block, 168678 chunks for 109053 frames (fpos=0x2b9fb41c)
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x10)
Auto-selected AVI video ID = 0
AVI_NI: No audio stream found -> no sound.
AVI video size=526726137 (109053) audio size=0 (0)
VIDEO:  [DX50]  640x336  24bpp  29.970 fps  1158.0 kbps (141.4 kbyte/s)
==> Found audio stream: 0
[V] filefmt:65536  fourcc:0x30355844  size:640x336  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/rufus/.mplayer/sub/'
SUB: Detected subtitle file format: subviewer
SUB: Read 474 subtitles.
SUB: Adjusted 1 subtitle(s).
SUB: added subtitle file (1): ./Metropolis.2002.DVDRip.DivX505.AC3.CD1.srt
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours STAYS_ON_TOP ABOVE X atoms
Disabling DPMS
DPMSDisable stat: 1
Opening video filter: [pp]
[vo] query(Planar YV12) -> 3
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
[PP] Using external postprocessing filter, max q = 6.
AutoQ: setting quality to 6
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: 
Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
Starting playback...
This file was encoded with DivX503 Build696p
[ffmpeg] aspect_ratio: 1.904762
VDec: vo config request - 640 x 336 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.90:1 - prescaling to correct movie aspect.
VO Config (640x336->640x336,flags=0,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0
VO: [xv] 640x336 => 640x336 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 59 for hw scaling
[xv] dx: 0 dy: 0 dw: 640 dh: 358
*** [pp] Allocating mp_image_t, 640x336x12bpp YUV planar, 322560 bytes
*** [pp] Allocating mp_image_t, 640x336x12bpp YUV planar, 322560 bytes%
*** [vo] Allocating mp_image_t, 640x336x12bpp YUV planar, 322560 bytes
*** [pp] Allocating mp_image_t, 640x336x12bpp YUV planar, 322560 bytes%
[xv] dx: 0 dy: 0 dw: 640 dh: 358:  0.007    3/  3   0%  0%  0.0% 0 4 0%
Uninit audio filters...44.290 ct: -0.137  1965/1965   0%  0%  0.0% 0 6 0%
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x86f6a58
DEMUXER: freeing demuxer at 0x86f4c88
DEMUXER: freeing demuxer at 0x86f6010
DEMUXER: freeing sh_audio at 0x86f69b0
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)




More information about the MPlayer-users mailing list