[MEncoder-users] Mencoder not copying aac to mp4
Renato Zippert
rrzippert at gmail.com
Sun Jul 24 19:02:53 CEST 2011
Good afternoon...
I was trying to find a faster/better scriptable way to hardsub some files I
have than using avidemux and then ffmpeg, so I'm trying mencoder. The
problem is that I don't understand the reason for this error:
MEncoder 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team
>
> WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
>
success: format: 0 data: 0x0 - 0x18c93ddd
>
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "V�deo", -vid 0
>
[mkv] Track ID 2: audio (A_AAC) "�udio", -aid 0, -alang jpn
>
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Legenda", -sid 0, -slang por
>
[mkv] Will play video track 1.
>
Matroska file format detected.
>
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
>
[V] filefmt:31 fourcc:0x31637661 size:1280x720 fps:23.976 ftime:=0.0417
>
Opening video filter: [expand osd=1]
>
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
>
Opening video filter: [dsize=640:360:0]
>
================================================== ========================
>
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
>
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
>
================================================== ========================
>
*Audio format 0x4134504d is incompatible with '-oac copy', please try '-oac
> pcm' instead or use '-fafmttag' to override it.
> *
* *Audio mediainfo for source file:
Audio
>
ID : 2
>
Format : AAC
>
Format/Info : Advanced Audio Codec
>
Format profile : LC
>
Codec ID : A_AAC
>
Duration : 23mn 41s
>
Channel(s) : 2 channels
>
Channel positions : Front: L R
>
Sampling rate : 48.0 KHz
>
Compression mode : Lossy
>
Title : �udio
>
Language : Japanese
My command line is: (with or without -lavfopts format=mp4 the result is the
same)
mencoder -endpos 20 -vf ass -vf dsize=640:360:0 -embeddedfonts -noskip *-oac
> copy -ovc lavc -lavfopts format=mp4* -lavcopts
> vcodec=mpeg4:vqmin=2:vqmax=5:vbitrate=1000000 file.mkv -o teste.mp4
>
If I force an aac reencode it works, how come it can't be copied? Also I
don't know how to use the -fafmttag to force aac...
OBS: Command line used to test the aac reencode:
mencoder -endpos 20 -vf ass -vf dsize=640:360:0 -embeddedfonts -noskip *-oac
> faac -faacopts quality=800* -ovc lavc -lavfopts format=mp4 -lavcopts
> vcodec=mpeg4:vqmin=2:vqmax=5:vbitrate=1000000 file.mkv -o teste.mp4
>
I appreciate your attention.
Att,
Renato Rodrigues Zippert
More information about the MEncoder-users
mailing list