[MPlayer-users] encoding a .3gp file

Raphael mencoder at lesshaste.plus.com
Mon Jul 18 22:57:04 CEST 2005


Nico Sabbi wrote:
> Raphael wrote:
> 
>> Hi,
>>
>> I have been trying to make a .3gp file for my mobile phone.  I want to 
>> use mencoder instead of ffmpeg but am having a problem with the amr 
>> audio codecs it seems.
>>
>> My experimental command line (without any of the bitrate/fps etc. 
>> arguments needed eventually) is
>>
>> /usr/local/bin/mencoder stream.dump -oac lavc -ovc lavc -lavcopts 
>> vcodec=h263p:acodec=amr_nb -of lavf -o movie.3gp
>>
>> which gives the error
>>
>> "
>> Couldn't find wav tag for specified codec, exit
>> "
> 
> 
> 
> this means that you have to specify atag=NNN that you should know or 
> search in libavcodec
> 

Hi,


Could you specify further?  The only thing the man page has to say about 
atag is

"
    atag=<value>
               Use the specified Windows audio format tag (e.g. atag=0x55).
"

and there appears to be no documentation about atags on the web.

Looking in the directory libavcodec of the source doesn't seem to help. 
Also, it is not clear to me what is going on as .3gp is not a Windows 
format and nor is amr (or am I wrong?).  In case it helps, I have 
attached below the output of mplayer -v on a working .3gp file I got 
from somewhere else. This is what I am trying to reproduce. Is the atag 
hidden in the mplayer output somewhere?

Raphael

------------------- output of mplayer -v test.3gp --------------

  mplayer -v test.3gp
MPlayer dev-CVS-050715-15:59-3.3.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


86 audio & 200 video codecs
CommandLine: '-v' 'test.3gp'
init_freetype
get_path('font/font.desc') -> '/home/raph/.mplayer/font/font.desc'
font: can't open file: /home/raph/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Using nanosleep() timing
get_path('input.conf') -> '/home/raph/.mplayer/input.conf'
Can't open input config file /home/raph/.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: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('test.3gp.conf') -> '/home/raph/.mplayer/test.3gp.conf'
Playing test.3gp.
[file] File size is 17325175 bytes
STREAM: [file] test.3gp
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename test.3gp ext: .3gp
Checking for MOV
ISO: File Type Major Brand: 3GPP Profile 4
ISO: File Type Minor Version: 512
ISO: File Type Compatible Brand #0: 3gp4
MOV: Movie DATA found!
MOV: Movie header found!
QuickTime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=1000  dur=2995000
--------------
MOV: Track #0:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=2994500 lay=0 vol=0
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /vide () VideoHandler
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Video header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: s263  (85 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Syncing samples (keyframes) table! (3091 entries) (ver:0,flags:0)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=35934 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (35934 chunks)
MOV track #0: 35934 chunks, 35934 samples
pts=35934  scale=12  time=2994.500
==> Found video stream: 0
MOV: Found H.263 decoder atom d263 (15)!
MOV: Vendor: FFMP H.263 level: 0 H.263 profile: 10
Image size: 176 x 144 (24 bpp)
Display size: 176 x 144
Fourcc: s263  Codec: 'h263'
--------------
MOV: Track #1:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=2995000 lay=0 vol=256
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /soun () SoundHandler
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Sound header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: samr  (37 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=149750 ss=32) (ver:0,flags:0)
MOV:     Chunk offset table! (149750 chunks)
MOV track #1: 149750 chunks, 0 samples
pts=23960000  scale=8000  time=2995.000
==> Found audio stream: 1
Audio bits: 8  chans: 1  rate: 8000
MOV: Found AMR audio atom damr (17)!
MOV: Vendor: FFMP Version: 0
MOV: Modes set: 0080
MOV: Mode change period: 0 Frames per sample: 10
Fourcc: samr
--------------
Quicktime Clip Info:
MOV: longest streams: A: #1 (149750 samples)  V: #0 (35934 samples)
VIDEO:  [s263]  176x144  24bpp  12.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x33363273  size:176x144  fps:12.00  ftime:=0.0833
get_path('sub/') -> '/home/raph/.mplayer/sub/'
get_path('default.sub') -> '/home/raph/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [ffamrnb] afm:ffmpeg (AMR Narrowband)
==========================================================================
X11 opening display: localhost:10.0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":10.0" => remote 
display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours LAYER FULLSCREEN X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x00001e).
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh263] vfm:ffmpeg (FFmpeg H.263+ decoder)
==========================================================================
Building audio filter chain for 8000Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 8000Hz/1ch/s16le
[dummy] Was reinitialized: 8000Hz/1ch/s16le
ao2: 8000 Hz  1 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 1 channels (requested: 1)
audio_setup: using 8000 Hz samplerate (requested: 8000)
audio_setup: frags: 512/512  (128 bytes/frag)  free:  65536
AO: [oss] 8000Hz 1ch s16le (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 8000Hz/1ch/s16le -> 8000Hz/1ch/s16le...
[dummy] Was reinitialized: 8000Hz/1ch/s16le
[dummy] Was reinitialized: 8000Hz/1ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 176 x 144 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (176x144->192x144,flags=0,'MPlayer',0x32315659)
VO: [xv] 176x144 => 192x144 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







More information about the MPlayer-users mailing list