[MPlayer-users] mencoder don't support multy stream audio coping

Ivan Shishlov ivan at oduv.elektra.ru
Wed Jan 22 04:02:38 CET 2003


Mencoder don't support multy stream audio coping/coding?

This feature or bug was found in 
mplayer-0.90rc2-1, 
mplayer-common-0.90rc2-1,
RPM packets and  MPlayer CVS too.

For examples:

#mplayer -v input.avi |grep stream
streams: 4
==> Found video stream: 0
==> Found audio stream: 1
==> Found audio stream: 2
==> Found audio stream: 3
AVI: Searching for audio stream (id:2)

#mencoder input.avi -ovc copy -oac copy -o output.avi

#mplayer -v output.avi |grep stream
streams: 2
==> Found video stream: 0
==> Found audio stream: 1
AVI: Searching for audio stream (id:1)

mencoder stripped all audio stream except first,
audiocodec: framecopy (format=55 chans=2 rate=44100 bits=0 bps=20094 
sample=0)

I have played with options -channels=n , where n=[ 2 | 4 | 6 ],
multiplaying options -aid 1, -aid 2, -aid 3.

==============================================================================
Detailed information about file: (I don't know why I send it ;)

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90rc2-RPM-3.1 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel  (Family: 8, Stepping: 4)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/ivan/.mplayer/config
Reading /home/ivan/.mplayer/codecs.conf: 38 audio & 110 video codecs
CommandLine: '-v' 'input.avi'
get_path('font/font.desc') -> '/home/ivan/.mplayer/font/font.desc'
Font /home/ivan/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
get_path('input.conf') -> '/home/ivan/.mplayer/input.conf'
Parsing input config file /home/ivan/.mplayer/input.conf
Input config file /home/ivan/.mplayer/input.conf parsed : 50 binds

Playing input.avi
Not an URL!
File size is 714825184 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  

Cache fill:  0,00% (0 bytes)    Detected AVI file format!
list_end=0xFFF4
======= AVI Header =======
us/frame: 41708  (fps=23,976)
max bytes/sec: 0
padding: 2
MainAVIHeader.dwFlags: (0)
frames  total: 88430   initial: 0
streams: 4
Suggested BufferSize: 0
Size:  704 x 288
list_end=0x104
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 10000000/417083 = 23,976
Start: 0   Len: 88430
Suggested BufferSize: 58136
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 704
  biHeight 288
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 608256
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x1A6
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 44100/1152 = 38,281
Start: 0   Len: 141195
Suggested BufferSize: 1048576
Quality -1
Sample size: 0
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 19989
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=521
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
list_end=0x248
==> Found audio stream: 2
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 44100/1152 = 38,281
Start: 0   Len: 141201
Suggested BufferSize: 1048576
Quality -1
Sample size: 0
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 20094
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=524
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
list_end=0x2EA
==> Found audio stream: 3
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 44100/1152 = 38,281
Start: 0   Len: 141195
Suggested BufferSize: 1048576
Quality -1
Sample size: 0
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 19915
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=519
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
list_end=0x3F6
Broken chunk?  chunksize=64502  (id=JUNK)
list_end=0x2A9B5DE0
Found movie at 0x10000 - 0x2A9B5DE0
Auto-selected AVI audio ID = 2
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:2)
AVI video size=639940209 (88430)  audio size=74111999
VIDEO:  [DIV3]  704x288  24bpp  23,98 fps  1388,1 kbps (169,4 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:704x288  fps:23,98  ftime:=0,0417
get_path('sub/') -> '/home/ivan/.mplayer/sub/'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done

MPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 417
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
SDL: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: buf size = 4096
AO: [sdl] 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: SDLlib audio output
AO: Author: Felix Buenemann <atmosfear at users.sourceforge.net>
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Adding filter dummy 
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
Start playing...
XXX initial  v_pts=0,000  a_pos=2502 (0,125) 
[ffmpeg] aspect_ratio: 0,000000
VDec: vo config request - 704 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (704x288->704x288,flags=0,'MPlayer',0x32315659)
VO: [sdl] 704x288 => 704x288 Planar YV12 
VO: Description: SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
VO: Author: Ryan C. Gordon <icculus at lokigames.com>, Felix Buenemann <atmosfear at users.sourceforge.net>
SDL: Using 0x32315659 (Planar YV12) image format
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 1024x768
SDL: Using driver: x11
SDL: using hardware-surface
SDL: setting windowed mode
*** [vo] Allocating mp_image_t, 704x288x12bpp YUV planar, 304128 bytes
A:  -0,0 V:   0,0 A-V: -0,017 ct:  0,000    1/  1   0%  0%  0,0% 0 0 99%
*** [vo] Allocating mp_image_t, 704x288x12bpp YUV planar, 304128 bytes
A:   0,1 V:   0,0 A-V:  0,058 ct:  0,004    2/  2   0%  0%  0,0% 0 0 99%
A:   0,1 V:   0,1 A-V:  0,036 ct:  0,008    3/  3   0%  0%  0,0% 0 0 98%
A:   0,1 V:   0,1 A-V:  0,017 ct:  0,009    4/  4   0%  0%  0,0% 0 0 98%
A:   0,2 V:   0,2 A-V:  0,015 ct:  0,011    5/  5   0%  0%  0,0% 0 0 98%
A:   0,2 V:   0,2 A-V: -0,016 ct:  0,009    6/  6   0%  0%  0,0% 0 0 98%
A:   0,3 V:   0,3 A-V:  0,012 ct:  0,010    7/  7   0%  0%  0,0% 0 0 98%
A:   0,3 V:   0,3 A-V: -0,007 ct:  0,010    8/  8   0%  0%  0,0% 0 0 98%
A:   0,3 V:   0,3 A-V: -0,009 ct:  0,009    9/  9   0%  0%  0,0% 0 0 98%
A:   0,4 V:   0,4 A-V:  0,003 ct:  0,009   10/ 10   0%  0%  0,0% 0 0 98%
A:   0,4 V:   0,4 A-V: -0,022 ct:  0,007   11/ 11   0%  0%  0,0% 0 0 98%
A:   0,5 V:   0,5 A-V:  0,012 ct:  0,008   12/ 12   0%  0%  0,0% 0 0 98%
A:   0,5 V:   0,5 A-V: -0,013 ct:  0,007   13/ 13  11%  1%  1,6% 0 0 98%
A:   0,5 V:   0,5 A-V: -0,002 ct:  0,007   14/ 14  10%  1%  1,5% 0 0 97%
A:   0,6 V:   0,6 A-V:  0,010 ct:  0,008!
   15/ 15  10%  1%  1,5% 0 0 97%
A:   0,6 V:   0,6 A-V: -0,015 ct:  0,006   16/ 16  10%  1%  1,5% 0 0 97%
A:   0,7 V:   0,7 A-V:  0,013 ct:  0,007   17/ 17  10%  1%  1,4% 0 0 97%
A:   0,7 V:   0,7 A-V: -0,006 ct:  0,007   18/ 18   9%  1%  1,4% 0 0 97%
A:   0,7 V:   0,8 A-V: -0,001 ct:  0,007   19/ 19   9%  1%  1,4% 0 0 97%
A:   0,8 V:   0,8 A-V:  0,004 ct:  0,007   20/ 20   9%  1%  1,4% 0 0 97%
A:   0,8 V:   0,8 A-V: -0,015 ct:  0,006   21/ 21   9%  1%  1,4% 0 0 97%
A:   0,9 V:   0,9 A-V:  0,013 ct:  0,007   22/ 22   8%  1%  1,3% 0 0 97%
A:   0,9 V:   0,9 A-V: -0,006 ct:  0,006   23/ 23   8%  1%  1,3% 0 0 97%
A:   1,0 V:   1,0 A-V: -0,001 ct:  0,006   24/ 24   8%  1%  1,3% 0 0 97%
A:   1,0 V:   1,0 A-V:  0,004 ct:  0,007   25/ 25   8%  1%  1,3% 0 0 96%
A:   1,0 V:   1,0 A-V:  0,005 ct:  0,007   26/ 26   8%  1%  1,3% 0 0 96%
A:   1,1 V:   1,1 A-V:  0,013 ct:  0,008   27/ 27   8%  1%  1,3% 0 0 96%
A:   1,1 V:   1,1 A-V: -0,005 ct:  0,008   28/ 28   8%  1%  1,3% 0 0 96%
A:   1,!
2 V:   1,2 A-V: -0,000 ct:  0,008   29/ 29   8%  1%  1,3% 0 0 96%
A:   1,2 V:   1,2 A-V: -0,019 ct:  0,006   30/ 30   8%  1%  1,3% 0 0 96%
A:   1,3 V:   1,3 A-V:  0,009 ct:  0,007   31/ 31   7%  1%  1,2% 0 0 96%
A:   1,3 V:   1,3 A-V: -0,009 ct:  0,006   32/ 32   7%  1%  1,3% 0 0 96%
A:   1,4 V:   1,3 A-V:  0,019 ct:  0,008   33/ 33   7%  1%  1,2% 0 0 96%
A:   1,4 V:   1,4 A-V: -0,023 ct:  0,006   34/ 34   7%  1%  1,2% 0 0 96%
A:   1,4 V:   1,4 A-V:  0,005 ct:  0,006   35/ 35   7%  1%  1,2% 0 0 96%
A:   1,5 V:   1,5 A-V:  0,010 ct:  0,007   36/ 36   7%  1%  1,2% 0 0 96%
A:   1,5 V:   1,5 A-V: -0,009 ct:  0,006   37/ 37   7%  1%  1,2% 0 0 95%
A:   1,5 V:   1,5 A-V: -0,004 ct:  0,006   38/ 38   7%  1%  1,2% 0 0 95%
A:   1,6 V:   1,6 A-V: -0,006 ct:  0,005   39/ 39   7%  1%  1,2% 0 0 95%
Uninit audio filters...
uninit audio: mp3lib  
uninit video: ffmpeg  
DEMUXER: freeing demuxer at 0x8361d40  
SDL: activating XScreensaver/DPMS
SDL: Audio Subsystem shutting down!
vo: x11 uninit called but X11 not inited..

Exiting... (Quit)




More information about the MPlayer-users mailing list