简体   繁体   中英

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.

However, for some reason, I get a codec error even though both input and output are mp4.

I've tried mapping everything, but with -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?

You can download the video I tried this on here: https://icedrive.net/0/e4EpBXLe2V

Log: https://pastebin.com/5gD70KXn

Omit the data stream(s) with a negative map:

ffmpeg -i input.mp4 -map 0 -map -0:d -c copy out.mp4

See FFmpeg Wiki: Map .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM