Hey folks, first off I apologize if this question is in the wrong place, but I am not sure where else to post it.
I'm creating a mask for a chromakey blend and I wanted to retain as good a quality as I can of the resulting video file, so I was going to use FFMPEG. The resulting video file has to be 7276 frames of the same image.
I have the script for making a video file from a batch of images, and it works fine. But I wanted to build a video without having to duplicate and rename 7276 frames! I tried just taking in the incremental variable from the original batch script, but it doesn't work that way. So I basically need to know of some way to tell FFMPEG to just use the same image 7276 times.
Thanks in advance for your help!
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 8 of 8
Thread
-
-
Use -loop 1 with -t for duration (in hh:mm : ss : ms notation) and -r for fps
e.g. lets say you wanted 2 seconds of a 23.976 fps sequence derived from a single still image - this would yield 48 frames . You would have to calculate adjust the parameters for your case, according to the fps you wanted
Code:ffmpeg -loop 1 -r 23.976 -i input.jpg -t 00:00:02 -vcodec qtrle -an output.mov
Last edited by poisondeathray; 8th Jun 2013 at 14:40.
-
are you using a relatively recent ffmpeg binary ? It works here (I didn't use -vb, but it shouldn't make a difference)
http://ffmpeg.zeranoe.com/builds/ -
I was a build from April but installed the latest and it still gave me the same result. It still renders a file with no errors. It's just a single frame of the .bmp image, not the four minutes and five seconds I need.
-
Okay I copied the syntax exactly as you had it but with my variables. This worked. Gonna take some tweeking. I wanted the higher bitrate in there but that might have been tripping it up. Not sure, but this does work now. Thank you!
-
It worked when I added -vb as well .
Another option is to use quantizer encoding instead of fixed with mjpeg . -v:q <some value> . Lower values yield higher quality, larger filesizes
You said you wanted "retain as good quality as I can", but note mjpeg is lossy compression, even at the lowest quantizer or highest bitrate . But lossless compression can cause the filesize to balloon (that's why most people import the still into their compositing application instead, especially since it's a static image)Last edited by poisondeathray; 8th Jun 2013 at 15:42.
Similar Threads
-
how to covert .swf single image file into .bmp or .jpg
By Toastie in forum ComputerReplies: 2Last Post: 19th Aug 2013, 00:00 -
Creating a video file from a DTS file with blank/still image video
By vdgg in forum AudioReplies: 8Last Post: 31st Oct 2012, 00:41 -
ffmpeg: an image to video conversion question...
By mehmedean in forum Video ConversionReplies: 14Last Post: 31st Jan 2011, 19:18 -
Convert Single Image to Video
By Deluge in forum Video ConversionReplies: 5Last Post: 19th Sep 2010, 07:24 -
FFMPeg trying to add image before flv file to get 3gp
By wingchun22 in forum Video ConversionReplies: 4Last Post: 25th Jul 2008, 22:09