Version 7 (modified by root, at 2023-07-09T07:18:09Z) (diff) |
---|
notes for multimedia
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 avoiding to encoding:
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 avoiding to encoding:
ffmpeg -i https://url.to/manifest.mpd -map 0:1 -map 0:4 -c copy output.mp4
convert to android
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
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