Mencoder has a lovely option for converting a mjpeg file into an avi file with an 'MJPG' codec that plays in VLC.
The command line to do this is:
mencoder filename.mjpeg -oac copy -ovc copy -o outputfile.avi -speed 0.3
where 0.3 is the ratio of the desired play framerate to the default 25 fps. All this does is make a copy of the mjpeg file, put an avi header on top and at the end, what seems to be an index of the frame positions in the file.
I want to replicate this in my own code, but I can't find documentation anywhere. What is the exact format of the index section? The header has extra filler bytes in it for some reason - whats this about?
Anyone know where I can find documentation? Both mencoder and vlc seem to have this codec built in.
+ Reply to Thread
Results 1 to 2 of 2
Similar Threads
-
Codec missing. Dont know which one. VLC wont play either.
By UmmAddan in forum Newbie / General discussionsReplies: 5Last Post: 20th Dec 2009, 15:48 -
mencoder + H.264 + XBox 360 - container and codec frame rate differs
By ali.khalil in forum LinuxReplies: 0Last Post: 24th Sep 2009, 09:31 -
MEncoder Crash on WMV & Possible Codec Problem!?!?
By gonwk in forum Video ConversionReplies: 0Last Post: 8th Mar 2009, 19:15 -
VLC player: can someone recompile w/ mplayers h264 codec ?
By vhelp in forum Newbie / General discussionsReplies: 4Last Post: 1st Feb 2009, 20:40 -
Mencoder Batch File - Converts Every Codec type
By peterbuilt in forum Video ConversionReplies: 5Last Post: 28th Jun 2008, 06:41