CESNET / UltraGrid

UltraGrid low-latency audio and video network transmission system
http://www.ultragrid.cz
Other
492 stars 53 forks source link

[aac @ 0x7f610c01c480] Unsupported channel layout "1 channels" #226

Closed alatteri closed 2 years ago

alatteri commented 2 years ago

I just updated to latest UG, and I am getting this when I try to capture Decklink audio. uv -m 1316 -t decklink:codec=R10k -c libavcodec:encoder=libx264::bitrate=35M -s embedded --audio-capture-format channels=8 --audio-codec=AAC:bitrate=192K -P 5004

Video only works fine.

Unable to reinitialize audio compress!
[aac @ 0x7fe95402f9c0] Unsupported channel layout "1 channels"
[aac @ 0x7fe95402f9c0] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe955287900] Unsupported channel layout "1 channels"
[aac @ 0x7fe955287900] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe955287cc0] Unsupported channel layout "1 channels"
[aac @ 0x7fe955287cc0] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe95402ee80] Unsupported channel layout "1 channels"
[aac @ 0x7fe95402ee80] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe9551fdd00] Unsupported channel layout "1 channels"
[aac @ 0x7fe9551fdd00] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe9551fff40] Unsupported channel layout "1 channels"
[aac @ 0x7fe9551fff40] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe9552013c0] Unsupported channel layout "1 channels"
[aac @ 0x7fe9552013c0] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe955288080] Unsupported channel layout "1 channels"
[aac @ 0x7fe955288080] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe955288440] Unsupported channel layout "1 channels"
[aac @ 0x7fe955288440] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe95402f600] Unsupported channel layout "1 channels"
[aac @ 0x7fe95402f600] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe95402f9c0] Unsupported channel layout "1 channels"
[aac @ 0x7fe95402f9c0] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe95402ee80] Unsupported channel layout "1 channels"
[aac @ 0x7fe95402ee80] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe9551fdd00] Unsupported channel layout "1 channels"
[aac @ 0x7fe9551fdd00] Qavg: nan
Unable to reinitialize audio compress!
[aac @ 0x7fe9551fff40] Unsupported channel layout "1 channels"
[aac @ 0x7fe9551fff40] Qavg: nan
alatteri commented 2 years ago

So this is broken some time after 4cb847908a8d7f3c50938a04b07fb216c2940ce2 I would assume it is b4eff8ed39ecf01cd45cb42ba0f10190a4710a79

alatteri commented 2 years ago
administrator@:~/UltraGrid$ sudo apt list libavcodec*
Listing... Done
libavcodec-dev/focal,now 7:5.0.1+git20220406-0ubuntu1~20.04.sav0 amd64 [installed]
libavcodec-extra58/focal 7:4.4.1-3ubuntu1+20.04.sav1 amd64
libavcodec-extra59/focal 7:5.0.1+git20220406-0ubuntu1~20.04.sav0 amd64
libavcodec-extra/focal 7:5.0.1+git20220406-0ubuntu1~20.04.sav0 amd64
libavcodec58/focal,now 7:4.4.1-3ubuntu1+20.04.sav1 amd64 [installed,automatic]
libavcodec59/focal,now 7:5.0.1+git20220406-0ubuntu1~20.04.sav0 amd64 [installed,automatic]
mpiatka commented 2 years ago

Thanks for reporting. You are right, it got introduced in https://github.com/CESNET/UltraGrid/commit/b4eff8ed39ecf01cd45cb42ba0f10190a4710a79. It seems like the aac encoder doesn't like unspecified channel order. Should be fixed in https://github.com/CESNET/UltraGrid/commit/053640ce696624b1f443f4b7dc87c6782cb5ffa8. Please reopen if the problem persists.