Live TV streaming (1 Viewer)

DieBagger

Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Very exiting news!!!

    So how is the system working performance-wise? How long are the delays and how much cpu does this take (if not all ;))? Have you tried it on hdtv channels? Is this real smoothstreaming with quality-changing when bandwidth drops? Have you tried it with a flash/html5 player?

    Man lots of questions... ;)

    :D a bunch for all your work!
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,559
    312
    57
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    Performance is OK, my CPU runs at 30%, it does take 25-30 sec for the SmoothStreaming module to buffer, prepare the stream and manifests though. This initial version will just transcode at one video bitrate but adding other streams should just require additional ffmpeg parameters in config.xml (using the -newvideo parameter).

    I haven't tried it with Flash/Html5 or Silverlight yet.

    I have found that the stream stops on my iphone now and again at different intervals, I don't know if its a PC problem or wireless problem or iPhone problem, the tuner remains tuned in and transcoding continues so I can just reattach to the stream. We'll just have to see what others experience.
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,559
    312
    57
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    I tested over 3G this morning and got the audio stream only which is what you'd expect with an Adaptive stream bearing in mind I have only a 400kbps upstream ASDL. I also downloaded Expression 4 this morning to try to knock up a quick Silverlight player.
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,559
    312
    57
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    Another update....streaming an HD channel pushed my ffmpeg process up to 50-60% The stream was still fine though. I gave the Smooth Streaming devs access to my iPiMP install to have a look and they were impressed :D

    After looking through my Apache access logs, we think we've found a bug that may lead to the drop outs and they are working on fixing that but that fixed version won't be ready for a while as there are other changes going on too.

    So in the meantime I will release iPiMP 5.0.0 tomorrow morning. I have to compile tonight for MP 1.0.2 and MP 1.1.0 RC4, there's also a breaking change in MP version which means that browsing schedules in iPiMP 1.0.2 won't work - all the more reason to upgrade ;)
     

    Lolento

    Portal Pro
    September 9, 2006
    150
    7
    48
    Home Country
    United States of America United States of America
    Hi Cheezey,

    Can the live streaming be applied to the recorded TV and movie files (of different formats)?
     

    Khurram

    Portal Pro
    May 12, 2008
    211
    5
    Home Country
    Pakistan Pakistan
    I got really excited when I that you posted the new version. But I cannot get live streaming to work :confused: Tapping "Watch" gives this error:
    Code:
    The system cannot find the file specified
    
    Server stack trace: at System.Diagnostics.Process.StartWithCreateProcess
    (ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at 
    uWiMP.TVServer.MPWebServices.EncoderWrapper.StartProcess(String input) at 
    uWiMP.TVServer.MPWebServices.EncoderWrapper.StartPipe() at 
    uWiMP.TVServer.MPWebServices.EncoderWrapper..ctor(Stream mediaStream, 
    EncoderConfig encCfg) at Website.uWiMP.TVServer.Streamer.Stream
    (MediaType mediatype, Int32 id) in D:\Dev\vs2008\MediaPortal Universal Web 
    Interface\Website\Code\TVServer\Streamer.vb:line 148 at Website
    .uWiMP.TVServer.Streamer.ExecuteAsyncTask() in D:\Dev
    \vs2008\MediaPortal Universal Web Interface\Website\Code\TVServer\Streamer.vb:line 79 at 
    System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage
    (IntPtr md, Object[] args, Object server, Int32 methodPtr, 
    Boolean fExecuteInContext, Object[]& outArgs) at 
    System.Runtime.Remoting.Messaging.StackBuilderSink
    .PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, 
    Object server, Int32 methodPtr, Boolean fExecuteInContext, 
    Object[]& outArgs) at System.Runtime.Remoting.Messaging
    .StackBuilderSink.AsyncProcessMessage (IMessage msg, 
    IMessageSink replySink) Exception rethrown at [0]: 
    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper
    (Message reqMsg, Boolean bProxyCase) at System.Runtime.Remoting
    .Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at 
    Website.uWiMP.TVServer.Streamer.AsyncTaskDelegate.EndInvoke
    (IAsyncResult DelegateAsyncResult) at Website.uWiMP.TVServer
    .Streamer.OnEnd(IAsyncResult ar) in 
    D:\Dev\vs2008\MediaPortal Universal Web Interface\Website
    \Code\TVServer\Streamer.vb:line 96 at 
    System.Web.UI.PageAsyncTask.CompleteTask(Boolean timedOut, Boolean 
    syncTimeoutCaller)
    Is it because the tv guide is empty? I actually copied the error message by opening the link in firefox, but I think the error message is the same.
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,559
    312
    57
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    Have a look at c:\program files\ipimp\aspx\config.xml there is a path to ffmpeg in there. Can you confirm that is the correct path?
     

    Khurram

    Portal Pro
    May 12, 2008
    211
    5
    Home Country
    Pakistan Pakistan
    Have a look at c:\program files\ipimp\aspx\config.xml there is a path to ffmpeg in there. Can you confirm that is the correct path?
    Thanks for the reply. Config.xml contents
    <appconfig>
    <transcoders>
    <transcoder name="SmoothStream" usetranscoding="1" filename="&quot;##FFMPEGPATH##\ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;##FFMPEGPATH##/ffpresets/libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://##LISTEN##/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />
    </transcoders>
    </appconfig>
    I have no idea what ##FFMPEGPATH## means ;) My windows drive is G, so ffmpeg.exe is in G:\Program Files....
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,559
    312
    57
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    Have a look at c:\program files\ipimp\aspx\config.xml there is a path to ffmpeg in there. Can you confirm that is the correct path?
    Thanks for the reply. Config.xml contents
    <appconfig>
    <transcoders>
    <transcoder name="SmoothStream" usetranscoding="1" filename="&quot;##FFMPEGPATH##\ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;##FFMPEGPATH##/ffpresets/libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://##LISTEN##/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />
    </transcoders>
    </appconfig>
    I have no idea what ##FFMPEGPATH## means ;) My windows drive is G, so ffmpeg.exe is in G:\Program Files....

    The installer should replace ##FFMPEGPATH## with - well the path to ffmpeg ;) Usually c:\program files\ipimp\utilities\ffmpeg\ffmpeg.exe

    Similarly the installer should replace ##LISTEN## with the IP: Port that the iPiMP app is listening on. e.g. 127.0.0.1:80

    If I remember correctly you're the iPiMP user that does an 'existing Apache install' - I guess in all the excitment I didn't put these changes in for that type of install. I'll fix that for the next version. In the meantime though replace those ##PLACEHOLDERS## manually.
     

    Users who are viewing this thread

    Similar threads

    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    4
    Views
    478
    MP1 MP2 MP2 - V2.3 EPG has stopped DE
    The only configuration that is certain to work is when the MP client and MP server are from the same release. It is sometimes possible to use MP clients from a release that is different to the MP server, but whether it works depends on the specific changes that were made between the two releases. -- from CyberSimian in the UK
    The only configuration that is certain to work is when the MP client and MP server are from the same release. It is sometimes...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    10
    Views
    4K
    The reason I was thinking I needed more RAM is that TV now seems to be HiDef and so the files have grown. I edit the files before storing them, to reduce some size. It is finding that slower, I think. Or it could just be because I'm expecting more? The Baseboard manufacturer says ASUSTech Computer Inc; Baseboard product P7P55D-E...
    The reason I was thinking I needed more RAM is that TV now seems to be HiDef and so the files have grown. I edit the files before...
    I'm not sure where to post this query - I've been told, during a conversation about costs of upgrading, that W11 may not support my...
    Replies
    4
    Views
    4K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    768
    Ok, thanks much. I will look into the instructions above. For the moment, I turned off the "Automatic channel logo update" in Settings (which somehow I had missed, I think because it wasn't an option previously), and the deleted everything in the Flat-default folder and populated it with my own logos. Works, so far.
    Ok, thanks much. I will look into the instructions above. For the moment, I turned off the "Automatic channel logo update" in...
    Hi-- I have to revisit an old issue, unfortunately. I just downloaded MP 2.5, a fresh installation, on a new computer (reluctantly...
    Replies
    5
    Views
    1K
    Top Bottom