Page 1 of 1

Relay or Transcode from Youtube Live stream - to record or convert

Posted: 18 Aug 2017 09:42
by onedutch
Hello there,

With the growth of Youtube Live streams it's harder to record or transcode / relay the streams. The live stream https://www.youtube.com/watch?v=RtU_mdL2vBM is playing in Videolan 3.0.0 nightly build 2 august 2017. I'm trying to transcode / relay / convert the stream to a 'normal' rtsp or http stream so I can play it on any video player.

When I choose convert it doesn't work, I also noticed that recording isn't working / starting. VLC returns to playing the Youtube stream on my screen, instead of saving it. Also when using convert, it doesn't provide a url to connect to. It reacts the same as the recording function. I added a piece of the messages in verbose.

Any clues anyone?

Regards,
Onedutch


ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
adaptive info: Encountered discontinuity
mpeg4audio info: AAC channels: 2 samplerate: 24000
direct3d9 error: SetThumbNailClip failed: 0x800706f4
direct3d9 error: SetThumbNailClip failed: 0x800706f4
direct3d9 error: SetThumbNailClip failed: 0x800706f4
mpeg4audio info: AAC channels: 2 samplerate: 48000
direct3d9 error: SetThumbNailClip failed: 0x800706f4
direct3d9 error: SetThumbNailClip failed: 0x800706f4
direct3d9 error: SetThumbNailClip failed: 0x800706f4
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0
ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095

Re: Relay or Transcode from Youtube Live stream - to record or convert

Posted: 04 Jan 2018 16:47
by leftwing
I have been working on what appears to be the same problem but at the level of a custom app that uses libvlc. I got the same TS duplicate messages from libdvbpsi. For my code, setting --no-ts-trust-pcr as an argv parameter for libvlc_new() solved the problem.

From your description I think you are interested in a solution for the player. Select Tools->Preference and check Show settings/All. Expand Input/Coders and Demuxers and select MPEG-TS. Uncheck "Trust in-stream PCR." I think this will have the same effect as what I have done at the libvlc level. I am running your NASA stream nicely in my app which uses VLC 2.2.2

Re: Relay or Transcode from Youtube Live stream - to record or convert

Posted: 20 Jan 2018 22:44
by onedutch
hello Leftwing - Godlike, it works, i use VLC 2.2.8. and deselcted the option "Trust in-stream PCR" !