[MPlayer-users] howto set audio format of vide
wim delvaux
wim.delvaux at adaptiveplanet.com
Thu Mar 22 20:04:45 CET 2007
> On Tue, 20 Mar 2007 17:45:22 +0100
>
> wim delvaux <wim.delvaux at adaptiveplanet.com> wrote:
> > 1. ok, true, I wanted to say mad TAG right ? How can I get this to
> > MP3 tag ?
>
> There is no such thing as a MAD tag. MAD only plays MP1/MP2/MP3. Your
> file has to have one of those as the audio track for MAD to be able to
> play it at all. You also didn't read the rest of my post.
MAD audio codec then ?
Verbose output for mencoder and resulting mplayer output attached
u19809 at GCV ~/imgs/pan
$ mencoder -v -fafmttag 0x55 -ffourcc XVID -ovc copy -oac copy S.avi -o
SD.avi
MEncoder 2:1.0~rc1-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz (Family: 6, Model: 15,
Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
init_freetype
get_path('font/font.desc') -> '/home/u19809/.mplayer/font/font.desc'
font: can't open file: /home/u19809/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 731172338 bytes
STREAM: [file] S.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0 data: 0x0 - 0x2b94cdf2
AVI file format detected.
list_end=0x1000
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 2
MainAVIHeader.dwFlags: (48) HAS_INDEX MUST_USE_INDEX
frames total: 126197 initial: 0
streams: 2
Suggested BufferSize: 522708
Size: 640 x 272
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: xvid (64697678)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 10000000/400000 = 25.000
Start: 0 Len: 126197
Suggested BufferSize: 195028
Quality 10000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 272
biPlanes 1
biBitCount 12
biCompression 1145656920='XVID'
biSizeImage 1044480
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x146
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0 Len: 210328
Suggested BufferSize: 65536
Quality -1
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 18679
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=448
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x2B41F87A
Found movie at 0x100C - 0x2B41F87A
Reading INDEX block, 339287 chunks for 126197 frames (fpos=725743746).
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x10)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=628684599 (126197) audio size=94290816 (210328)
VIDEO: [XVID] 640x272 12bpp 25.000 fps 996.4 kbps (121.6 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:640x272 fps:25.00 ftime:=0.0400
videocodec: framecopy (640x272 12bpp fourcc=44495658)
Forcing output FourCC to 44495658 [XVID].
Forcing output audio format tag to 0x55.
Building audio filter chain for 0Hz/0ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 0Hz/0ch/s16le
[dummy] Was reinitialized: 0Hz/0ch/s16le
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 B/s=18679 sample-0)
XXX initial v_pts=2.840 a_pos=1536 (0.082)
Muxer frame buffer sending 22 frame(s) to the muxer.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
ds_fill_buffer: EOF reached (stream: audio) n 692mb A-V:0.040 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.039 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.039 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.039 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.039 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.038 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.038 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.038 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.038 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.038 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.038 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.037 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: audio) in 686mb A-V:0.037 [996:149]
A/Vms 0/0 D/B/S 0/0/0
ds_fill_buffer: EOF reached (stream: video)
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Video stream: 996.354 kbit/s (124544 B/s) size: 628684599 bytes 5047.880
secs 126197 frames
Audio stream: 149.435 kbit/s (18679 B/s) size: 94290816 bytes 5047.872
secs
Uninit audio filters...
[libaf] Removing filter dummy
u19809 at GCV ~/imgs/pan
$ mplayer -v SD.avi
MPlayer 2:1.0~rc1-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz (Family: 6, Model: 15,
Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/u19809/.mplayer/codecs.conf'
Reading /home/u19809/.mplayer/codecs.conf: Can't
open '/home/u19809/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No
such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'SD.avi'
init_freetype
get_path('font/font.desc') -> '/home/u19809/.mplayer/font/font.desc'
font: can't open file: /home/u19809/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/u19809/.mplayer/input.conf'
Can't open input config file /home/u19809/.mplayer/input.conf: No such file or
directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 67 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
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.
get_path('SD.avi.conf') -> '/home/u19809/.mplayer/SD.avi.conf'
Playing SD.avi.
get_path('sub/') -> '/home/u19809/.mplayer/sub/'
[file] File size is 731095002 bytes
STREAM: [file] SD.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames total: 126197 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 272
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: XVID (44495658)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0 Len: 126197
Suggested BufferSize: 97514
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 272
biPlanes 1
biBitCount 12
biCompression 1145656920='XVID'
biSizeImage 1044480
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x146
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: U (55)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0 Len: 210328
Suggested BufferSize: 960
Quality 0
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 18679
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=448
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x176
hdr=Software size=28
Software : MEncoder 2:1.0~rc1-0ubuntu8
list_end=0x2B417702
Found movie at 0x100C - 0x2B417702
Reading INDEX block, 336525 chunks for 126197 frames (fpos=725710602).
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=628684599 (126197) audio size=94290816 (210328)
VIDEO: [XVID] 640x272 12bpp 25.000 fps 996.4 kbps (121.6 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:640x272 fps:25.00 ftime:=0.0400
Clip info:
Software: MEncoder 2:1.0~rc1-0ubuntu8
get_path('sub/') -> '/home/u19809/.mplayer/sub/'
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
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 FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X
atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
dec_audio: Allocating 4096 bytes for input buffer.
dec_audio: Allocating 9216 + 65536 = 74752 bytes for output buffer.
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.13
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
XXX initial v_pts=0.000 a_pos=8064 (0.432)
[ffmpeg] aspect_ratio: 2.352941
VDec: vo config request - 640 x 272 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO Config (640x272->640x272,flags=0,'MPlayer',0x32315659)
VO: [xv] 640x272 => 640x272 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: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 57 for hw scaling
[xv] dx: 0 dy: 0 dw: 640 dh: 290
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120
bytes
[xv] dx: 0 dy: 0 dw: 640 dh: 290
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120
bytes
get_path('subfont.ttf') -> '/home/u19809/.mplayer/subfont.ttf'
Unicode font: 255 glyphs.
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120
bytes
No bind found for key 'c'. % 7% 1.8% 2 0
A: 2.2 V: 2.2 A-V: 0.009 ct: -0.027 57/ 57 8% 2% 1.5% 2 0
MPlayer interrupted by signal 2 in module: sleep_timer
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: libmad
Uninit video: ffmpeg
Successfully enabled DPMS
alsa-uninit: pcm closed
vo: uninit ...
u19809 at GCV ~/imgs/pan
More information about the MPlayer-users
mailing list