Skip to content

Instantly share code, notes, and snippets.

@tera-torn
Created October 6, 2016 18:07
Show Gist options
  • Save tera-torn/86464e520f03ec5344a3bd2b2a8f3b81 to your computer and use it in GitHub Desktop.
Save tera-torn/86464e520f03ec5344a3bd2b2a8f3b81 to your computer and use it in GitHub Desktop.
confusing ffmpeg stuff
ffmpeg -y -f lavfi -i testsrc2=duration=3:size=1280x720:rate=30 in.mp4
ffmpeg -y -i in.mp4 -filter_complex "[0:v]trim=start=1.0,trim=start_frame=0:end_frame=1,loop=50:size=1:start=0[out]" -map "[out]" out.mp4
ffmpeg -y -i in.mp4 -filter_complex "[0:v]split[v1][v2];[v1]null;[v2]trim=start=1.0,trim=start_frame=0:end_frame=1,loop=50:size=1:start=0[out]" -map "[out]" out2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment