

When you see SDP in base64 format printed it means that SDP is already in copy buffer. Input SessionDescription from ffmpeg-to-webrtc into your browser Here is an example of format that works: -pix_fmt yuv420p -c:v libx264 -bsf:v h264_mp4toannexb -b:v 2M -max_delay 0 -bf 0 -f h264. Browsers don’t support all h264 profiles so it may not always work. The app will read h264 stream from ffmpeg stdout. It makes ffmpeg to write output to stdout. Make sure ffmpeg in your PATH and golang is installed.Paste the SessionDescription into a file src/SDP.txt.In the jsfiddle the top textarea is your browser’s SDP, copy that and: Windows you should see two text-areas and a ‘Start Session’ button Copy browser’s SessionDescription This example has the same structure as play-from-disk-h264 but instead of reading from a file it reads H264 stream from ffmpeg stdout pipe. Ffmpeg-to-webrtc demonstrates how to send video from ffmpeg to your browser using pion.
