2024-12-19, 06:03 AM
You are getting this error because the file contains an image attachment (usually cover.jpg), and the hevc_metadata bitstream filter does not support image streams.
To check the streams in the file, run this command:
This will print detailed information about the input file, including all streams (video, audio, subtitles, and attachments). You’ll see something like this in the output:
Look for any streams labeled as Video: mjpeg. Once identified, you can exclude these image attachments from being processed by adding the corresponding -map -0:4 argument (or whichever stream index corresponds to the image).
For example, your full command might look like this:
This will exclude the image attachment (cover.jpg), preventing the error related to the hevc_metadata bitstream filter.
To check the streams in the file, run this command:
Code:
.\ffmpeg -i "c:\path_to\file.mkv"
This will print detailed information about the input file, including all streams (video, audio, subtitles, and attachments). You’ll see something like this in the output:
Code:
Stream #0:0: Video: hevc (Main 10)…
Stream #0:1: Audio: aac, ….
Stream #0:2: Subtitle: subrip …
Stream #0:4: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 1400x2100 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn (attached pic) Metadata: filename : cover.jpg mimetype : image/jpeg
Look for any streams labeled as Video: mjpeg. Once identified, you can exclude these image attachments from being processed by adding the corresponding -map -0:4 argument (or whichever stream index corresponds to the image).
For example, your full command might look like this:
Code:
.\ffmpeg.exe -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -map 0 -map -0:4 …
This will exclude the image attachment (cover.jpg), preventing the error related to the hevc_metadata bitstream filter.