Avidemux Forum

Avidemux => Windows => Topic started by: Jay123210599 on October 04, 2024, 08:51:33 PM

Title: Avidemux: Match the Codec
Post by: Jay123210599 on October 04, 2024, 08:51:33 PM
I have a YUV 444 10bit video, but when I used Avidemux's filters to burn in subtitles, the output was YUV 420 8bit. How do I get it to match the input video codec?
Title: Re: Avidemux: Match the Codec
Post by: eumagga0x2a on October 05, 2024, 04:52:54 AM
The internal interchange format in Avidemux is YV12 (8-bit YUV 4:2:0 with U and V planes swapped). In other words, there is no way to preserve 10-bit YUV444 in Avidemux, except for the copy mode.
Title: Re: Avidemux: Match the Codec
Post by: Jay123210599 on October 05, 2024, 11:30:29 AM
Quote from: eumagga0x2a on October 05, 2024, 04:52:54 AMThe internal interchange format in Avidemux is YV12 (8-bit YUV 4:2:0 with U and V planes swapped). In other words, there is no way to preserve 10-bit YUV444 in Avidemux, except for the copy mode.
Quote from: eumagga0x2a on October 05, 2024, 04:52:54 AMThe internal interchange format in Avidemux is YV12 (8-bit YUV 4:2:0 with U and V planes swapped). In other words, there is no way to preserve 10-bit YUV444 in Avidemux, except for the copy mode.

So it's impossible to change the video codec for the output when using filters?
Title: Re: Avidemux: Match the Codec
Post by: eumagga0x2a on October 05, 2024, 02:27:19 PM
The pixel format will have been YV12, so whatever the encoder does with it later, the information lost is not recoverable.
Title: Re: Avidemux: Match the Codec
Post by: Jay123210599 on October 05, 2024, 06:26:50 PM
Quote from: eumagga0x2a on October 05, 2024, 02:27:19 PMThe pixel format will have been YV12, so whatever the encoder does with it later, the information lost is not recoverable.

So yes, there's no way to get anything other than YUV420 8bit for my videos when using burning in subtitles?
Title: Re: Avidemux: Match the Codec
Post by: eumagga0x2a on October 05, 2024, 07:29:56 PM
Quote from: Jay123210599 on October 05, 2024, 06:26:50 PMSo yes, there's no way to get anything other than YUV420 8bit for my videos when using burning in subtitles?

Yes, correct.
Title: Re: Avidemux: Match the Codec
Post by: Barrythecrab on October 06, 2024, 03:00:45 PM
My question will reveal my ignorance, and I hope this is related enough to not be a hijack but... if I load a HuffYuv 422 into Avidemux, filter it in some way, and export it as HuffYuv 422, does it go thru a 420 "route" before the 422 export thereby losing information along the way? Or am I misunderstanding everything?
Title: Re: Avidemux: Match the Codec
Post by: eumagga0x2a on October 06, 2024, 07:56:14 PM
You've got it right: whatever goes through a filter chain (a video encoder is technically also a member of the filter chain), gets converted to 8-bit 420 chroma-subsampled pixel format as this is the format all video filters and most encoders expect as input.