Use x264 instead of vp8 for rtp example

This commit is contained in:
Lukas Herman
2020-11-07 21:04:26 -08:00
parent a73b1922ed
commit 8dd84b269c
3 changed files with 19 additions and 9 deletions
+12 -3
View File
@@ -1,5 +1,14 @@
## Instructions
### Install required codecs
In this example, we'll be using x264 and opus as our video and audio codecs. Therefore, we need to make sure that these codecs are installed within our system.
Installation steps:
* [x264](https://github.com/pion/mediadevices#x264)
* [opus](https://github.com/pion/mediadevices#opus)
### Download rtpexample
```
@@ -10,13 +19,13 @@ go get github.com/pion/mediadevices/examples/rtp
Install GStreamer and run:
```
gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,encode-name=VP8 \
! rtpvp8depay ! vp8dec ! videoconvert ! autovideosink
gst-launch-1.0 udpsrc port=5000 caps=application/x-rtp,encode-name=H264 \
! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink
```
Or run VLC media plyer:
```
vlc ./vp8.sdp
vlc ./h264.sdp
```
### Run rtp