= notes for `multimedia` == cut video by time with `ffmpeg`: {{{#!sh ffmpeg -ss 00:00:11.500 -t 48 -i "couch throne.mpg" -c:v libx264 cut.avi ffmpeg -ss 00:01:48.000 -t 81 -i source.mkv -c:v libx264 -c:a mp3 -sn cut.mp4 ffmpeg -ss 00:43:53.000 -t 25 -i source.mkv -c:v libx264 -map 0:4:a -map 0:v -map_chapters -1 cut.mp4 }}} [[br]] == concatenate video with `ffmpeg` avoiding to encoding: {{{#!sh ffmpeg -i myfile1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts ffmpeg -i myfile2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4 }}} [[br]] == download dash video with `ffmpeg` avoiding to encoding: {{{#!sh ffmpeg -i https://url.to/manifest.mpd -map 0:1 -map 0:4 -c copy output.mp4 }}} [[br]] == convert to android {{{#!sh ffmpeg -ss 1:56 -t 50 -i input.mkv -movflags +faststart -map_metadata -1 -map_chapters -1 -filter:v "crop=width:height:x:y" -c:a aac -ar 44100 -c:v libx264 out.mp4 }}} [[br]] == split `cue`/`flac` to `wav`: {{{#!sh shntool split -t "%n - %t" -m /- -o wav -f file.cue file.flac }}} instant to `mp3`: {{{#!sh shntool split -t "%n - %t" -m /- -o "cust ext=mp3 lame -m s -b 320 - %f" -f file.cue file.flac }}} [[br]]