Skip to content

Instantly share code, notes, and snippets.

@neuro-sys
Created May 11, 2016 19:25
Show Gist options
  • Save neuro-sys/1d857664c5a32cabae4a2b1d0a826a60 to your computer and use it in GitHub Desktop.
Save neuro-sys/1d857664c5a32cabae4a2b1d0a826a60 to your computer and use it in GitHub Desktop.
ffmpeg optimize needed
/home/neuro/ffmpeg-3.0.2-64bit-static/ffmpeg
-y \
-i /home/neuro/public_html/duracell-video-generator-worker/target/classes/videos/tren.mp4 \
-i /home/neuro/public_html/duracell-video-generator-worker/target/classes/output/fad6870d-d724-48bb-a130-2b5e4e26d50c/temporary_render_path/part_0/%4d.png \
-i /home/neuro/public_html/duracell-video-generator-worker/target/classes/output/fad6870d-d724-48bb-a130-2b5e4e26d50c/temporary_render_path/part_1/%4d.png \
-i /home/neuro/public_html/duracell-video-generator-worker/target/classes/output/fad6870d-d724-48bb-a130-2b5e4e26d50c/temporary_render_path/part_2/%4d.png \
-i /home/neuro/public_html/duracell-video-generator-worker/target/classes/output/fad6870d-d724-48bb-a130-2b5e4e26d50c/temporary_render_path/part_3/%4d.png \
-i /home/neuro/public_html/duracell-video-generator-worker/target/classes/output/fad6870d-d724-48bb-a130-2b5e4e26d50c/temporary_render_path/part_4/%4d.png \
-filter_complex '[1:v]setpts=PTS-STARTPTS+(22.520000/TB)[1v];[0:v][1v]overlay=enable='\''between(t,22.520000,25.880000)'\''[out1];[2:v]setpts=PTS-STARTPTS+(31.360000/TB)[2v];[out1][2v]overlay=enable='\''between(t,31.360000,34.800000)'\''[out2];[3:v]setpts=PTS-STARTPTS+(40.560000/TB)[3v];[out2][3v]overlay=enable='\''between(t,40.560000,44.680000)'\''[out3];[4:v]setpts=PTS-STARTPTS+(61.880000/TB)[4v];[out3][4v]overlay=enable='\''between(t,61.880000,67.200000)'\''[out4];[5:v]setpts=PTS-STARTPTS+(69.640000/TB)[5v];[out4][5v]overlay=enable='\''between(t,69.640000,88.080000)'\''[out5]' \
-map '[out5]' \
/home/neuro/public_html/duracell-video-generator-worker/target/classes/output/fad6870d-d724-48bb-a130-2b5e4e26d50c/video/tren.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment