[FFmpeg-user] VFR jpg files to MJPEG video

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Feb 6 10:09:04 CET 2014


MiHe <video-server <at> aab.sk> writes:

> i have JPG files with millisecond timestamps in the 
> file name,

How do the file names look like?

How are the files produced?
Is this common hardware?

> from a VFR ip camera, avg 0.5 - 2 FPS
> i can feed these through stdin or rename files so 
> they are numbered (image2) but the PTS is not correct 
> because of the VFR.
> 
> is it possible to construct a playable video file 
> (MP4/AVI/MKV), which uses MJPEG codec(without 
> transcoding) with these exact VFR timestamps ?

You can write a shell script that duplicates the input 
frames to achieve cfr, but the missing feature may be 
easy to implement within FFmpeg if the file format is 
well defined.

Carl Eugen



More information about the ffmpeg-user mailing list