[MEncoder-users] encoding .3gp file

Raphael mencoder at lesshaste.plus.com
Sat Jul 16 15:08:43 CEST 2005


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 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
"

If I change to -oac pcm then the error dissapears.

I compiled from cvs and included all the amr stuff and libavformat. I am 
also able to play a sample .3gp file made using ffmpeg which implies 
that amr_nb is indeed compiled into mplayer at least.  Here is the 
output of mplayer -v test.3gp so you can see what I am trying to 
reproduce. http://pastebin.com/314426

What could be the problem?

Raphael

P.S. Here is the complete output of

/usr/local/bin/mencoder -v stream.dump -oac lavc -ovc lavc -lavcopts 
vcodec=h263p:acodec=amr_nb -of lavf -o movie.3gp

-bash-2.05b$ /usr/local/bin/mencoder -v stream.dump -oac lavc -ovc lavc 
-lavcopts vcodec=h263p:acodec=amr_nb -of lavf -o movie.3gp
MEncoder 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: Type: 8 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
File not found: 'frameno.avi'
Failed to open frameno.avi
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
[file] File size is 74010624 bytes
STREAM: [file] stream.dump
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x4695000
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
REAL file format detected.
real: Header size: 18
real: Header object version: 0
real: File version: 0
Chunk: PROP (504f5250) (size: 0x32, offset: 0x12)
First index chunk offset: 0x0
First data chunk offset: 0x171
Flags (2): [perfect play (more buffers)]
Chunk: CONT (544e4f43) (size: 0x15, offset: 0x44)
Chunk: MDPR (5250444d) (size: 0x99, offset: 0x59)
Found new stream (id: 0)
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
==> Found audio stream: 0
Found audio stream!
version: 4
header size: 57
frame_size: 304
sub_packet_size: 0
samplerate: 8000, channels: 1
skip_str: 4 bytes skipped
read_str: 4 bytes read
======= WAVE Format =======
Format Tag: 26995 (0x6973)
Channels: 1
Samplerate: 8000
avg byte/sec: 8500
Block align: 304
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [0] [6] [0] [1] [0] [30] [1] [0] [0]
===========================
### skipping 2 bytes of codec info
Chunk: MDPR (5250444d) (size: 0x75, offset: 0xf2)
Found new stream (id: 1)
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
==> Found video stream: 1
video fourcc: RV30 (30335652)
H.263 ID: 30203002
unknown id: 30203002
### skipping 0 bytes of codec info
Chunk: DATA (41544144) (size: 0x46076a9, offset: 0x167)
Packets in file: 110091
Auto-selected RM audio ID = 0
Auto-selected RM video ID = 1
VIDEO:  RV30 [30203002,000A9030]  320x240  (aspect 0.00)  15.00 fps
VIDEO:  [RV30]  320x240  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:11  fourcc:0x30335652  size:320x240  fps:15.00  ftime:=0.0667
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/lib/codecs/sipr.so.6.0'
Audio codec: [1] 8.5 Kbps Voice
Audio bitrate: 8.500 kbit/s (1063 bps) 
dec_audio: Allocating 1824 bytes for input buffer.
dec_audio: Allocating 128000 + 65536 = 193536 bytes for output buffer.
AUDIO: 8000 Hz, 1 ch, s16le, 8.5 kbit/6.64% (ratio: 1063->16000)
Selected audio codec: [rasipr] afm:realaud (RealAudio Sipro)
==========================================================================
OK, exit
ALLOCATED STREAM N. 1, type=0
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
realvideo codec id: 0x30203002  sub-id: 0x000A9030
opening shared obj '/usr/lib/codecs/drvc.so'
INFO: RealVideo codec init OK!
Selected video codec: [rv3040] vfm:realvid (Linux RealPlayer 10 RV30/40 
decoder)
==========================================================================
VIDEO CODEC ID: 5
ALLOCATED STREAM N. 2, type=1
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
Couldn't find wav tag for specified codec, exit

Exiting...




More information about the MEncoder-users mailing list