Convert JPG to Video for playback in VLC
Sebastian Wright
Is this a quick/simple way to convert a bunch of JPG stills into some sort of video file so it can be played back in VLC? If the convertion can be done using VLC, that would be preferred.
16 Answers
You can use a "stopmotion" maker: here's an overview of them, and one to download: CellSoft Take5 1.30
Even you can also use Picasa 3 which has a feature that does exactly this - basically, it saves the slideshow into a saved video file - works nicely.
1I use mencoder to assemble a series of jpeg frames into an avi, which can then be easily played back in VLC
mencoder mf://*.jpg -mf fps=24 -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=12800:autoaspect=1 -o video.avi
you may want to play with the lavcopts but that should get you going...
ps. I tried to do this with VLC itself but just couldn't figure it out
1just Open the VLC Player > Media>Convert/save or press ctrl+R >add your images > drop down option to play . Done ! :)
1On Windows this was the only thing I could get to work with a bunch of non-sequentially named jpegs (e.g. DMC003.JPG, DMC006.JPG, DMC009.JPG)
- Rename to sequential files in Powershell:
dir *.jpg | %{$x=0} {Rename-Item $_ -NewName "Frame$($x.tostring('000000')).jpg"; $x++ }Then in Anaconda prompt:
ffmpeg -framerate 15 -i Frame%06d.jpg output.mp4This was using ffmpeg installed with conda:
conda create -n ffmpeg -c conda-forge ffmpeg
conda activate ffmpeg There is no need to convert JPG images to video for playback in VLC, as VLC includes JPG playback. Just add them to the playlist and they'll be shown for 10 seconds.
The JPG playback time is globally adjustable in the settings, or individually by playing around with e.g. an XSPF playlist and the <vlc:option>image-duration=6</vlc:option> option.
You can do the playback option mentioned above; however like you, I wanted to CONVERT my jpeg files to mp4 using VLC. So it may be painstaking if you want to convert hundreds of images, but you need to convert each image to mp4 using the CONVERT/SAVE. Then merge all the newly converted mp4 files into one video.