Hi,
I am trying to stream video from mipi camera (mounted on VAR-DT6 Custom board) to a web browser.
I am using the following gstreamer command to stream video over the network.
gst-launch-1.0 -e videotestsrc ! x264enc ! queue ! mpegtsmux ! tcpserversink host=192.168.15.217 port=5000
This works fine with the VLC player. But when I try to view it on any of the supported browsers, there is no video output.
The HTML source code used is
<!DOCTYPE html>
<html>
<title>Camera 1</title>
<body>
<video autoplay controls width=320 height=240>
<source src="http://192.168.15.217:5000" type="video/mp4" />
<source src="http://192.168.15.217:5001" type="video/ogg" codecs="theora"/>
You browser doesn't support element <code>video</code>.
</video>
</body>
</html>
Any clue on what could be wrong with this setup?
Thanks !
Hello,
it would be better to use RTSP streaming server under server / client technology.
Please look at "i.MX_Linux_User's_Guide.pdf" of the NXP Linux BSP for more details.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yuri,
Thanks for the quick response.
However, I couldnt find a way to stream the mp4 file (live) on the browser using HTML5 and RTSP.
I tried multiple examples available online, to stream video using ffmpeg and ffserver, but its not working as expected.
Could you please suggest a workaround to achieve this?
Thanks,
Prash
Hello,
perhaps it makes sense to try DarwinStreamingSrvr(DSS)
Regards,
Yuri.