ffmpeg: hls stream rtmp

Recently, I encountered a need to convert the live stream of the hls protocol into the live stream of the rtmp protocol; I searched for a long time on the Internet, but did not find the corresponding technical article, and finally the leader gave a final command to get it done:


ffmpeg -i http://test.com/index.m3u8 -vcodec libx264 -vb 800k -acodec libfaac -ab 64k -f flv rtmp://test.com/appName/streamName

If it prompts that libx264 is missing, it may be that your installation of ffmpeg is wrong (the module is missing when compiling); uninstall ffmpeg cleanly and use yum to install it.

Guess you like

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