PDA

View Full Version : exporting single frame to .jpg or .tif


Hero--
3rd February 2003, 16:08
Hi,
this is probably the most basic question ever,
but I need to export a single picture (.jpg or .tiff or something) of a videofile (.m2v), is this possible?

I looked through the docs but couldn't find anything appropriate,
I also found this thread:
http://forum.doom9.org/showthread.php?s=&threadid=26855
which talks about *importing* images, (but nothing about exporting)

also, if one could wish, maybe if one could export it to a deinterlaced pic right away (or maybe half size, every other line right away) (and of course choose which frame(s) to export, at offset from the start)

if it weren't because I need to do this with several hundred clips,
I'd just printscreen or export frame from premiere or something,
but if there was such a function in avisynth I could automate everything,

maybe there's such a function already but I missed it?

Thanks,

H

hakko504
3rd February 2003, 16:14
VirtualDub can export frames as pictures. You can use AviSynth to open a lot of mpeg files and then trim(x,x) in order to cut out frame x from each clip.

bb
3rd February 2003, 18:16
Instead of the regular VirtualDub you can use fccHandler's VirtualDub_MPEG2_AC3 to open MPEG-2 files directly without prior conversion to d2v (using DVD2AVI).

In VirtualDub go to the frame you want to save, click the "mark in" button, step one frame further, then click "mark out". Use File / Save image sequence to get a one-file sequence. You'll get a BMP file, not TIFF nor JPEG. Use one of the hundreds of converters to get your desired format.

bb

sh0dan
3rd February 2003, 18:30
For batching I'd personally try to do:

(if you have a Directshow MPEG2 decoder installed).


directhowsource("file.m2v").trim(200,-1)
aligndsplice(directhowsource("file2.m2v").trim(204,-1))
aligndsplice(directhowsource("file3.m2v").trim(203,-1))

[etc...]


And then save a bitmap sequence in vdub. It'll take a very long time if your files are long, and you get a frame far into the video, because DirectShowSource has manual seeking.

Creating the file should be quite easy, using a dir /b >file.txt and then doing some search/replace in a decent editor.

The best way would be to use mpeg2dec3, but it requires you to create all files are d2v projects for all files.

McQuaid
4th February 2003, 04:31
If all you need is a single picture, another quick way is to load the file in virtual dub and choose video/copy source/output frame to clipboard (ctrl1/2). Then just paste in your favourite image program.