3

I am planning to do a video on demand streaming solution which will have around 500 to 1000 clicks per week. I am streaming a live event once a week via Wowza Media Server an Amazons EC2. The plan is now to have a record of that event during the week until the next live event and then override the file with the new record. Wowza is an expensive solution for 24/7 and during the week we won't have that much parallel traffic, which led me to nginx with rtmp-module. I played with it and it was no problem to a) livestream with it (RTMP/Flash only) and b) doing a video on demand stream of a file via RTMP/Flash. But for mobile devices like iOS, Android and so on I need to have a http/hls stream like Wowza does. I know it is possible to have a http/hls stream of a live event with nginx and rtmp-module. But I don't know if it is possible to have an on demand http/hls stream with nginx and rtmp-module. I couldn't find any information about that and all example configurations are only for LIVE streaming and not VoD.

Could anyone please tell me:

  1. Is VoD over http/hls possible with nginx and rtmp-module?
  2. How would an example configuration look like?
4

2 回答 2

5

我终于用 rtmp-module 为 flash 测试了 nginx,并使用脚本和 cronjob 以及以下用于 hls 的 ffmpeg-syntax 的手工/自动化解决方案进行了测试:

ffmpeg -i input.m4v -acodec copy -bsf:a h264_mp4toannexb -g 105 -vcodec libx264 -vprofile baseline -bf 0 -maxrate 850k -bufsize 850k -s 960x540 -bsf:v dump_extra -map 0 -f segment -segment_format mpegts -segment_list "abc.m3u8" -segment_time 2 abc-%d.ts

请注意,这适用于基于 linux 的系统,并且有必要在 windows 下转义 %,如 abc- % %d.ts。

于 2013-10-19T15:37:52.067 回答
1

nginx-rtmp 模块本身是开源的,提供 RTMP 和实时 HLS 流。

但是,VOD HLS 流仅作为其商业解决方案的一部分提供:http: //nginx.com/products/

因此,相对于 Nginx 的支持价格,Wowza 每月订阅在您的案例的拥有成本方面似乎是一个更好的选择。

于 2013-10-14T23:35:58.727 回答