jrottenberg/ffmpeg

How to convert *.jpg to *.mov ?

mozgbrasil opened this issue · 0 comments

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"