SharpRTSP icon indicating copy to clipboard operation
SharpRTSP copied to clipboard

how to show streaming this images on VLC with RTSP.

Open vuonghv1209 opened this issue 8 years ago • 4 comments

Hi,

I build project RtspCameraExample success and then I open connect to rtsp://10.30.176.31:8554 via VLC I think it will show live images YUV type - same video, that project generate from code. However VLC nothing show any thing, So could you help how to show streaming this images on VLC with RTSP.

Thanks and Best Regards!

vuonghv1209 avatar Dec 27 '16 08:12 vuonghv1209

deleted

RogerHardiman avatar Jan 03 '17 13:01 RogerHardiman

Thanks for the bug report. VLC does not work for me either. I don't think I ever tested with VLC. When I wrote the example I tested with ffplay.

I will try and see what is wrong. There may be It is possible that I have something wrong in the SDP data for example the start/end time and the duration (which are missing in the SDP in the example)

RogerHardiman avatar Jan 03 '17 14:01 RogerHardiman

UPDATE - I noticed I was missing the t=0 0 from the SDP. Also in the future I'd need packetization mode in there but not necessary right now as only use the "whole NAL" format. But even with this added I cannot get VLC to work yet.

RogerHardiman avatar Jan 03 '17 14:01 RogerHardiman

UPDATE 2 - I know the cause of the problem.

SharpRTSP with the TinyH264 video encoder does not work with VLC. SharpRTSP with a proper H264 encoder (libx264) works fine with VLC.

So the problem is that VLC does not like the H264 bitstream generated by TinyH264, but mplayer and ffplay are both fine with the bitstream from TinyH264.

In a real project you would not use TinyH264 anyway. It generates a very high bitrate (it is a loss-less encoder).

So I suggest you try it with a different H264 encoder.

Roger

RogerHardiman avatar Jan 03 '17 18:01 RogerHardiman