Monday, August 27, 2012

MP4 support in ngnix-rtmp master

Today I have finished my work on MP4 video-on-demand feature. The code in merged in master. My tests work perfectly. However I'm waiting for issues from module users.

Besides I have implemented a common framework for video-on-demand (the new play-module). Both mp4 and flv modules now work through this module.

3 comments:

  1. [...] learn, that a guy called Rarut is making a RTMP streaming module for the powerful webserver Nginx. He just announced MP4 support for his module, so this is definitely worth a look! Share this:TwitterFacebookLike this:LikeBe the [...]

    ReplyDelete
  2. Hey! Testing this on a devmachine I've got. I only get audio with a mp4 that plays normally on wowza/fms - and I can't for the life of me get hls to do anything.

    Could you provide a full config for running ONLY vod for both mp4 & hls?

    ReplyDelete
  3. If you get audio then I think you've done everything correct. Could you share your mp4, I'll try to find the error.

    HLS is not supported for VOD. You can manually split your videos into HLS fragments and serve via HTTP. You don't need any media server for that.

    As for live hls, it's pretty simple. Here's the application which should receive the stream to produce HLS:

    application hls {
    hls on;
    hls_path /tmp/hls; # this path should exist
    }

    obviously you should build nginx HLS support (--add-module=/path/nginx-rtmp-module/hls)

    ReplyDelete