How to stream Capture video over HTTP in a Web Page along with test case running

559 views
Skip to first unread message

chandra shekhar gaur

unread,
Jun 22, 2016, 1:48:27 AM6/22/16
to stb-tester
Hi,

I am trying to watch captured video on HTML tag in my browser, I update tv script to use my ip address and the I was able to see captured video in VLC with 3-4 seconds delay in one of my remote machine.
But I was not able to run my test cases during the time when stbt tv was running, I guess because of capturing port was engaged to serve stbt tv.

Is there any gstreamer pipeline or other approach which can stream video over HTTP along with test cases running in parallel?

Though, I tried below code; It was giving me stream over web with huge delay but test cases were not able to run.

Below HTML page runs with under neath gstreamer command but test case wont run in parallel.
<html>
    <title>A simple HTML5 video test</title>
</html>
<body>
    <video autoplay controls width=320 height=240>
    <source src="http://10.100.10.187:5300" type="video/webm" codecs="vp8.0, vorbis">
        browser support element <code>video</code>.
    </video>
</body>

++++++++++++++++
gst-launch-1.0 decklinkvideosrc mode=720p5994 connection=sdi device-number=1 ! videoconvert ! vp8enc cpu-used=6 min_quantizer=32 max_quantizer=32 ! webmmux ! tcpserversink host=10.100.10.187 port=5300

+++++++++++++++ works

gst-launch-1.0 decklinkvideosrc mode=720p5994 connection=sdi device-number=1 ! videoconvert ! videoscale ! video/x-raw,width=1280,height=720 ! x264enc ! mpegtsmux ! tcpserversink host=10.100.10.187 port=5300


Vlc tcp://10.100.10.187:5300


Thanks,

Chandra


David Röthlisberger

unread,
Jun 22, 2016, 4:21:25 AM6/22/16
to chandra shekhar gaur, stb-t...@googlegroups.com
On Wed, Jun 22, 2016, at 06:48 AM, chandra shekhar gaur wrote:
Is there any gstreamer pipeline or other approach which can stream video over HTTP along with test cases running in parallel?
 
We created pulsevideo to allow multiplexing video from one capture
device to multiple consumers: https://github.com/wmanley/pulsevideo
 
Note that this feature is provided out-of-the-box by the stb-tester ONE.
At some point you've got to ask yourself how much developer time can you
justify on building all this test infrastructure yourself, when we have
already solved all these problems (and more).
 
Kind regards,
 
David Röthlisberger
Stb-tester.com Ltd.
 
--
Stb-tester.com Ltd is a company registered in England and Wales.
Registered number: 08800454. Registered office: 33b Aliwal Road,
Battersea, London, SW11 1RB.
 

chandra shekhar gaur

unread,
Jun 22, 2016, 11:29:00 PM6/22/16
to stb-tester, csga...@gmail.com, da...@stb-tester.com
Thanks David for your help again.
I am trying to learn few things which could help me to validate running video specific kind of scenarios including video quality.

I understand your point and i will think on it definitely.

Thanks once again.

With Regards,
Chandra
Reply all
Reply to author
Forward
0 new messages