View Full Version : Open an MJPEG source in GKnot?
valnar
27th October 2003, 17:17
I capture my analog video with MJPEG or HuffyUV before converting to DivX. I use VirtualDub and do all the conversions manually, mainly because GKnot doesn't open MJPeg AVI files natively. Even if I don't use GKnot all the way, it would be nice to get a compressibility test on these files before encoding, so I can pick a better bitrate within VirtualDub.
Is there any AVI Script or some other method of opening a MJPeg file within Gordian Knot?
-Robert
jggimi
27th October 2003, 22:14
If for some reason the avi won't open directly, you can always create a 1-line .avs script and use DirectShow to frameserve the video to Gknot:DirectShowSource("<Filename>.avi",fps=<framerate>)
valnar
28th October 2003, 14:12
That didn't work. I get a frozen GKnot screen and need to kill the process. Hmmm...
Any other suggestions? Or is there a way to perform a compressibility check within VDub without GKnot?
That's what I really need.
-Robert
jggimi
28th October 2003, 15:30
There is a manual method outlined in this this sticky thread (http://forum.doom9.org/showthread.php?s=&threadid=44414) in the DivX Encoding forum. But it assumes both Gknot and AviSynth are working properly.
From what I can recall about opening .avi sources in Gknot, lenox uses a Windows .dll to accomplish the function, and is dependant on the Windows OS managing the .avi file properly. But since your .avs with DirectShowSource() failed ... it may be due to the same Windows environment/limitation that caused opening the .avi to fail. You could test this by opening the 1-line DirectShowSource() script with Vdub ... it will likely also fail.
Perhaps you could try a 1-line .avs using AviSource() instead? This may circumvent whatever problem you're having.
If it fails to open in Gknot, but opens in Vdub, you could use the manual method above. But in that latter case -- failing in Gknot, working in Vdub -- you'll need to manually create the .avs that Gknot would have created for you, that includes your cropping/resizing/filtering if any, as well as the MPEG2DECn plugin and the SelectRangeEvery() used for comp tests.
[EDIT: I'd forgotten all about Jonny's ENC tool (http://forum.doom9.org/showthread.php?s=&threadid=50714&highlight=jonny+enc) which can be used to automate comp tests and encoding with Vdub.]
jonny
30th October 2003, 15:06
That didn't work. I get a frozen GKnot screen and need to kill the process. Hmmm...
First of all, the avs plays correctly if you open it with mediaplayer?
What AviSynth version have you installed?
I'm, sometimes, experiencing freezes in Enc (expecially with DirectShowSource, but some friends have reported freezes on other types of avs files too).
Using one of the AviSynth versions here seems to solve the problem:
http://cultact-server.novi.dk/kpo/avisynth/avs_cvs.html
I dunno if this is exactly the same problem i've experienced (i should know where exactly the freeze happen in the GKnot code & the AviSynth installed), anyway trying if this solution works takes 10mins :)
(i'm really interested on this, so please let me know! ^^)
[EDIT] This is my 666 post :devil:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.