.. | ||
rtp-to-webm | ||
webm-roundtrip | ||
README.md |
ebml-go examples
rtp-to-webm
Receive RTP VP8 stream UDP packets and pack it to WebM file.
- Run the following command.
$ cd rtp-to-webm $ go build . $ ./rtp-to-webm
- 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
- Check out
test.webm
generated at the current directory.
webm-roundtrip
Read WebM file, parse, and write back to the file.
- Run the following command to read
sample.webm
.$ cd webm-roundtrip $ go build . $ ./webm-roundtrip
- Contents (EBML document) of the file is shown to the stdout.
- Check out
copy.webm
generated at the current directory. It should be playable and seekable as same assample.webm
.