Guest User

segtest.sh

a guest
Dec 22nd, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. input="/mnt/upload/movies/Sintel.2010.720p.mkv"
  2. # create/transcode segments
  3. ffmpeg -y -ss 0 -t 8 -i $input -map 0:1 -sn -dn -vn -map_chapters -1 -map_metadata -1 -c:a aac -strict experimental aud_0.mp4
  4. echo "file aud_0.mp4" > out.cat
  5. ffmpeg -y -ss 8 -t 8 -i $input -map 0:1 -sn -dn -vn -map_chapters -1 -map_metadata -1 -c:a aac -strict experimental aud_1.mp4
  6. echo "file aud_1.mp4" >> out.cat
  7. ffmpeg -y -ss 16 -t 8 -i $input -map 0:1 -sn -dn -vn -map_chapters -1 -map_metadata -1 -c:a aac -strict experimental aud_2.mp4
  8. echo "file aud_2.mp4" >> out.cat
  9. ffmpeg -y -ss 24 -t 8 -i $input -map 0:1 -sn -dn -vn -map_chapters -1 -map_metadata -1 -c:a aac -strict experimental aud_3.mp4
  10. echo "file aud_3.mp4" >> out.cat
  11.  
  12. # concatenate transcoded segments
  13. ffmpeg -f concat -i out.cat -c copy segtest.mp4
Add Comment
Please, Sign In to add comment