jrottenberg / ffmpeg

Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi
https://hub.docker.com/r/jrottenberg/ffmpeg/
Apache License 2.0
1.37k stars 450 forks source link

How to convert *.jpg to *.mov ? #297

Closed mozgbrasil closed 3 years ago

mozgbrasil commented 3 years ago

Hello good Morning

How do I convert multiple images to video?

The following script I believe works in a local environment, how do I use it with your Docker image?

cat *.jpg | ffmpeg -f image2pipe -r 1 -vcodec png -i - -vcodec libx264 "animation$(date +%Y-%m-%d%H-%M-%S).mov"

I tried with the following model but a video is created that does not run, it is black screen without video size

docker run -v $(pwd):$(pwd) -w $(pwd) \
jrottenberg/ffmpeg \
-stats \
-r 1 -pattern_type glob -i "*.jpg" -c:v libx264 "animation_$(date +%Y-%m-%d_%H-%M-%S).mov"