tcp in, udp out - buffer deadlock, udp access out debug

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
StefanMUC
New Cone
New Cone
Posts: 2
Joined: 29 May 2023 14:54

tcp in, udp out - buffer deadlock, udp access out debug

Postby StefanMUC » 18 Apr 2024 00:49

Hello,
I want to fetch and convert a tcp+fec stream (H.264, 6 Mbit/s) from IP A to an local udp stream and tried this command line:

cvlc -vvv tcp://xx.xx.xx.xx:2000 --sout '#std{access=udp,mux=ts,dst=192.168.10.10:2000}'

But after somt minutes I get
[00007f3364000ca0] main input debug: Buffering 94%
[00007f3364000ca0] main input debug: Buffering 98%
[00007f3364000ca0] main input debug: Stream buffering done (1015 ms in 1018 ms)
[00007f335c05d4d0] main decoder error: buffer deadlock prevented
[00007f3364000ca0] main input debug: Decoder wait done in 0 ms
[00007f335c05d4d0] h264 decoder warning: waiting for SPS/PPS
[00007f335c05d4d0] h264 decoder warning: waiting for SPS/PPS
...
[00007f335c05d4d0] h264 decoder warning: waiting for SPS/PPS
[00007f335c05d4d0] h264 decoder warning: waiting for SPS/PPS
[00007f335c05d4d0] h264 decoder debug: found NAL_SPS (sps_id=0)
[00007f335c05d4d0] h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0)
[00007f335c000e60] main stream output debug: adding a new sout input for `h264` (sout_input: 0x7f3360000b80)
[00007f335c003d20] main mux debug: adding a new input
[00007f335c003d20] mux_ts mux debug: adding input codec=h264 pid=100
[00007f335c003d20] mux_ts mux debug: new PCR PID is 100
[00007f335c003d20] mux_ts mux debug: adjusting rate at -1156000/200000 (6/5802)
[00007f335c002670] udp access out debug: mmh, packets in the past (1155301)
[00007f335c002670] udp access out debug: packet has been sent too late (1155439)
[00007f335c002670] udp access out debug: packet has been sent too late (1153822)
[00007f335c002670] udp access out debug: packet has been sent too late (1152203)
[00007f335c002670] udp access out debug: packet has been sent too late (1150582)

How can I prevent this error? Is it possible to increase the buffer?

$ vlc --version
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[000056356dd8b5b0] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
VLC-Version 3.0.20 Vetinari (3.0.20-0-g6f0d0ab126b)
Kompiliert von buildd auf x86-conova-01.debian.org (Nov 1 2023 23:13:56)
Kompiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: tcp in, udp out - buffer deadlock, udp access out debug

Postby Rémi Denis-Courmont » 18 Apr 2024 03:37

You would need to send the SPS and PPS up-front always. You can't fix that on the receiving side.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests