Mediasoup source code analysis (10) Push ffmpeg to mediasoup and debug node.js code

1. Introduction to PlainTransport

     mediasoup provides PlainTransport that can receive raw RTP data, so you can push local files to mediasoup through the ffmpeg.sh script.

Two, ffmpeg.sh push streaming introduction

Screenplay path diameter: mediasoup-demo / broadcasters / ffmpeg.sh

Note: If you want to see the streaming effect of ffmpeg, you can request through the chrome web page to create a room in advance, and then push to this room.

1. Dependent libraries when the installation script is running

Install httpie

yum install httpie

Install urlib

easy_install urllib3==1.21.1

2. Remove https ssl certificate authentication

Running the ffmpeg.sh script directly will report ssl certificate authentication problems. You need to modify the script to add and remove authentication parameters.

The specific operations are as follows:

 Open ffmpeg.sh and find the definition of HTTPIE_COMMAND, add a field: --verify, and modify it to:

HTTPIE_COMMAND="http  --verify=no  --check-status"

Three, start ffmpeg.sh push streaming

The start command is:

//记着把xx.xx字段换成自己的ip
SERVER_URL=https://xx.xx.xx.xx:4443 R

Guess you like

Origin blog.csdn.net/lcalqf/article/details/108108262