Tips for software - FFMpeg
FFmpeg 是一個開放原始碼的自由軟體,可以執行音訊和視訊多種格式的錄影、轉檔、串流功能,包含了libavcodec——這是一個用於多個專案中音訊和視訊的解碼器函式庫,以及libavformat——一個音訊與視訊格式轉換函式庫。 「FFmpeg」這個單詞中的「FF」指的是「Fast Forward」。 Extracted from 維基百科 on 5 Apr 2021 以下是一些使用上的方法供日後參考: - Extract part of MP4 video with start time and end time: ffmpeg -hwaccel cuda -i Full.mp4 -ss 00:00:00 -to 00:00:17 PartA.mp4 - Extract part of MP4 video with start time and duration: ffmpeg -hwaccel cuda -i Full.mp4 -ss 00:00:00 -t 00:00:17 PartA.mp4 - Crop video with height, width, left upper corner x, left upper corner y h:w:x:y ffmpeg.exe -hwaccel cuda -i Full.mp4 -filter:v "crop=862:850:541:138" Cropped.mp4 - Reduce size of video by half ffmpeg -hwaccel cuda -i Full.mov -vf "scale=iw/2:ih/2" Half.mov - Encode with H264 ffmpeg -hwaccel cuda -i Full.mov -vcodec libx264 -crf 20 Full-H264.mov - Encode with H265 ffmpeg -hwaccel cuda -i Full.mov -vcodec libx265 -crf 28 Full-H265.mov - Make compatible to most browser (include IOS device) ffmpeg -hwacc...