ffmpeg: live video streaming

Build a live test video stream based on nginx:rtmp and ffmpeg Push the stream
through the ffmepg command
ffmpeg -re -i /Users/samson/Desktop/apple.mov -vcodec copy -f flv rtmp://localhost:1935/live1/room1
this room1 can be freely defined, as long as live1 is the same as the configuration in nginx.conf above,

then open the player software vlc on the computer, click File---->Open Network, select Network in the pop-up box and enter the URL:
rtmp ://localhost:1935/live1/room1

Note: It must be played while decoding

as shown in the figure:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326180849&siteId=291194637