Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. # Majority credit to the dozens of programmers talking through the problem on StackExchange and elsewhere
  2. # Library vidstabdetect was a pain so I suggest a precompiled ffmpeg binary having it for your installation.
  3.  
  4. #1. build transform #2. apply transform #3. make side by side #4.
  5.  
  6. ffmpeg_sd -i [Input]combined_segments.mp4 -vf vidstabdetect=stepsize=1:shakiness=7:accuracy=8:result=transforms.trf -f null -;ffmpeg -i [Input]combined_segments.mp4 -vf vidstabtransform=smoothing=9:input="transforms.trf" stabilized_[Input]combined_segments.mp4;ffmpeg -i [Input]combined_segments.mp4 -i stabilized_[Input]combined_segments.mp4 -filter_complex "[0:v]pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]" -map [vid] -c:v libx264 -crf 23 -preset veryfast [output]stabilized_[Input]combined_segments.mp4;ffmpeg -i stabilized_[Input]combined_segments.mp4 audio_copy.wav;ffmpeg -i [output]stabilized_[Input]combined_segments.mp4 -i audio_copy.wav -shortest [output]stabilized_[Input]combined_segments_wAudio.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement