TS discontinuity when trying to play back sout stream

About encoding, codec settings, muxers and filter usage
tomasz_c
New Cone
New Cone
Posts: 8
Joined: 27 Jan 2016 14:14

TS discontinuity when trying to play back sout stream

Postby tomasz_c » 28 Jan 2016 09:05

I am trying to re-stream a camera using vlc:

Code: Select all

cvlc -vvv rtsp://login:password@192.168.2.222:554/snl/live/1/3 --sout='#std{access=http,mux=ts,dst=:8555/test1}'
this seems to work and produces the following output:

Code: Select all

[00007fa3804ca818] live555 demux debug: play start: 0,000000 stop:0,000000 [00007fa3900009b8] core input debug: switching to sync mode [00007fa3900009b8] core input debug: Buffering 0% [00007fa3900009b8] core input debug: Buffering 0% [00007fa3900009b8] core input debug: Buffering 50% [00007fa3900009b8] core input debug: Buffering 50% [00007fa3900009b8] core input debug: Buffering 50% [00007fa3900009b8] core input debug: Buffering 50% [00007fa3900009b8] core input debug: Buffering 98% [00007fa3900009b8] core input debug: Buffering 98% [00007fa380000b88] core stream output debug: adding a new sout input (sout_input:0x7fa388006a30) [00007fa3804c8f78] core mux debug: adding a new input [00007fa3900009b8] core input debug: Stream buffering done (1500 ms in 1548 ms) [00007fa3804c8f78] mux_ts mux debug: adding input codec=h264 pid=68 [00007fa3804c8f78] mux_ts mux debug: new PCR PID is 68 [00007fa3900009b8] core input debug: Decoder wait done in 0 ms
However when trying to play back this served stream, even on the same machine I get the following errors:

Code: Select all

[00007fa3cc0009b8] core input debug: `http://localhost:8555/test1' successfully opened [00007fa3d0c03e18] ts demux error: libdvbpsi (misc PSI): Bad CRC_32 table 0x2 !!! [00007fa3d0c03e18] ts demux warning: lost synchro [00007fa3d0c03e18] ts demux debug: skipping 184 bytes of garbage [00007fa3d0c03e18] ts demux error: libdvbpsi (PSI decoder): TS duplicate (received 0, expected 1) for PID 66 [00007fa3d0c03e18] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 9, expected 4) for PID 66 [00007fa3d0c03e18] ts demux debug: PMTCallBack called [00007fa3d0c03e18] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 3, expected 10) for PID 66 [00007fa3d0c03e18] ts demux debug: PMTCallBack called [00007fa3d0c03e18] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 15, expected 1) for PID 66 [00007fa3d0c03e18] ts demux debug: PMTCallBack called
Consuming the source stream directly with vlc works without issues as long as I add

Code: Select all

--network-caching 4000
like this:

Code: Select all

vlc --network-caching 4000 rtsp://login:password@192.168.2.222:554/snl/live/1/3
If I don't add this option the playback just shows a single frame and keeps spamming:

Code: Select all

[00007f0a5c00c358] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [00007f0a6c02dae8] core video output warning: picture is too late to be displayed (missing 6932 ms)
However adding that option to the sout streaming instance of vlc doesn't help and I still can't consume the sout stream.

Any help please? What can I do to get sout to work in this case? Why do I need the --network-caching 4000 option to get playback to work? The stream is only 640x360, 2fps and an effective 2-5 kbps streamed over a LAN environment.

Thanks in advance for any help!

Meoma
New Cone
New Cone
Posts: 1
Joined: 29 Feb 2016 13:17

Re: TS discontinuity when trying to play back sout stream

Postby Meoma » 29 Feb 2016 13:22

Hello, I have a very similair issue, I receive a Http stream on a raspberry pi, and re-stream it over my local network.
When I start the re-stream I get;

libdvbpsi (misc PSI): Bad CRC_32 table 0x2
ts error: libdvbpsi (PSI decoder): TS discontinuity (received 4, expected 2) for PID 66
ts error: libdvbpsi (PSI decoder): TS discontinuity (received 5, expected 2) for PID 0
ts error: libdvbpsi (PSI decoder): TS discontinuity (received 13, expected 8) for PID 66
ts error: libdvbpsi (PSI decoder): TS discontinuity (received 14, expected 9) for PID 0

This is what I do:

cvlc -vvv http://IPADDRESS HERE:8001 --sout '#http{dst=192.168.1.100:8001,mux=ts}'

When I reboot the raspberry a couple of times, it might work
it might not. No idea what to do, I already tried UDP re-streaming, RTP, multicast ,unicast.... with caching and without...

As you say, if I stream it directly from the internet all works just fine.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 18 guests