Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input="/mnt/upload/movies/Sintel.2010.720p.mkv"
- # create/transcode segments
- 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
- echo "file aud_0.mp4" > out.cat
- 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
- echo "file aud_1.mp4" >> out.cat
- 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
- echo "file aud_2.mp4" >> out.cat
- 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
- echo "file aud_3.mp4" >> out.cat
- # concatenate transcoded segments
- ffmpeg -f concat -i out.cat -c copy segtest.mp4
Add Comment
Please, Sign In to add comment