iPiMP 5.1.0 is released | Page 27

Discussion in 'iPiMP' started by cheezey, November 13, 2010.

  1. limpwhizkid
    • Premium Supporter

    limpwhizkid Retired Team Member

    Joined:
    February 22, 2008
    Messages:
    575
    Likes Received:
    64
    Occupation:
    Payed hacker
    Location:
    on your IPC$
    Ratings:
    +76 / 3
    Home Country:
    Netherlands Netherlands
    Show System Specs
    1.Download the updated FFMpeg here.
    2.Download the updated smooth streaming Apache module here.
    3.Stop the iPiMPWeb service (at a command prompt use NET STOP iPiMPWeb)
    4.Rename the folder C:\Program Files\iPiMP\Utilities\FFMpeg to C:\Program Files\iPiMP\Utilities\FFMpeg.old
    5.Rename the file C:\Program Files\iPiMP\Apache\modules\mod_smooth_streaming.so to C:\Program Files\iPiMP\Apache\modules\mod_smooth_streaming.so.old
    6.Backup C:\Program Files\iPiMP\Aspx\config.xml somewhere safe
    7.Unzip the updated FFMpeg into C:\Program Files\iPiMP\Utilities (check you end up with C:\Program Files\iPiMP\Utilities\FFMpeg\FFMpeg.exe)
    8.Unzip the updated smooth streaming Apache module into C:\Program Files\iPiMP\Apache\modules
    9.Start the iPiMPWeb service (at a command prompt use NET START iPiMPWeb)
    10.Edit (DONT COPY & PASTE) the ffmpeg and smoothstreaming module parameters in C:\Program Files\iPiMP\Aspx\config.xml and change line 3 from
    <transcoder name="LiveTV" usetranscoding="1" filename="&quot;C:/Program Files/iPiMP/Utilities/ffmpeg\ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;C:/Program Files/iPiMP/Utilities/ffmpeg/ffpresets/libx264-iPiMP.ffpreset&quot; -b 256k -s 480x272 -aspect 480:272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 -f ism http://127.0.0.1:80/SmoothStream.isml/Streams(SmoothStream)?dvr_window_length=15" inputmethod="2" outputmethod="4" />

    to

    <transcoder name="LiveTV" usetranscoding="1" filename="&quot;C:/Program Files/iPiMP/Utilities/ffmpeg\ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;C:/Program Files/iPiMP/Utilities/ffmpeg/ffpresets/libx264-veryfast.ffpreset&quot; -g 100 -keyint_min 50 -b 256k -s 480x272 -aspect 480:272 -acodec libfaac -ac 2 -ab 64k -ar 44100 -ac 2 -async 2 -f ism http://127.0.0.1:80/SmoothStream.isml/Streams(SmoothStream)" inputmethod="2" outputmethod="4" />

    In summary, the parameter changes are:
    1.Use libx264-veryfast.preset instead of libx264-iPiMP.preset
    2.Add -g 100 -keyint_min 50
    3.Change audio rate from 48000 to 44100
    4.Remove ?dvr_window_length=15



    Report back on your findings.
    --------------------------------------------
    i did reverse 10 and 9 in execution order :D

    sorry to say, that didnt work .. i have 1.1.3 actually on windows2008..

    i dit notice something on SD streaming though

    SD only uses peak 8% cpu .. lows around 4% and still works flawlessly..

    (guess it changed something afterall :D)

    gonna try -r 25 aswell .. saw some FPS at 14 in the apache error log for HD channel.. so might help ..

    if not i'll just re-enable the SD channels with where disabled in favour of the HD channels.
    So there is no hurry as long as the duplicate SD channels dont disappear if you look at it from that perspective :D
    I guess they wont disappear for a long time , just would be nice if it works also on HD.

    If you look at it from a enviroment friendly way, it would actually be better to use the SD channels, much less CPU time/energy goes into transcoding, and the result will be the same 320-330kb output stream you want to watch....

    save the environment - use SD channels for iPiMP :mad:
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Olli0815
    • Premium Supporter

    Olli0815 MP Donator

    Joined:
    August 22, 2006
    Messages:
    182
    Likes Received:
    16
    Ratings:
    +18 / 1
    i am running ffmpeg with r-18...and:
    <transcoder name="Recording" usetranscoding="1" filename=""C:/Program Files/iPiMP/Utilities/ffmpeg\ffmpeg.exe"" args="-ss 180 -i "{0}" -threads 0 -re -vcodec libx264 -fpre "C:/Program Files/iPiMP/Utilities/ffmpeg/ffpresets/libx264-veryfast.ffpreset" -g 100 -keyint_min 50 -r 18 -b 256k -s 480x272 -aspect 480:272 -acodec libfaac -alang ger -ac 1 -ab 32k -ar 22050 -async 2 -f ism http://127.0.0.1:80/SmoothStream.isml/Streams(SmoothStream)" inputmethod="0" outputmethod="4" />


    ffmpeg use 50% of CPU, httpd 2%

    fresh logs:
    View attachment 79914
    View attachment 79915

    and yes, i also think that ffmpeg isn't fast enough to convert 1080i "near-realtime", because as i say before i reduce the stream quality even down to 96k and -g 25.. with ultrafast_firstpass preset - it does not help...so the drop outs are not related to the output stream..

    i also found other examples to stream HD content to I-devices
    iPad Streaming Video and More
    iPhone, iPad, iPod – HTTP Live Streaming (HLS) with free tools on Windows


    ..but don't ask me how to integrate them into your solution..

    Olli
     
  4. limpwhizkid
    • Premium Supporter

    limpwhizkid Retired Team Member

    Joined:
    February 22, 2008
    Messages:
    575
    Likes Received:
    64
    Occupation:
    Payed hacker
    Location:
    on your IPC$
    Ratings:
    +76 / 3
    Home Country:
    Netherlands Netherlands
    Show System Specs
    r 18 seems unwise to me...
    since ffmpeg has more work to do , going from the usual 25fps to 18 .. ?

    try 25 and see if it lowers the cpu consumption ?
     
  5. Olli0815
    • Premium Supporter

    Olli0815 MP Donator

    Joined:
    August 22, 2006
    Messages:
    182
    Likes Received:
    16
    Ratings:
    +18 / 1
    As i say before: i played around with all parameters over 3weeks, without success...r from 10 to 30 does not help..For me
     
  6. limpwhizkid
    • Premium Supporter

    limpwhizkid Retired Team Member

    Joined:
    February 22, 2008
    Messages:
    575
    Likes Received:
    64
    Occupation:
    Payed hacker
    Location:
    on your IPC$
    Ratings:
    +76 / 3
    Home Country:
    Netherlands Netherlands
    Show System Specs
    cant you re-enable the SD streams also , i did that, and all those channels work perfectly for me, all hd channels are also available in SD, and it seems rather pointless to transcode a better source in the same 330kbps stream to watch on the iphone?

    the quality of the final stream on the iphone wont be any better by using a hd channel anyway..

    so i for one am just really happy with ipimp and just use SD channels for live streaming..

    i am donating 40 euros , since this is what i would have paid for it easily if it was available in the app store..

    cheezey again .. very nice work! you made my remote fx setup pretty useless :D
     
    • Like Like x 1
  7. Olli0815
    • Premium Supporter

    Olli0815 MP Donator

    Joined:
    August 22, 2006
    Messages:
    182
    Likes Received:
    16
    Ratings:
    +18 / 1
    I tried again with r 25 the result is even worst, stuttering begins earlier...

    i do not have Problems with SD LiveTV - as the HD channels are shows the same content...LiveTV is OK for me, even via 3G.
    i only want to stream my recorings, as i record only from the HD channels...(1080i with DTS)...SD recordings are OK, too.
    But i have 95% HD recordings...
     
  8. limpwhizkid
    • Premium Supporter

    limpwhizkid Retired Team Member

    Joined:
    February 22, 2008
    Messages:
    575
    Likes Received:
    64
    Occupation:
    Payed hacker
    Location:
    on your IPC$
    Ratings:
    +76 / 3
    Home Country:
    Netherlands Netherlands
    Show System Specs
    those are being transcoded over night to mp4 ?

    at least i have set this up this way and all HD shows that have been recorded are available the next day without hickups ?

    see attachment ?

    p.s. click "view" a recording instead of stream, and it will use the transcoded mp4 instead of the realtime hd recording..
     

    Attached Files:

    • transcode.PNG
      transcode.PNG
      File size:
      60.8 KB
      Uploaded:
      April 14, 2011
      Views:
      111
  9. Olli0815
    • Premium Supporter

    Olli0815 MP Donator

    Joined:
    August 22, 2006
    Messages:
    182
    Likes Received:
    16
    Ratings:
    +18 / 1
    Thanks for that hint ;-) I am using IPMP since two years now - and i know this Option ...i just talking about Streaming HD recordings ...because i like the idea to stream them instead of transcode everything...every day...

    Olli
     
  10. cheezey

    cheezey Community Plugin Dev

    Joined:
    August 26, 2004
    Messages:
    1,560
    Likes Received:
    315
    Occupation:
    Technical architect
    Location:
    West Yorks, UK
    Ratings:
    +315 / 0
    Home Country:
    United Kingdom United Kingdom
    I have also in mind to remove the iPiMP use of transcoded recording in favour of on demand streaming, however I may have to re-think with this HD issue in mind.

    I'm loathed to change the streaming technology as it is a really flexible solution with the capability to produce a single source compliant with technologies from Apple (Adaptive Streaming), Adobe (HTTP Dynamic Streaming) and Microsoft (Smooth Streaming). So the same stream can be viewed on iPhones/iPads, flash players, silverlight players etc.
     
  11. limpwhizkid
    • Premium Supporter

    limpwhizkid Retired Team Member

    Joined:
    February 22, 2008
    Messages:
    575
    Likes Received:
    64
    Occupation:
    Payed hacker
    Location:
    on your IPC$
    Ratings:
    +76 / 3
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Aha... well .. i am using it for 2 days , so what do i know :D

    But I understand where youre coming from , i guess there is nothing you can do , and even cheezey will have to see if better options are available to real time encode HD in the future.

    For the moment though, i wouldnt waste my time with trying, it wont work as far as what i have seen happening on my system.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!