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
The problem is that I don't understand the reason for this error:
Is this the error?: WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. Then use: -of lavf It'll automatically use the container extension. You can also use: -of lavf -lavfopts format=mp4
Also I don't know how to use the -fafmttag to force aac...
For AAC, use this: -fafmttag 0x706d Cheers, Bill
Ops... My mistake... Wrong command, but even using "-of lavf" and "-lavfopts format=mp4" it doesn't copy the audio but accepts reencoding it. (but anyway, shouldn't avi be able to handle aac?) When I force with the -fafmttag I get: [mp4 @ 0x1e09230]Codec for stream 0 does not use global headers but
container format requires global headers
[mp4 @ 0x1e09230]Codec for stream 1 does not use global headers but
container format requires global headers
I'm able to play the files on MPlayer itself but not on my cell phone... Actually, I found this on MPlayer's documentation: As you can see, libavformat allows MEncoder to mux into a considerable
variety of containers. Unfortunately, as MEncoder was not designed from the beginning to support container formats other than AVI, your should really be paranoid about the resulting file. Please check to be sure that the audio/video synchronization is OK and that the file can be played correctly by players other than MPlayer.
As a solution I've used mencoder to just encode the video and separate apps to extract the audio and mux into a mp4 format (and worked perfectly). Att, Renato Rodrigues Zippert 2011/7/25 Bill Crockett <wsc4@optusnet.com.au>
The problem is that I don't understand the reason for this error:
Is this the error?: WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
Then use: -of lavf
It'll automatically use the container extension. You can also use: -of lavf -lavfopts format=mp4
Also I don't know how to use the -fafmttag to force aac...
For AAC, use this: -fafmttag 0x706d
Cheers,
Bill
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
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
It doesn't copy the audio but accepts reencoding it. (but anyway, shouldn't avi be able to handle aac?)
I see that you are using a Matroska container. I have never used that yet. I can't understand why -oac copy does not work for you. I've never had any problems with it. Do you get no audio info listed in the file after the copy? Yes, I've encoded to AVIs with AAC with success, but I mostly use x264.
[mp4 @ 0x1e09230]Codec for stream 0 does not use global headers but container format requires global headers...
I get that all the time in yellow. Even using "-x264encopts global_header" will still display it when encoding to that format. I don't know why exactly. It does not worry me because the end result is fine.
I'm able to play the files on MPlayer itself but not on my cell phone...
What videos formats play on your phone? What does the phone recommend?
As you can see, libavformat allows MEncoder to mux into a considerable variety of containers. Unfortunately, as MEncoder was not designed from the beginning to support container formats other than AVI...
You could try the -ovc x264 commands and see if the -oac copy works. Cheers, Bill
participants (2)
-
Bill Crockett -
Renato Zippert