rigaya / NVEnc

NVENCによる高速エンコードの性能実験
https://rigaya34589.blog.fc2.com/blog-category-17.html
Other
1.09k stars 114 forks source link

An EAC3 7.1 audio track is converted as mono to AC3 by default #531

Closed rainman74 closed 6 months ago

rainman74 commented 1 year ago

An EAC3 7.1 audio track is converted as mono to AC3 by default if --audio-stream 5.1 is not specified.

It would make more sense to convert to 5.1 by default.

Output Info H.265/HEVC main @ Level auto 1920x1038p 1:1 23.976fps (24000/1001fps) avwriter: hevc, #1:eac3/7.1 -> ac3/mono/384kbps, #2:eac3/5.1(side) -> ac3/5.1(side)/384kbps => matroska

Test file: EAC_7.1_convert-to-ac3_Test.zip

rainman74 commented 7 months ago

@rigaya Wouldn't it make more sense to always convert DTS-HD & EAC3 7.1 audio tracks to 5.1 by default when converting to e.g. AC3 or an audio format that does not support 7.1 channels?

Converting to mono in the default here is rather suboptimal.

Background: I always convert to AC3 384kBit/s via batch files, because I don't need 7.1 channels and prefer to save the additional storage space. If a 7.1 audio is included, I always have to pay attention to it and manually set the parameter "--audio-stream 5.1". It makes no sense to set this in general, as older movies often only contain stereo audio.

rigaya commented 6 months ago

I've changed audio channel selection when output codec does not support the same audio channels as the input audio in NVEnc 7.51, now should select 5.1ch by default in this case.

Please have a try.

rainman74 commented 6 months ago

I've changed audio channel selection when output codec does not support the same audio channels as the input audio in NVEnc 7.51, now should select 5.1ch by default in this case.

Please have a try.

It's perfectly working! THX 👍

avwriter: hevc, #1:eac3/7.1 -> ac3/5.1(side)/384kbps