[x264-devel] pps/sps updates while streaming using rtp protocol

Ivan Alen Fernandez ivan.alen at uclouvain.be
Tue Apr 27 12:52:07 CEST 2010


Hello,
I am working on video streaming with h.264 through the live555 media
library and i am using VLC in the client side.
I want to change the encoding parameters of the streaming in the middle of
the playback by segmenting the files but i dont manage to make it work.
When i use a new segment with new encoding parameters i have to update the
SPS number cause otherwise the output of the streaming is not h.264
compilant but this is not enough to make it work in the vlc while
streaming. If i use for example two kind of encoding parameters, the video
stucks with the second one and when i recover the first parameters it
plays back again

If i try to play afterwards locally in vlc the output of the streaming
server it plays perfectly well the whole h.264 encoded file through x264.

Could anyone tell me which could be this problem while streaming, i am
also only able to stream by using a static QP, if i use a static bitrate
with a dynamic QP between frames the video also stucks. Am i missing any
required signalization for the streaming through the RTP or the RTCP or
RTSP protocol?

I had also understood that if you are encoding a file with a SPS lets say
0, and then you change the encoding parameters but you send first the SPS
with the same 0 value with the new parameters this should work. But this
doesnt work with x264, isnt the SPS sent at the beggining of every file
encoded with x264? What could i be missing in this case? The point is
unless i use SPS 1 for the second segment that i pipeline, the sequence is
not compilant with h264 and with the sps updated parameters this should
work i guess for the same number index.


Thanks a lot in advance for your time and help, i would really appreciate
any kind of help about this issue

Best
Iván



More information about the x264-devel mailing list