madhawa

Apple HLS with FFMpeg + CRTMPServer @ $0 By Madhawa

May 30th, 2012
5,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. Apple HLS with FFMpeg + some Shell Scripts + Mediainfo + CRTMPServer + Nginx + RSYNC + $0
  2. Please install latest FFMpeg from GIT and MediaInfo(http://mediainfo.sourceforge.net/en) before start anything from here.
  3.  
  4. 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!!!
  5.  
  6.  
  7. On FFMpeg Encoder-123.123.117.8(Ubuntu + FFMpeg + MediaInfo + Rsync)
  8. ====================================================================
  9. Sample "/etc/rc.local" for Apple HLS on FFMpeg Encoder
  10. http://pastebin.com/raw.php?i=MEgYK1GG
  11.  
  12.  
  13. Sample "/usr/sbin/segmenter_128k" for Apple HLS
  14. http://pastebin.com/raw.php?i=Khj874qL
  15.  
  16. Sample "/usr/sbin/segmenter_256k" for Apple HLS
  17. http://pastebin.com/raw.php?i=euQpmxvk
  18.  
  19. Sample "/usr/sbin/keepalive" for Apple HLS on FFMpeg Encoder
  20. http://pastebin.com/raw.php?i=rHmcPzDw
  21.  
  22. Sample "/usr/sbin/makem3u8_128k" for Apple HLS on FFMpeg Encoder
  23. http://pastebin.com/raw.php?i=bjPAeecK
  24.  
  25. Sample "/usr/sbin/makem3u8_256k" for Apple HLS on FFMpeg Encoder
  26. http://pastebin.com/raw.php?i=aWZqsv65
  27.  
  28.  
  29. Setup RSYNC (Ubuntu way)
  30. change RSYNC_ENABLE=false to RSYNC_ENABLE=inetd in /etc/default/rsync
  31.  
  32. apt-get -y install xinetd
  33.  
  34. Sample "/etc/xinetd.d/rsync" for Apple HLS on FFMpeg Encoder
  35. http://pastebin.com/raw.php?i=zurqxrdx
  36.  
  37. Sample "/etc/rsyncd.conf" for Apple HLS on FFMpeg Encoder
  38. http://pastebin.com/raw.php?i=jcwnSGJ8
  39.  
  40. Restart "Xinetd"
  41. /etc/init.d/xinetd restart
  42.  
  43.  
  44. On WebServers-123.123.117.37(CentOS+Nginx+Rsync)
  45. ================================================
  46. Sample "/etc/rc.local" for Apple HLS on Webservers
  47. http://pastebin.com/raw.php?i=51jtmhRu
  48.  
  49. Sample "/usr/sbin/keepalive" for Apple HLS on Webservers
  50. http://pastebin.com/raw.php?i=QZkUiaEX
  51.  
  52. Make softlink to /dev/shm/hls
  53. -----------------------------
  54. ln -s /dev/shm/hls /var/www/html/hls
  55.  
  56. set Nginx default webroot as "/var/www/html/"
  57.  
  58. Please chmod 755 to all bash scripts & reboot both servers(you don't have to reboot CRTMPServer)
  59. 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.
  60.  
  61. Have a fun!!!
Advertisement
Add Comment
Please, Sign In to add comment