Problem with "waiting for SPS/PPS"

About encoding, codec settings, muxers and filter usage
QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Problem with "waiting for SPS/PPS"

Postby QuakeCH » 27 Jan 2008 16:18

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 :)

QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Re: Problem with "waiting for SPS/PPS"

Postby QuakeCH » 28 Jan 2008 12:57

Hello,

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

Thank you

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problem with "waiting for SPS/PPS"

Postby Jean-Baptiste Kempf » 28 Jan 2008 19:24

Not really, this has changed a lot the latest days, so ask on IRC or on the ml.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Re: Problem with "waiting for SPS/PPS"

Postby QuakeCH » 30 Jan 2008 21:07

This problem still happend with 30.01.2008 Nightly build :(

publicENEMY
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 14 May 2007 05:04
Location: Malaysia

Re: Problem with "waiting for SPS/PPS"

Postby publicENEMY » 01 Feb 2008 02:07

It also happens when you try to stream h.264.

QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Re: Problem with "waiting for SPS/PPS"

Postby QuakeCH » 01 Feb 2008 16:58

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 !

QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Re: Problem with "waiting for SPS/PPS"

Postby QuakeCH » 06 Feb 2008 21:34

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

QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Re: Problem with "waiting for SPS/PPS"

Postby QuakeCH » 09 Feb 2008 09:14

Bug confirmed by Dev Team.

cable007
Blank Cone
Blank Cone
Posts: 24
Joined: 25 Mar 2008 09:43

Re: Problem with "waiting for SPS/PPS"

Postby cable007 » 18 Apr 2008 17:52

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests