Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to show streaming this images on VLC with RTSP. #12

Open
vuonghv1209 opened this issue Dec 27, 2016 · 4 comments
Open

how to show streaming this images on VLC with RTSP. #12

vuonghv1209 opened this issue Dec 27, 2016 · 4 comments

Comments

@vuonghv1209
Copy link

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!

@RogerHardiman
Copy link
Collaborator

RogerHardiman commented Jan 3, 2017

deleted

@RogerHardiman
Copy link
Collaborator

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
Copy link
Collaborator

RogerHardiman commented Jan 3, 2017

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants