Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Created May 4, 2020 23:53
Show Gist options
  • Save leandromoreira/db303a241a6435fa4192c5219b9d3aa6 to your computer and use it in GitHub Desktop.
Save leandromoreira/db303a241a6435fa4192c5219b9d3aa6 to your computer and use it in GitHub Desktop.
ffmpeg -y -hide_banner -re -t 00:00:10 \
-f lavfi -i 'testsrc2=size=1280x720:rate=60,format=yuv420p' \
-filter_complex "[0:v]fps=1,split=2[out1][out2]" \
-map "[out1]" \
-vcodec libwebp \
-lossless 1 \
-preset photo \
-threads 1 \
pixx/thumb%9d.webp \
-map "[out2]" \
-q:v 5 \
-threads 1 \
pixx/thumb%9d.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment