Skip to content

Instantly share code, notes, and snippets.

@thebruce87m
Forked from tetkuz/README.md
Created December 23, 2021 10:30
Show Gist options
  • Select an option

  • Save thebruce87m/0530818b19a358a9f39fb8cba5996c11 to your computer and use it in GitHub Desktop.

Select an option

Save thebruce87m/0530818b19a358a9f39fb8cba5996c11 to your computer and use it in GitHub Desktop.

Revisions

  1. @tetkuz tetkuz revised this gist Dec 19, 2015. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@
    # Description

    This is so simple, but too slow webstreaming script.
    [Server] GStreamer ---> HTML [Client]

    # Require

    gstreamer-1.x
    - gstreamer-1.x
    - Browser which supports video tag of HTML5

    ## debian

    @@ -16,5 +17,5 @@ sduo apt-get install gstreamer1.0

    0. Please set a webcam to the your pc.
    1. Open `index.html` by the browser.
    2. Run `streaming.sh` by the terminal.
    2. Run `streaming-XXXXX.sh` by the terminal.
    3. You will can watch video which captured by webcam !!
  2. @tetkuz tetkuz revised this gist Dec 19, 2015. 3 changed files with 14 additions and 4 deletions.
    5 changes: 3 additions & 2 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,11 @@
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>gst stream</title>
    <title>gst-stream</title>
    </head>
    <body>
    <video src="http://localhost:8080">
    <video width=320 height=240 autoplay>
    <source src="http://localhost:8080">
    </video>
    </body>
    </html>
    5 changes: 3 additions & 2 deletions streaming.sh → streaming-linux.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    #!/bin/sh
    # for Linux

    gst-launch-1.0 \
    v4l2src device=/dev/video0 ! video/x-raw,width=320,height=240 \
    ! videoscale ! videoconvert \
    v4l2src device=/dev/video0 \
    ! videoconvert ! videoscale ! video/x-raw,width=320,height=240 \
    ! clockoverlay shaded-background=true font-desc="Sans 38" \
    ! theoraenc ! oggmux ! tcpserversink host=127.0.0.1 port=8080
    8 changes: 8 additions & 0 deletions streaming-windows.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/sh
    # for Windows

    gst-launch-1.0 \
    ksvideosrc device-index=0 \
    ! videoconvert ! videoscale ! video/x-raw,width=320,height=240 \
    ! clockoverlay shaded-background=true font-desc="Sans 38" \
    ! theoraenc ! oggmux ! tcpserversink host=127.0.0.1 port=8080
  3. @tetkuz tetkuz revised this gist Nov 18, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,6 @@ sduo apt-get install gstreamer1.0
    # Usage

    0. Please set a webcam to the your pc.
    1. Open the `index.html` by the browser.
    2. Run the `streaming.sh` by the terminal.
    1. Open `index.html` by the browser.
    2. Run `streaming.sh` by the terminal.
    3. You will can watch video which captured by webcam !!
  4. @tetkuz tetkuz revised this gist Nov 18, 2015. No changes.
  5. @tetkuz tetkuz created this gist Nov 18, 2015.
    20 changes: 20 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # Description

    This is so simple, but too slow webstreaming script.

    # Require

    gstreamer-1.x

    ## debian

    ```sh
    sduo apt-get install gstreamer1.0
    ```

    # Usage

    0. Please set a webcam to the your pc.
    1. Open the `index.html` by the browser.
    2. Run the `streaming.sh` by the terminal.
    3. You will can watch video which captured by webcam !!
    11 changes: 11 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>gst stream</title>
    </head>
    <body>
    <video src="http://localhost:8080">
    </video>
    </body>
    </html>
    7 changes: 7 additions & 0 deletions streaming.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/sh

    gst-launch-1.0 \
    v4l2src device=/dev/video0 ! video/x-raw,width=320,height=240 \
    ! videoscale ! videoconvert \
    ! clockoverlay shaded-background=true font-desc="Sans 38" \
    ! theoraenc ! oggmux ! tcpserversink host=127.0.0.1 port=8080