Version 2 (modified by root, at 2020-03-29T14:44:07Z) (diff) |
---|
multimedia notes
cut video by time with ffmpeg:
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
concatenate video with ffmpeg with no encode:
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
download dash video with `ffmpeg' with no encode:
ffmpeg -i https://url.to/manifest.mpd -map 0:1 -map 0:4 -c copy output.mp4
split cue/flac to wav:
shntool split -t "%n - %t" -m /- -o wav -f file.cue file.flac
instant to mp3:
shntool split -t "%n - %t" -m /- -o "cust ext=mp3 lame -m s -b 320 - %f" -f file.cue file.flac