I’ve been trying this over and over again but whatever I do I cannot get mencoder to encode global headers into either video or audio streams. Any ideas? Here are the commands im using:
FLV container, flv vid (lavc), MP3 audio (lavc)
mencoder E:\Sequence1.mxf -o E:\Sequence1.flv -vf scale=640:-2 -af channels=2,resample=44100 -mc 0 -ovc lavc -oac lavc -lavcopts aglobal=3:vglobal=3:vcodec=flv:vbitrate=512:acodec =libmp3lame:abitrate=96 -of lavf
FLV container, h264 vid, MP3 audio (libav)
mencoder E:\Sequence1.mxf -o E:\Sequence1.flv -vf scale=512:-2 -af channels=2,resample=44100 -mc 0 -ovc x264 -x264encopts bitrate=384reset=fast -oac lavc -lavcopts acodec=libmp3lame:abitrate=96 -of lavf
MP4 container, H264 vid, AAC audio
mencoder E:\Sequence1.mxf -o E:\Sequence1.mp4 -vf scale=320:240 -af channels=2,resample=44100 -ovc x264 -x264encopts bitrate=384 -oac faac -faacopts br=64 -mc 0 -of lavf
Whatever I do I always receive these warnings:
Writing header...
[flv @ 01ff9010]Codec for stream 0 does not use global headers but container for
mat requires global headers
[flv @ 01ff9010]Codec for stream 1 does not use global headers but container for
mat requires global headers
I’ve tried all 4 options for aheader/vheader, encoding using faac, x264, wrapping using mp4, mov... nothing seems to make a difference! The only reason I am using flv in this example is because it actually plays back in flash anyway. I can play back the mov or mp4 files created (x264/aac) using VLC or MPlayer but not Quicktime.
The idea is to end up with x264 files suitable for Quicktime.
Any help appreciated!
Btw it needs to be a one pass process ie no rewrapping using mp4box or something.
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Problem with window size when encode mov to flv
By amedeop in forum ffmpegX general discussionReplies: 1Last Post: 16th Feb 2010, 17:23 -
Having trouble with a conversion (mp4 / avi / mov / flv)
By loxley in forum Video ConversionReplies: 4Last Post: 23rd Feb 2009, 11:17 -
Mux a FLV AVI + MP3 -> FLV with ffmpeg or mencoder?
By Colmino in forum Video ConversionReplies: 9Last Post: 29th Mar 2008, 22:11 -
Problems trying to encode .mov to .flv
By bneubert in forum ffmpegX general discussionReplies: 2Last Post: 19th Jul 2007, 15:17 -
MP4 (or any video) to FLV conversion using mencoder
By fireserphant in forum Video ConversionReplies: 10Last Post: 11th Jun 2007, 10:16