transcode-mediadevice is an example application showing a webcam stream transcoded to different formats.
Instructions
Open transcode-mediadevice example page
jsfiddle.net you should see your Webcam, two text-areas and a 'Start Session' button
In the jsfiddle the top textarea is your browser, copy that and:
Linux/macOS
Run echo $BROWSER_SDP | go run main.go
Windows
- Paste the SessionDescription into a file.
- Run
go run main.go < my_file
Copy the text that transcode-mediadevice
just emitted and copy into second text area
Hit 'Start Session' in jsfiddle, view the transcoded stream!
The output stream will be transcoded to H264, regardless of what input codec is used.