Posts

Showing posts with the label ngnix

串流 - RTMP - NGNIX (一)

Image
繼上一篇講既串流概括 今次講3樣野 1)RTMP 串流 2)Google Compute Engine 3)Ngnix Server 除了上次講既6種方法,當中有一種講少左(當然仲有其他啦) RTMP - 由 Macromedia 開發 (而家係adobe)- 睇"波 "一般都會用到 今次我地既問題係點樣先可以 串流一段live片 出街呢。 方法: Live input(劇集) -> Server(Linux Machine or Windows) -> client(mobile phone, flash player) 睇得深入d: Some kind of Format input -> Converter (frameRate, Encoding, Decoding) -> Output File -> Some Kind of Streaming-In protocol  -> Some kind of Receiving Server -> Some Kind of Streaming-Out Protocol -> Some Kind of Media Player 我地會用既方案: hunter.mp4 -> ffmpeg -> hunter.flv -> RTMP -> Linux,Google Compute Engine,Ngnix -> RTMP ->   Flash,jwplayer 首先用ffmpeg converter 去轉條 mp4片做flv 先, 然後用rtmp制式stream去GCE到,大概一秒800Kb 左右 條片(每秒800kb)到左server就會開始live stream 當我用個flash jwplayer去connect 上server,條片就會出現啦 因為係live,條片會係 跟返stream in 緊既時間。 Q&A 咩係ffmpeg? 轉片神器 !  點解要用RTMP? 因為可以用flash player去播,易set 係咪一定要用RTMP? 唔...