FFmpeg - 备忘录
记录一下 FFmpeg 常用操作,太容易忘了(雾
- flac -> mp3
- m3u8 -> mp4 (downloading)
- mkv -> mp4
flac -> mp3
1 | ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3 |
-ab 320k
设置比特率-map_metadata 0 -id3v2_version 3
复制元数据
m3u8 -> mp4
1 | ffmpeg -allowed_extensions ALL -protocol_whitelist "file,http,https,tls,tcp,crypto" -i https://example.com/index.m3u8 -c copy output.mp4 |
mkv -> mp4
1 | ffmpeg -i obj.mkv -y -vcodec copy -acodec copy output.mp4 |