Patch via https://github.com/HandBrake/HandBrake/commit/8a0847806d558b252daceb5610d2ba... you can test it with matrixbench trailer: bin/cin /home/admin/K38/files/home/HUAWEI/home/matrixbench_highdivx_ac3.avi and set encoder to FFMPEG webm - libopus (and video encoder of your choice). For some reason 4 ch. still does not work, but those files must be rare (made one by accident, trying to encode 2 stereo tracks avi into mp4 without any audio track disabling)
I cannot find "matrixbench_highdivx_ac3.avi". Can you provide it? NOTE: could the problems stem from the AVI format, which is old and limited?
пн, 22 апр. 2024 г., 14:15 Andrea paz <[email protected]>:
I cannot find "matrixbench_highdivx_ac3.avi". Can you provide it?
http://samples.mplayerhq.hu/benchmark/testsuite1/matrixbench_highdivx_ac3.av... NOTE: could the problems stem from the AVI format, which is old and limited?
Hardly, it decodes correctly, just opus encoding may suffer from wrong channel mapping ....
Test with CinGG-20240229-x86_64-multibit.AppImage (no patch): https://streamable.com/r4r150 test with compile version with ffmpeg7 and patch: https://streamable.com/rd9sz0 With only 4 audio channels: [libopus @ 0x75d44803b100] Invalid channel layout 4.0 for specified mapping family -1.
пн, 22 апр. 2024 г., 21:43 Andrea paz <[email protected]>:
Test with CinGG-20240229-x86_64-multibit.AppImage (no patch):
test with compile version with ffmpeg7 and patch:
Can you also post output of mediainfo for both cases?
With only 4 audio channels:
[libopus @ 0x75d44803b100] Invalid channel layout 4.0 for specified mapping family -1.
вт, 23 апр. 2024 г., 10:37 Andrea paz <[email protected]>:
Can you also post output of mediainfo for both cases? Here it is.
Channel layout seems to be the same in both cases: L R C Lb Rb LFE so, probably patch not needed in our case .....
Same result with a cut made by me. I got the various files from: https://samples.mplayerhq.hu/A-codecs/AC3/ Broadway-5.1-48khz-448kbit.ac3 Canyon-5.1-48khz-448kbit.ac3 monsters_inc_2.0_192.ac3 TomorrowNeverDies-2.1-48khz-192kbit.ac3 There are no video tracks, I only rendered the audio.
вт, 23 апр. 2024 г., 12:46 Andrea paz <[email protected]>:
Same result with a cut made by me. I got the various files from: https://samples.mplayerhq.hu/A-codecs/AC3/
Broadway-5.1-48khz-448kbit.ac3 Canyon-5.1-48khz-448kbit.ac3 monsters_inc_2.0_192.ac3 TomorrowNeverDies-2.1-48khz-192kbit.ac3
There are no video tracks, I only rendered the audio.
Should be ok. But then can you try ffmpeg 7 with and without patch just in case it only affects ffmpeg 7.0?
вт, 23 апр. 2024 г., 13:09 Andrea paz <[email protected]>:
But then can you try ffmpeg 7 with and without patch just in case it only affects ffmpeg 7.0?
Still the same result.
Thanks! Then, if real channel order not affected (hopefully something you can confirm by looking at audio track's waveforms) I guess this patch really not needed, sorry!
вт, 23 апр. 2024 г., 13:12 Andrew Randrianasulu <[email protected]>:
вт, 23 апр. 2024 г., 13:09 Andrea paz <[email protected]>:
But then can you try ffmpeg 7 with and without patch just in case it only affects ffmpeg 7.0?
Still the same result.
Thanks! Then, if real channel order not affected (hopefully something you can confirm by looking at audio track's waveforms) I guess this patch really not needed, sorry!
small dig on what this parameter mean resulted in this link: https://www.iana.org/assignments/opus-channel-mapping-families/opus-channel-... ==== Available Formats CSV <https://www.iana.org/assignments/opus-channel-mapping-families/mapping-families.csv> Value Description Reference 0 Mono, L/R stereo [RFC7845, Section 5.1.1.1 <https://www.iana.org/go/rfc7845>][RFC8486, Section 5 <https://www.iana.org/go/rfc8486>] 1 1-8 channel surround [RFC7845, Section 5.1.1.2 <https://www.iana.org/go/rfc7845>][RFC8486, Section 5 <https://www.iana.org/go/rfc8486>] 2 Ambisonics as individual channels [RFC8486, Section 3.1 <https://www.iana.org/go/rfc8486>] 3 Ambisonics with demixing matrix [RFC8486, Section 3.2 <https://www.iana.org/go/rfc8486>] 4-239 Unassigned 240-254 Experimental use [RFC8486, Section 6 <https://www.iana.org/go/rfc8486>] 255 Discrete channels [RFC7845, Section 5.1.1.3 <https://www.iana.org/go/rfc7845>][RFC8486, Section 5 <https://www.iana.org/go/rfc8486>]
I don't understand how the channel map works. Anyway I post you the image showing on the left the sources and on the right a render: https://postimg.cc/Bj9GrFyc
вт, 23 апр. 2024 г., 16:03 Andrea paz <[email protected]>:
I don't understand how the channel map works. Anyway I post you the image showing on the left the sources and on the right a render: https://postimg.cc/Bj9GrFyc
Hm, they quite different. Thing is, as I've read in mozilla bugtracker mapping_family 1 applies some kind of LFE channel compression so .1 (subwoofer) low frequency channel must be in specific position .... https://bugzilla.mozilla.org/show_bug.cgi?id=1301518 Anyway, we hopefully can set this option manually. Just I had no idea what values I can use ...
participants (2)
-
Andrea paz -
Andrew Randrianasulu