简体   繁体   中英

NGINX RTMP convert flv to hls?

I have a server that takes an rtmp stream and saves it as flv.

Web users can view the flv video in their browser, however iPhone users can't as it is flash

Is there away to convert the saved flv files on the fly to hls for the iPhone viewers?

here is my config, Webusers access the vod application

rtmp {
     server {
             listen 1935;
             chunk_size 4096;

             application live {
                     live on;
                     record all;
                     record_path /videos/av;
                     idle_streams off;
             }
             application audio {
                     live on;
                     record audio;
                     record_path /videos/audio;
                     idle_streams off;

             }
             application vod {
                     play /videos/av;
             }
             application aod {
                     play /videos/audio;
             }

     } 
}

You could use the nginx-rtmp-module , which is available for free. It takes an rtmp input and is able to create HLS. If you don't want to use a self-managed server, you could use services like Bitmovin's encoding service .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM