Hi,
I have an H264 stream coming from a camera which I wrap in RTP packets and send to VLC to play.
The resolution of the video from the camera can be changed by pressing a button in the camera.
When the button is pressed, the video resolution changes and VLC crashes.
But the crash does not happen all the time. Sometimes VLC detects the resolution change and shows the correct size video.
I thought the problem is because the resolution change is not happening at the I-frame boundary and VLC is crashing.
So manually tried to multiplex. I created four h.264 files with different resolutions. (352*288 , 176*144 ...)
Then I spliced them into another file (using binary editor) at the I-frame boundaries. (NAL header 00 00 00 01 65)
When I wrap this file in RTP packets and send to VLC, it still crashes many times. (But sometimes it plays properly)
My question is
1)Is it possible for VLC to play an RTP stream where the resolution of video changes in between?
If yes, what am I doing wrong. Should I add some extra info to stream or am I splicing it wrong NAl units?
regards
sairam