As per title. I have a long movie and need to export ~900 frames to uncompressed bitmap files.
I know how to do this manually one frame at a a time but this way it will take ages for 900 frames.
I already have frame IDs in excel spreadsheet column. And these 900 frames are not in one block of the video, but distributed randomly in video.
Function 'Save image sequence' in Virtualdub is not helpful here as it doesn't allow me to put custom range of frames there, nor put individual frame numbers to export there.
Is there any script I an use to do the job?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
Last edited by tuskacz; 4th Feb 2023 at 22:14.
-
You can do it in avisynth - using ConditionalReader to read a .txt file with the wanted frames, and ConditionalFilter to select only those to write out
Framenumbering starts at "zero"
If your video is YUV, you probably want to use Rec709 for HD, Rec601 for SD to write images. In the example below, I used 709, progressive, no alpha channel. There are other considerations if it's interlaced, or other colorspaces. Provide more info if it's none of these
The source filter you would use, depends on the type of video. A general one would be FFVideoSource which could load most types
eg.
Code:FFVideoSource("video.ext") orig=last write=orig.ConverToRGB24(matrix="rec709").ImageWriter("file_%06d.bmp") ConditionalFilter(orig, write, orig, "value", "=", "1") ConditionalReader("framenumbers.txt", "value")
For framenumbers.txt, create another column in your existing excel sheet , where each value has 1 beside it. Essentially "1" turns "on" the frame, "0" turns off. You only need to list included frames. Copy/paste into a text file. Rename it "framenumbers.txt"
So if you had 323, 6543, 7000 (just for this simple example)
Code:Type int Default 0 323 1 6543 1 7000 1
Right now it would write
file_000323.bmp
file_006543.bmp
file_007000.bmpLast edited by poisondeathray; 4th Feb 2023 at 23:43.
Similar Threads
-
How to export frames from a video with timecode in filenames (ffmpeg)?
By eliio in forum Newbie / General discussionsReplies: 0Last Post: 13th Jun 2022, 11:25 -
VirtualDub 4K Export
By jseo13579 in forum EditingReplies: 3Last Post: 21st Apr 2020, 10:50 -
Keep transparency when making video from frames (individual images)
By kully00000 in forum EditingReplies: 3Last Post: 31st Oct 2018, 09:57 -
I want to export subtitles of images(pgs) with CLI
By hifumin in forum SubtitleReplies: 4Last Post: 3rd May 2018, 01:20 -
virtualdub export image stopped
By zanzar in forum Newbie / General discussionsReplies: 5Last Post: 3rd Apr 2018, 14:35