H264 RTP stream with gstreamer-1.0

自作多情 提交于 2019-12-06 04:26:32
nayana

First you need to provide more info: which browser (try chrome, also safari is said to have better streaming support)..

To the SDP I think you are missing the info that its h264? And yes gdppay is just for internal "GStreamer only" streaming (gdp means "GStreamer Data Protocol" which noone else understands:) ).

If you really want GStreamer to stream RTSP you may use gstreamer rtsp server implementation - this is in separate repo and is incuded in some packages in Ubuntu for example.

If you want just rtp you are doing it correctly - as you see this approach works with for example vlc.. but what makes you think the sdp will work in HTML5 (I am just asking I do not have up to date infos on this)?

You can test this also with netcat - its fine for these kind of debugging. you can fake a rtp client this way:

nc -u -l 5000 

Which will dump the traffic out.

I read here that there are problems with rtp/rtsp in HTML5, but who knows maybe now it is already working..

You can try hls - which is usually used for streaming and has much better support int GStreamer these days 1.6 and further versions.. (hint: use hlssink).

Here you have some js for processing hls: https://github.com/dailymotion/hls.js

You can also try ogg/vorbis/theora and such stuff (sounds crazy, but you can give it a shot, I read somewhere that its suitable for streaming)..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!