CESNET / UltraGrid

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

Occasional audio issue #305

Closed TheSashmo closed 1 year ago

TheSashmo commented 1 year ago

Example command sender: ./UltraGrid-1.8.2-x86_64.AppImage -t decklink:0 -c libavcodec:encoder=h264_vaapi:bitrate=18000k -s embedded --audio-codec=MP3:sample_rate=48000:bitrate=256k --audio-capture-format channels=16 -l unlimited -m 1316 -P 22816 192.168.99.209 Example command receiver: ./UltraGrid-1.8.2-x86_64.AppImage -d decklink:device=0 -r embedded 192.168.99.209 -P 22816

This is all local host so no network constraints. I get occasional errors: [Decklink display] audio buffer overflow! (1133 written, 19 dropped, 4867 buffer size)

Load average is around 5 on a 8 core machine. Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz

Suggestions?

alatteri commented 1 year ago

On receiver use decklink:drift_fix

TheSashmo commented 1 year ago

I will try that thanks. What is actually doing other than the obvious "drift_fix"

alatteri commented 1 year ago

https://github.com/CESNET/UltraGrid/pull/225 https://github.com/CESNET/UltraGrid/issues/213

TheSashmo commented 1 year ago

Thanks @alatteri

TheSashmo commented 1 year ago

I think that drift_fix makes it worse for me. I get even more errors when I add it.

alatteri commented 1 year ago

but is that in your scenario where you are encoding and decoding on the same machine? If so, it sounds like CPU oversubscription.

TheSashmo commented 1 year ago

Yeah I dropped the preset to superfast instead of default and its working like a charm now.... 10bit 4:2:2 flying along!