VLC player crashes whe the resolution changes in RTP stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
sairam
New Cone
New Cone
Posts: 4
Joined: 17 Jul 2013 05:32

VLC player crashes whe the resolution changes in RTP stream

Postby sairam » 25 Jul 2013 06:34

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15318
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC player crashes whe the resolution changes in RTP str

Postby Rémi Denis-Courmont » 25 Jul 2013 18:16

Changing the resolution is possible if the resolution is carried inband by the video codec. For most modern codecs, that will be the case.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 306 guests