[英]Can't remux MP4 into MP4 with FFmpeg (Could not find tag for codec none in stream #1)
I'm trying to create a copy of an MP4 with all streams (and metadata) except video.我正在尝试使用除视频之外的所有流(和元数据)创建 MP4 的副本。
However, for some reason, I get a codec error even though both input and output are mp4.但是,由于某种原因,即使输入和 output 都是 mp4,我也会收到编解码器错误。
I've tried mapping everything, but with -vn
:我已经尝试映射所有内容,但是使用
-vn
:
ffmpeg -i input.mp4 -vn -copy_unknown -map 0 -c copy out.mp4
Or with negative mapping:或使用负映射:
ffmpeg -i input.mp4 -map 0 -map -0:v -c copy out.mp4
Both commands return:两个命令都返回:
[mp4 @ 0000012b16bce340] Could not find tag for codec none in stream #1, codec not currently supported in container
Any ideas?有任何想法吗?
How is it possible that there are codec errors when trying to remux MP4 into MP4?尝试将 MP4 重新混合为 MP4 时,怎么可能出现编解码器错误?
You can download the video I tried this on here: https://icedrive.net/0/e4EpBXLe2V你可以在这里下载我试过的视频: https://icedrive.net/0/e4EpBXLe2V
Log: https://pastebin.com/5gD70KXn日志: https://pastebin.com/5gD70KXn
Omit the data stream(s) with a negative map:省略带有负 map 的数据流:
ffmpeg -i input.mp4 -map 0 -map -0:d -c copy out.mp4
See FFmpeg Wiki: Map .参见FFmpeg 维基:Map 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.