Log in

View Full Version : Need a muxing tool for MOV


Ponyo
28th January 2012, 00:09
I need to be able to mux an MJPEG and PCM stream into a MOV container. Simple, right? Here's the kicker. I need to be able to specify the interleaving parameters.

Nothing I've found seems to allow that. For example, ffmpeg will interleave it audio packet/video packet/audio packet/video packet/etc, and doesn't let you specify otherwise. The device I need to play it back on expects a specific pattern of 15 video then 8 audio packets. It's a pain in the ass. :(

I've been looking around for a tool for windows or linux, and I can't find a thing.

Even something that will encode to MOV (that allows me to use MJPEG/PCM) might do the trick, if it lets me specify a 500ms interleaving period, like Virtualdub does for avi.

Ponyo
28th January 2012, 18:03
It seems that this feature in ffmpeg might do the trick.

"mov/mp4 chunking support"

It was added in v0.9 so I'm compiling that right now. I can't seem to find anything on the net about what switch or command does it though. Any pointers?

edit: it's in ffmpeg --help once it's compiled, and the settings are:

-chunk_duration <int> E.... microseconds for each chunk
-chunk_size <int> E.... size in bytes for each chunk

Now for some experimenting...

edit: Nope that's no good. It doesn't interleave the way I thought it would. There doesn't seem to be any set pattern to the packet order.