Broadcast your webcam without delay/ real time

Discussion in 'Linux Networking' started by NetTomassPL, Sep 23, 2013.

  1. NetTomassPL

    NetTomassPL New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hello,
    I have a file "stream_start.sh":
    Code:
    #!/bin/tcsh
    
    set myip=127.0.0.1
    set port=5000
    set width=1280
    set height=720
    
    gst-launch\
    v4l2src !\
    ffmpegcolorspace !\
    video/x-raw-yuv,width=${width},height=${height},framerate=\(fraction\)30/1 !\
    queue !\
    videorate !\
    video/x-raw-yuv,framerate=10/1 !\
    jpegenc !\
    multipartmux !\
    tcpserversink host=${myip} port=${port} sync=false
    
    And "stream_view.sh":
    Code:
    #!/bin/bash
    #
    
    cvlc tcp://127.0.0.1:5000
    
    exit 0
    
    And the problem is that I have a 2-3 seconds delay, and what to do to eliminate the delay (ie decrease as the only possible)?


    And as I'm doing this:
    Code:
    mplayer -nofs -nozoom -vo x11 tv:// -tv device=/dev/video0:driver=v4l2:width=1280:height=720
    It just shows me a picture of a web camera


    #sorry for my bad english

Share This Page