I would like to extract frames from a VOB file at predetermined positions (say 5s, 10s, etc).
I can comfortably do this if i initially convert the VOB file to AVI format. But when it comes to getting frames directly from the VOB file, it is giving me a bit of headache.![]()
Anybody with code ideas? (c,c++,c#)
+ Reply to Thread
Results 1 to 9 of 9
-
void izmoto(char* szKwazi);
-
Hi-
Here's one way. Make an AviSynth script with this line (or some variation):
SelectEvery(250,0)
That tells you for every 250 frames (10 seconds at 25fps), save the first frame. Open it in VDub(Mod), and then File->Save Image Sequence. Give them a name and choose to save as BMP, PNG, or TGA.
You can do something similar directly in VDubMod by opening the VOB file (or the AviSynth script file made from that VOB), going Video->Frame Rate->Decimate By 250, and then saving the Image Sequence. Adjust the Decimation based on your framerate and length between pics. -
Manono,
About "...You can do something similar directly in VDubMod by opening...".
I am using VirtualDubMpeg-2 to covert the VOB to an AVI file. So i think your solution will serve me better in this.
I've tried it and it is actually working OK.
I would like to create a dynamic VCF (VirtualDub Configuration File) that achieves the same result.
Waht is the instruction for File->Save Image Sequence... (in a VCF file)void izmoto(char* szKwazi); -
How about File->Save Processing Settings (in VDubMod, maybe the same in yours)? If that's not what you want, then I have no idea.
I remembered something I got from Baldrick the other day (thanks Baldrick!) that you may (or may not) find useful. I used a movie trailer I had lying around and this script:
LoadPlugin("D:\AviSynth Stuff\Dlls\DGDecode.dll")
MPEG2Source("E:\Black Widow\4-1\4-1.d2v")
Crop(2,8,-14,-10)
LanczosResize(208,112)
SelectEvery(240,0)
I opened the script in Media Player Classic and then File->Save Thumbnails. I resized them a bit to fit on this page:
-
manono,
I think i just got a solution
In teh Save Image Sequence... dialog box, there's this check box that goes like 'Don't run this job now; add it to job control so i can run it in batch mode.'.
After dismissing the dialog box (Click OK), VirtuDub will save the info in a file called VirtualDub.jobs (in the directory where VirtualDub is running).
So i've opened the VirtualDub.jobs file and the line:
"VirtualDub.SaveImageSequence("E:\\Testing\\al l frames\\vts", ".jpeg", 4, 2, 95);"
is just waht i was looking for.
Thanks.void izmoto(char* szKwazi); -
Can I extract screens from a vob file and save them to jpg or png? John
Similar Threads
-
How to Extract Subtitles from a VOB File?
By skorpinok in forum Video ConversionReplies: 2Last Post: 16th Oct 2011, 18:35 -
Trying to extract VOB file with Isobuster, nothing happens?
By dai3504 in forum DVD RippingReplies: 2Last Post: 8th May 2011, 10:42 -
extract subtitles from .VOB file
By avextraxjp in forum Newbie / General discussionsReplies: 2Last Post: 10th May 2010, 12:19 -
Extract a frame from .flv file using .Net program
By evolvingwheel in forum EditingReplies: 0Last Post: 18th Jan 2009, 09:10 -
How can I extract chapters from VOB file?
By SubFlow in forum EditingReplies: 1Last Post: 18th Jun 2008, 03:49