Page 1 of 1

Problem with "waiting for SPS/PPS"

Posted: 27 Jan 2008 16:18
by QuakeCH
Hello,

I'm using a nightly version of VLC (vlc-0.9.0 , 20080120) and have a problem with the relay server.

The main server isn't making problems , I can get the video + audio correctly. But If I'm trying to connect onto the Relay server I become always : "waiting for SPS/PPS" on my VLC client and sometimes I become the video + audio (and then it's ok).

I think that's a bug , that seem that the Header isn't sent everytime. I tried to tune h264.c (vlc/modules/packetsizer) without success.

Command line on Relay server :

Code: Select all

vlc -vvvvv http://server_1:6424 --sout='#std{access=http,mux=ts,dst=:8080}'
Command line on Main Server :

Code: Select all

vlc ..... --sout='#transcode{vcodec=xvid,acodec=mpga,vb=300,width=320,height=288,ab=64,venc=x264}:standard{access=http,mux=ps,dst=:6424}'
Thank you for any help :)

Re: Problem with "waiting for SPS/PPS"

Posted: 28 Jan 2008 12:57
by QuakeCH
Hello,

Any developpers or modo know how to resolve this issue ? :)

Thank you

Re: Problem with "waiting for SPS/PPS"

Posted: 28 Jan 2008 19:24
by Jean-Baptiste Kempf
Not really, this has changed a lot the latest days, so ask on IRC or on the ml.

Re: Problem with "waiting for SPS/PPS"

Posted: 30 Jan 2008 21:07
by QuakeCH
This problem still happend with 30.01.2008 Nightly build :(

Re: Problem with "waiting for SPS/PPS"

Posted: 01 Feb 2008 02:07
by publicENEMY
It also happens when you try to stream h.264.

Re: Problem with "waiting for SPS/PPS"

Posted: 01 Feb 2008 16:58
by QuakeCH
This happend if I switch to UDP so that's not a problem with UDP.

But I have a theory :
Main Server send Informations about SPS/PPS to the relay server then the relay server found that the Stream is a NAL_SPS and NAL_PPS. But he don't relay to the client because for him it's ok. So I think that there is no implementation of relaying headers to the clients.

Main Server[h264] -> Header sent -> Relay Server[h264] -> No header (because don't know that he have to sent this data) -> Client[h264]

So the only one solution that I found is : To retranscode the stream

But the problem isn't resolved in self !

Re: Problem with "waiting for SPS/PPS"

Posted: 06 Feb 2008 21:34
by QuakeCH
Solution :
Edit the file : modules/packetizer/h264.c

Find this part of code.

Code: Select all

if( p_sys->b_slice && ( !p_sys->b_sps || !p_sys->b_pps ) ) { block_ChainRelease( p_sys->p_frame ); msg_Warn( p_dec, "waiting for SPS/PPS" ); /* Reset context */ p_sys->slice.i_frame_type = 0; p_sys->p_frame = NULL; p_sys->b_slice = VLC_FALSE; }
And replace by

Code: Select all

if( p_sys->b_slice && ( !p_sys->b_sps || !p_sys->b_pps ) ) { block_ChainRelease( p_sys->p_frame ); msg_Warn( p_dec, "waiting for SPS/PPS" ); /* Reset context */ p_sys->slice.i_frame_type = 0; p_sys->p_frame = NULL; p_sys->b_slice = VLC_FALSE; } else p_sys->slice.i_frame_type = BLOCK_FLAG_TYPE_I;
Then make clean and make again. Don't forget to make install for libs (if necessary).

You can become this kind of warning on your VLC client (doesn't seem that everyone receive this messages)
main warning: output date isn't PTS date, requesting resampling (-41240)
main warning: buffer is 54806 in advance, triggering downsampling

Re: Problem with "waiting for SPS/PPS"

Posted: 09 Feb 2008 09:14
by QuakeCH
Bug confirmed by Dev Team.

Re: Problem with "waiting for SPS/PPS"

Posted: 18 Apr 2008 17:52
by cable007
hello,

something new about this bug ?

because I have exactly the same but with 0.8.6

I try to relay without transcode again and get only audio, and in "logs" tons of "waiting for sps/pps"

thanks

nicolas