fant0men

ffmpeg (cut, edit and concatenate a video)

Feb 16th, 2020
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cd '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder'
  4.  
  5. ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder/simplescreenrecorder-2020-02-16_07.37.14.mkv' -c:v ffv1 -c:a copy -t 00:55:36.100 '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder/simplescreenrecorder-2020-02-16_07.37.14_part1.mkv'
  6.  
  7. ffmpeg -ss 01:01:12.500 -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder/simplescreenrecorder-2020-02-16_07.37.14.mkv' -c:v ffv1 -c:a copy '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder/simplescreenrecorder-2020-02-16_07.37.14_part2.mkv'
  8.  
  9. mkvmerge -o '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder/simplescreenrecorder-2020-02-16_07.37.14_cutout_nosound.mkv' --no-audio '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/simplescreenrecorder/simplescreenrecorder-2020-02-16_07.37.14_cutout.mkv'
  10.  
  11. ffmpeg -i 'simplescreenrecorder-2020-02-16_07.37.14_cutout_nosound.mkv' -vf "setpts=0.05*PTS" -c:v ffv1 'simplescreenrecorder-2020-02-16_07.37.14_cutout_nosound_600fps.mkv'
  12.  
  13. ffmpeg -f concat -safe 0 -i concat.txt -c:v ffv1 -c:a copy duke3d_part2.mkv
  14.  
  15. ffmpeg -y -i duke3d_part2.mkv -c:v libx264 -b:v 16000k -pass 1 -preset placebo -tune grain -an -f mkv /dev/null && \
  16. ffmpeg -i duke3d_part2.mkv -c:v libx264 -b:v 16000k -pass 2 -preset placebo -tune grain -c:a flac duke3d_part2_x264.mkv
Add Comment
Please, Sign In to add comment