Kenneth Forsythe
2014-09-26 14:01:20 UTC
Hello Live555,
I have an application that is based off of testRTSPClient. In afterGettingFrame I am then passing the data off to an H264 decoder which then is rendered on a video surface.
I have 2 cameras and live555MediaServer to test with. LiveMediaServer and one camera work very well. The other camera on the other hand not so much. I am seeing distorted/garbled video and lots of green. This camera, does work through VLC and other players.
What usually causes this type of behavior?
What I am doing is quite similar to what I see in H264or5VideoFileSink::afterGettingFrame. On first frame I am prepending the data with [startcodes][sps] and [startcodes] [pps], which was captured earlier on. After first frame the data is only prepended with the start codes. Is there something else I should be doing, ie analyzing the nal type and modifying differently? Or do you think the problem could be outside the stream and more in the area where I am setting up the video information?
Thank You,
Ken
I have an application that is based off of testRTSPClient. In afterGettingFrame I am then passing the data off to an H264 decoder which then is rendered on a video surface.
I have 2 cameras and live555MediaServer to test with. LiveMediaServer and one camera work very well. The other camera on the other hand not so much. I am seeing distorted/garbled video and lots of green. This camera, does work through VLC and other players.
What usually causes this type of behavior?
What I am doing is quite similar to what I see in H264or5VideoFileSink::afterGettingFrame. On first frame I am prepending the data with [startcodes][sps] and [startcodes] [pps], which was captured earlier on. After first frame the data is only prepended with the start codes. Is there something else I should be doing, ie analyzing the nal type and modifying differently? Or do you think the problem could be outside the stream and more in the area where I am setting up the video information?
Thank You,
Ken