Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Apple HLS with FFMpeg + some Shell Scripts + Mediainfo + CRTMPServer + Nginx + RSYNC + $0
- Please install latest FFMpeg from GIT and MediaInfo(http://mediainfo.sourceforge.net/en) before start anything from here.
- Please Note 123.123.117.16 is my CRTMPServer(This also work with other Flash Media Servers, But who cares other servers when you get something for FREE) Keep in mind "Free" means Freedom!!!
- On FFMpeg Encoder-123.123.117.8(Ubuntu + FFMpeg + MediaInfo + Rsync)
- ====================================================================
- Sample "/etc/rc.local" for Apple HLS on FFMpeg Encoder
- http://pastebin.com/raw.php?i=MEgYK1GG
- Sample "/usr/sbin/segmenter_128k" for Apple HLS
- http://pastebin.com/raw.php?i=Khj874qL
- Sample "/usr/sbin/segmenter_256k" for Apple HLS
- http://pastebin.com/raw.php?i=euQpmxvk
- Sample "/usr/sbin/keepalive" for Apple HLS on FFMpeg Encoder
- http://pastebin.com/raw.php?i=rHmcPzDw
- Sample "/usr/sbin/makem3u8_128k" for Apple HLS on FFMpeg Encoder
- http://pastebin.com/raw.php?i=bjPAeecK
- Sample "/usr/sbin/makem3u8_256k" for Apple HLS on FFMpeg Encoder
- http://pastebin.com/raw.php?i=aWZqsv65
- Setup RSYNC (Ubuntu way)
- change RSYNC_ENABLE=false to RSYNC_ENABLE=inetd in /etc/default/rsync
- apt-get -y install xinetd
- Sample "/etc/xinetd.d/rsync" for Apple HLS on FFMpeg Encoder
- http://pastebin.com/raw.php?i=zurqxrdx
- Sample "/etc/rsyncd.conf" for Apple HLS on FFMpeg Encoder
- http://pastebin.com/raw.php?i=jcwnSGJ8
- Restart "Xinetd"
- /etc/init.d/xinetd restart
- On WebServers-123.123.117.37(CentOS+Nginx+Rsync)
- ================================================
- Sample "/etc/rc.local" for Apple HLS on Webservers
- http://pastebin.com/raw.php?i=51jtmhRu
- Sample "/usr/sbin/keepalive" for Apple HLS on Webservers
- http://pastebin.com/raw.php?i=QZkUiaEX
- Make softlink to /dev/shm/hls
- -----------------------------
- ln -s /dev/shm/hls /var/www/html/hls
- set Nginx default webroot as "/var/www/html/"
- Please chmod 755 to all bash scripts & reboot both servers(you don't have to reboot CRTMPServer)
- try http://123.123.117.37/hls/abcd_live_128k.m3u8 & http://123.123.117.37/hls/abcd_live_256k.m3u8 from iOS devices and Android devices.
- Have a fun!!!
Advertisement
Add Comment
Please, Sign In to add comment