[Obsolete] MPWebStream: Stream TV over the internet (1 Viewer)

DieBagger

Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Hm, is anyone else having massive performance problems? I have a Core2 Duo @ 3GHz and both cores get maxed out when transcoding a sd channel... I used the old webservice a while back and never had such performance spikes (even hd channels worked).
     

    Oxan

    Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    Most of the default profiles use the x264 encoder, which is known to be a bit CPU hungry. Almost all profiles are higher quality than the profiles in MPWebServices, resulting in them wanting more CPU. I can try to come up with some MPEG2 profiles, which need a lot less CPU, but it needs a lot more bandwidth. It's hard to find the correct trade-off between CPU usage, bandwidth usage and quality ;)

    But, which profile did you use and which process consumes the CPU? I'm also testing on a Core2Duo @2.8GHz, and transcoding an SD channel takes only around 75% CPU..
     

    bribbon

    MP Donator
  • Premium Supporter
  • September 11, 2008
    470
    100
    Home Country
    Switzerland Switzerland
    AW: [Updated!] MPWebStream: Stream TV over the internet

    The MPWebServices Plugin works with mencoder as the standard. My Core2Duo 2x2.6GHz needs 3-5% per stream. But the hotest encoder for such jobs was Handbrake?! :D

    Cheers
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Most of the default profiles use the x264 encoder, which is known to be a bit CPU hungry. Almost all profiles are higher quality than the profiles in MPWebServices, resulting in them wanting more CPU. I can try to come up with some MPEG2 profiles, which need a lot less CPU, but it needs a lot more bandwidth. It's hard to find the correct trade-off between CPU usage, bandwidth usage and quality ;)

    But, which profile did you use and which process consumes the CPU? I'm also testing on a Core2Duo @2.8GHz, and transcoding an SD channel takes only around 75% CPU..

    Ok, I tried the different profiles again and you're right, it was mainly the h264 codecs that didn't work (at all).

    Here's who the other ones performed (on sd channels, hd channels weren't playable with any setting):
    • Android: cpu maxed out, still works though (hangs every once in a while)
    • MPEG4, wvga 1.5Mbit/s: ~50%, works ok
    • MPEG4, 720p: ~80%, hangs every ~10 seconds
    • MPEG4, 8MBit: 30-40%, works well with sd channels
    • all H264 configs -> not working

    In comparison, i tried transcoding with iPimp (not sure which settings they use) and got to about 5-10% cpu usage (HD ~60%)... :eek:
     

    Oxan

    Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    In comparison, i tried transcoding with iPimp (not sure which settings they use) and got to about 5-10% cpu usage (HD ~60%)...
    That makes things interesting; as iPimp AFAIK also uses ffmpeg. MPWebStream could even use the exact same transcoding program and parameters as iPimp, so we can see the difference. One thing I can see is that iPimp outputs a 480x272 stream, while my streams have way higher resolutions and thus need a lot more CPU. I'll probably add some more low-resolution profiles in a new release.

    Could you try this transcoder profile?
    - Transcode: yes
    - Input & output method: NamedPipe
    - Transcoder: C:/Program Files (x86)/iPiMP/Utilities/ffmpeg\ffmpeg.exe
    - Parameters: -i "{0}" -threads 0 -re -vcodec libx264 -fpre "C:/Program Files (x86)/iPiMP/Utilities/ffmpeg/ffpresets/libx264-iPiMP.ffpreset" -b 256k -s 480x272 -aspect 480:272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 -f mpegts "{1}"
    - MIME type: video/MP2T

    (this is based on a 64-bit windows 7 installation, adjust the paths if you've installed iPiMP elsewhere).
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    In comparison, i tried transcoding with iPimp (not sure which settings they use) and got to about 5-10% cpu usage (HD ~60%)...
    That makes things interesting; as iPimp AFAIK also uses ffmpeg. MPWebStream could even use the exact same transcoding program and parameters as iPimp, so we can see the difference. One thing I can see is that iPimp outputs a 480x272 stream, while my streams have way higher resolutions and thus need a lot more CPU. I'll probably add some more low-resolution profiles in a new release.

    Could you try this transcoder profile?
    - Transcode: yes
    - Input & output method: NamedPipe
    - Transcoder: C:/Program Files (x86)/iPiMP/Utilities/ffmpeg\ffmpeg.exe
    - Parameters: -i "{0}" -threads 0 -re -vcodec libx264 -fpre "C:/Program Files (x86)/iPiMP/Utilities/ffmpeg/ffpresets/libx264-iPiMP.ffpreset" -b 256k -s 480x272 -aspect 480:272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 -f mpegts "{1}"
    - MIME type: video/MP2T

    (this is based on a 64-bit windows 7 installation, adjust the paths if you've installed iPiMP elsewhere).

    I think iPimp uses handbreak for encoding as default...

    The configuration from above isn't working for some reason... Timeshifting starts and logs doesn't show any errors but vlc doesn't start the video.
     

    Oxan

    Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    The configuration from above isn't working for some reason... Timeshifting starts and logs doesn't show any errors but vlc doesn't start the video.
    I should really start testing transcoder configurations before I post them here. Try adding an -y to the start of the arguments and it should work. It works with around 30% CPU on my C2D, mostly coming from ffmpeg. I can't compare with iPiMP right now, but I'll setup an iPiMP installation later. I'll also check what they use by default for transcoding then.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    The configuration from above isn't working for some reason... Timeshifting starts and logs doesn't show any errors but vlc doesn't start the video.
    I should really start testing transcoder configurations before I post them here. Try adding an -y to the start of the arguments and it should work. It works with around 30% CPU on my C2D, mostly coming from ffmpeg. I can't compare with iPiMP right now, but I'll setup an iPiMP installation later. I'll also check what they use by default for transcoding then.

    That was the first time I tried... ;)

    Still not working though. :(
     

    smurf

    Portal Member
    April 12, 2009
    48
    8
    This plugin works really well but I think you can add an option: select the channel groups defined on mediaportal.
    Everytime i load the home page i see every channel of my tv card, I'd like to have the same configuration I use on mediaportal.

    Another thing is the fullscreen button: doesn't work on chrome (i don't know with other browsers)
     

    Users who are viewing this thread

    Top Bottom