examples/

directory
v0.20.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: Apache-2.0

README

ebml-go examples

rtp-to-webm

Receive RTP VP8 stream UDP packets and pack it to WebM file.

  1. Run the following command.
    $ cd rtp-to-webm
    $ go build .
    $ ./rtp-to-webm
    
  2. Send RTP stream to ./rtp-to-webm using GStreamer.
    $ gst-launch-1.0 videotestsrc \
        ! video/x-raw,width=320,height=240,framerate=30/1 \
        ! vp8enc target-bitrate=4000 \
        ! rtpvp8pay ! udpsink host=localhost port=4000
    
  3. Check out test.webm generated at the current directory.

webm-roundtrip

Read WebM file, parse, and write back to the file.

  1. Run the following command to read sample.webm.
    $ cd webm-roundtrip
    $ go build .
    $ ./webm-roundtrip
    
  2. Contents (EBML document) of the file is shown to the stdout.
  3. Check out copy.webm generated at the current directory. It should be playable and seekable as same as sample.webm.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL