View Full Version : Opening M-JPEG files in a .mov containter?
Tailschao
20th February 2009, 11:26
My digital camera video mode produces ~13Mbps M-JPEG files inside a .mov container. They play fine with Media Player Classic (With ffdshow, obviously), but if I try to open them in Avisynth (With DirectShowSource), I get:
"DirectShowSource: couldn't open file X:\path\to\file.mov:
error code 0xc00d0026"
I assume QTInput won't work as it is not actually a Quicktime file, right?
What with it being M-JPEG, I tried just renaming it to .avi, but I can't even play that in Media Player Classic (Cannot find output pin or something), and trying with avisynth just freezes.
Is my only choice to re-encode the MOVs to uncompressed avi first and import them?
hanfrunz
20th February 2009, 12:05
If quicktime-player can play it, qtinput() should open it :)
You could also use my little mjpeg2jpg (http://forum.doom9.org/showthread.php?t=108253) tool. It extracts all jpg files of a mjpeg file. The you can use Imagereader() in avisynth.
Sagekilla
20th February 2009, 19:27
If it's a .mov, it's a quicktime file. Just because the video inside it is encoded as M-JPEG doesn't change the fact that it's a QT file. M-JPEG is the codec, not the container. Quicktime MOV is what your container is and therefore you can't rename it to avi since the two containers are completely different.
Blue_MiSfit
20th February 2009, 19:58
If you ask tateu nicely, he might send you his modified QTSource filter which supports passing the decoding into VFW.
In other words, QTSource will handle the splitting, and will pass the MJPG stream to VFW, where you can have ffdshow handle the MJPG decoding.
I know QTSource usually works just fine with MJPG files (without the special VFW version), but I sometimes had issues with HD content. Your experience may differ :)
~MiSfit
Tailschao
21st February 2009, 18:06
If it's a .mov, it's a quicktime file. Just because the video inside it is encoded as M-JPEG doesn't change the fact that it's a QT file. M-JPEG is the codec, not the container. Quicktime MOV is what your container is and therefore you can't rename it to avi since the two containers are completely different.
Ah, ok. I assumed that Quicktime itself was the codec.
I ended up extracting the jpgs and using ImageSource like hanfrunz suggested. :thanks: everybody
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.