[Share Experiences] 合并多个MP4文件
Tofloor
poster avatar
蔚蓝的天空
deepin
2022-01-14 19:49
Author

合并多个MP4文件
把多个MP4文件连接起来的方法与音频文件不太一样,比较有效的方法是:

$ cat mylist.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

$ ffmpeg -f concat -i mylist.txt -c copy output.mp4

Reply Favorite View the author
All Replies
deepin-mq
deepin
2022-01-14 23:54
#1

Reply View the author
lcw0268
deepin
2022-01-15 02:17
#2
It has been deleted!
蔚蓝的天空
deepin
2022-01-15 22:03
#3
lcw0268 It has been deleted!

没办法,用LINUX精髓就是要用命令行啊🤧

Reply View the author
bigben446
deepin
2023-09-11 05:16
#4

谢谢,Unsafe file name报错可以用 -safe 0解决

$ ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4

Reply View the author
bigben446
deepin
2023-09-11 05:17
#5

mp4提取音频mp3

ffmpeg MP4 提取 MP3文件

使用 ffmpeg 可以将 MP4 文件提取为 MP3 文件。使用命令如下:

ffmpeg -i input.mp4 -vn -ar 44100 -ac 2 -b:a 192k output.mp3

-i input.mp4:指定输入文件 -vn:表示不输出视频流 -ar 44100:采样率为 44.1kHz -ac 2:立体声 -b:a 192k:码率为 192kbps output.mp3:输出文件名称

原文链接:https://blog.csdn.net/weixin_42613017/article/details/129514401

Reply View the author