Streaming video over TCP using gstreamer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Streaming video over TCP using gstreamer

7,842 Views
prashs
Contributor I


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 !

Labels (2)
0 Kudos
Reply
3 Replies

4,111 Views
Yuri
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

4,111 Views
prashs
Contributor I

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

0 Kudos
Reply

4,111 Views
Yuri
NXP Employee
NXP Employee

Hello,

perhaps it makes sense to try DarwinStreamingSrvr(DSS)

http://dss.macosforge.org/

Regards,

Yuri.

0 Kudos
Reply