MPWebServices and FFmpeg (1 Viewer)

cheezey

Community Plugin Dev
August 26, 2004
1,560
312
55
West Yorks, UK
Home Country
United Kingdom United Kingdom
Has anyone succeeded in using ffmpeg with MPWebServices?

If so can you share the config.xml you used.

I have tried many args & combinations of input/output methods but always get one of:

  • Invalid option.
  • Pipe Stream isn't ready.
  • Cannot process request because the process (nnnn) has exited.
:D
 

Brownard

Development Group
  • Team MediaPortal
  • March 21, 2007
    2,290
    1,872
    Home Country
    United Kingdom United Kingdom
    Hey Cheezey

    I had the same issues as you and never figured out what the problem was, I would also occasionally have the same problem with Mencoder. First I thought FFmpeg didn't like async read/writes as it worked perfect every time when I created another thread to handle the input and did all read/writes synchronously.

    However I have since written my own streamer that is fully async, using only 1 thread, and it works OK. The encoding parameters, etc are all hardcoded so the EncoderWrapper/Config classes are not used, I also only pipe via ffmpeg's std in/out so no named pipes.

    So in theory it should work, the problem lies somewhere within the encoder wrapper I think.
    Attached is my streamer that successfully outputs flash video using ffmpeg (to enable viewing on an embedded player)

    Hope it helps

    **EDIT**

    Just checked, my code isn't truly async as the Reads are synchronous so maybe the prob is with ffmpeg and async reads
     

    Attachments

    • FFmpegStreamer.rar
      2.9 KB

    Users who are viewing this thread

    Top Bottom