わいえむねっと

Contents
Categories
Calendar
2014/08
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Monthly Archives
~2000/01
Recent Entries
RSS1.0
Templates
Information
Processed: 0.047 sec
Chashed: -
2014/08/28 Thu
呼ばれたかと思ったけど呼ばれてなかった上にブラウザがクラッシュした。 NginxのRTMPモジュールを試してみる。

Robin "Jack0r" Hielscher - Designs and stuff: nginx rtmp
http://rtmp.jack0​r.com/
On this page you can find my latest builds of the nginx server + rtmp module for Windows.


  • "Rar-file: (compiled exe and folder structure)" から一番新しい "nginx_1.7.4 rtmp 1.1.4" をダウンロード
  • exeのみでした。
  • 次に新しい "nginx 1.7.1 rtmp 1.1.4" をダウンロード。
  • 起動しませんでした。
  • exeを "nginx_1.7.4 rtmp 1.1.4" に差し替えたら動いた。

とりあえず conf/nginx.conf にmp4の設定を追加して実行。

rtmp {
    server {
        # video on demand for mp4 files
        application vod {
            play var/mp4s;
        }
    }
}

2014/08/28 22:28:07 [info] 3692#4976: *6 client connected '127.0.0.1'
2014/08/28 22:28:07 [info] 3692#4976: *6 connect: app='vod' args='' flashver='WIN 14,0,0,145' swf_url='http://localhost/jwplayer.flash.swf' tc_url='rtmp://localhost:1935/vod/' page_url='http://localhost/foo.html' acodecs=3575 vcodecs=252 object_encoding=0, client: 127.0.0.1, server: 0.0.0.0:1935
2014/08/28 22:28:07 [info] 3692#4976: *6 createStream, client: 127.0.0.1, server: 0.0.0.0:1935
2014/08/28 22:28:07 [info] 3692#4976: *6 play: name='mp4:foo.mp4' args='' start=0 duration=0 reset=0 silent=0, client: 127.0.0.1, server: 0.0.0.0:1935
2014/08/28 22:28:07 [info] 3692#4976: *6 play: play name='mp4:foo.mp4' timestamp=0, client: 127.0.0.1, server: 0.0.0.0:1935
2014/08/28 22:28:07 [error] 3692#4976: *6 mp4: mmap failed at offset=112411477, size=54330 (1132: The base address or the file offset specified does not have the proper alignment), client: 127.0.0.1, server: 0.0.0.0:1935
2014/08/28 22:28:07 [info] 3692#4976: *6 disconnect, client: 127.0.0.1, server: 0.0.0.0:1935
2014/08/28 22:28:07 [info] 3692#4976: *6 deleteStream, client: 127.0.0.1, server: 0.0.0.0:1935

The base address or the file offset specified does not have the proper alignment とか言われて再生できず。


の "sample_mpeg4.mp4" なら再生できるので、TMPGEncで変換したファイルの問題かなーと。