Results 1 to 9 of 9

Thread: Play stream with ffmpeg (ffplay)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question Play stream with ffmpeg (ffplay)

    In our project we have to feed a VOD stream from Wowza to FFmpeg. The stream plays fine over RTMP, but I was wondering how that worked - what kind of request FFmpeg sends to Wowza etc. Essentially I want to be able to parse that request and return a file stream depending on the request string.

    I know that with a Flash client I could use method play() on a server module. Is there any such option for when the client is FFmpeg?

    Also, an interesting moment: when I have some directory structure under my 'content' folder, I can navigate it with FFmpeg just fine by submitting a request like the following:

    ffplay "rtmp://wowza:1935/vod/_definst_/some_dir_under_content/vod_file.flv"
    However, that doesn't work with a Flash client - says "Stream not found". Although the latter is not a problem at all (I can - and prefer to - use play() to juggle streams and files), I was just wondering what the difference was between how those clients communicate with Wowza.

    Any clarification would be much appreciated.
    Last edited by Hunternif; 12-05-2012 at 03:46 AM.

  2. #2
    Join Date
    Jul 2009


    Not sure what you're going for (and I'm reasonably certain I'm not going to be the person to help you with it!), but can you clarify a bit more? Are you looking to pull a series of files with FFMPEG? Or part of a file?

  3. #3


    Hello, susta004, thank you for your comment. I'll try to clarify more what I intend to do.

    Our Wowza server processes live streams and records them in segments to also stream later as vods. Another server has to connect to Wowza and analyze video data in both live and vod streams using FFmpeg. When analyzing vods, it may be either pulling a series of files or a part of a file, depending on which part of the archive has to be analyzed.

    I wish to make a request from the FFmpeg application to Wowza to play a specific part of the recorded vod archive, but I don't want to request full path to the file under 'contents', instead I wish to add more abstract parameters to the request.

    Like this:
    ffplay "rtmp://wowza:1935/vod/play_recording?starttime=134567654&duration=36200"
    instead of this:
    ffplay "rtmp://wowza:1935/vod/_definst_/some_dir_under_content/vod_file.flv"
    Last edited by Hunternif; 12-12-2012 at 01:43 AM.

  4. #4
    Join Date
    Jul 2009


    I'm sure that's possible with a custom server-side module, if nothing else. Just something to parse the URL variables and call the appropriate internal Wowza commands.

  5. #5


    Well, it's definitely possible when the client is a Flash application that calls, startTime, duration).
    But from what I read on the forum, it looks like Flash client is the only option to make a playlist of several vods on the server side.
    Also that's the only way, that I know of, to intercept the 'play' request from a client - because all the parameters are supplied to method.

    It's okay if I can't play the streams in a server-side playlist with FFmpeg, I could do with separate vod requests. But I'd love to know how to abstract from full file paths of those vods.
    Last edited by Hunternif; 12-12-2012 at 03:34 AM.

  6. #6
    Join Date
    Jul 2009


    I assume FFMPEG's RTMP request must call some kind of play method, right? I mean, it plays, doesn't it?

    Check your Wowza logs. Maybe turn on debug logging if necessary, to see what an FFMPEG request actually does.

    I am curious what FFMPEG might do with a server-side Wowza playlist. But otherwise, if you create a custom Wowza server-side module, you should be able to intercept the stream name and URL parameters, then use those to control your start and duration times for that stream, right? Then you'd just have to use a series of FFMPEG calls to simulate a playlist client-side. See the note here about query parameters for single URL RTMP clients (which should include FFMPEG):

Similar Threads

  1. ffmpeg stream monitoring, restarting
    By arsenm in forum General Forum
    Replies: 6
    Last Post: 08-08-2014, 10:32 AM
  2. Replies: 5
    Last Post: 08-13-2012, 04:21 AM
  3. Live Stream FFMPEG Encoding - Stream Not Found
    By wolfza in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 01-09-2012, 06:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts