Live TV streaming (1 Viewer)

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
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.
Thanks for the info. I will do that.
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.
Excellent memory, you are absolutely right about me being "an existing Apache install" user :) I will make the changes in config.xml as you mentioned.
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
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.
Thanks for the info. I will do that.
I did the changes in config.xml and I got as far as till the Play/Stop button page. But clicking on Play button gives the following error:
Code:
The requested URL /SmoothStream/live.m3u8 was not found on this server.
I can see the card tuning in tv.log
Code:
2010-06-12 14:56:23.822821 [(6)]: card: Tuner locked: True
2010-06-12 14:56:23.828821 [(6)]: **************************************************
2010-06-12 14:56:24.155840 [(6)]: ***** SIGNAL LEVEL: 100, SIGNAL QUALITY: 100 *****
2010-06-12 14:56:24.160840 [(6)]: **************************************************
2010-06-12 14:56:24.165841 [(6)]: card: tuned user: {751484f1-316c-425a-b85c-f022f6812312} subchannel: 0
2010-06-12 14:56:24.171841 [(6)]: user:{751484f1-316c-425a-b85c-f022f6812312} add
2010-06-12 14:56:24.175841 [(6)]: card2:{751484f1-316c-425a-b85c-f022f6812312} 8 0
2010-06-12 14:56:24.180841 [(6)]: Controller: {751484f1-316c-425a-b85c-f022f6812312} 8 0
2010-06-12 14:56:24.186842 [(6)]: control2:{751484f1-316c-425a-b85c-f022f6812312} 8 0
2010-06-12 14:56:24.196842 [(6)]: Controller: delete timeshift files F:\TV Recordings\Timeshift\live8-0.ts
2010-06-12 14:56:24.212843 [(6)]: card: StartTimeShifting 8 F:\TV Recordings\Timeshift\live8-0.ts 
2010-06-12 14:56:24.218844 [(6)]: card: CAM enabled : False
2010-06-12 14:56:24.225844 [(6)]: analog: Encoder mode setting to ConstantBitRate
2010-06-12 14:56:24.561863 [(6)]: analog: Encoder mode set to ConstantBitRate
2010-06-12 14:56:24.569864 [(6)]: analog: Encoder BitRate setting to Default
2010-06-12 14:56:24.592865 [(6)]: analog: Encoder BitRate Min 0 Max 6000000 Delta 1
2010-06-12 14:56:24.921884 [(6)]: analog: Encoder BitRate set to 2000000
2010-06-12 14:56:24.926884 [(6)]: analog:SetTimeShiftFileName:F:\TV Recordings\Timeshift\live8-0.ts
2010-06-12 14:56:24.931884 [(6)]: analog:SetTimeShiftFileName: uses .ts
2010-06-12 14:56:25.056892 [(6)]: card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo
2010-06-12 14:56:27.963058 [(12)]: PID seen - type = Audio
2010-06-12 14:56:27.970058 [(12)]: audioVideoEventHandler Audio
2010-06-12 14:56:27.976058 [(12)]: PID seen - type = Video
2010-06-12 14:56:27.981059 [(12)]: audioVideoEventHandler Video
2010-06-12 14:56:27.987059 [(6)]: card: WaitForTimeShiftFile - video and audio are seen after 2.9291676 seconds
2010-06-12 14:56:28.195071 [(6)]: user:{751484f1-316c-425a-b85c-f022f6812312} card:8 sub:0 add stream:F:\TV Recordings\Timeshift\live8-0.ts.tsbuffer
2010-06-12 14:56:28.201071 [(6)]: RTSP: start streamer
2010-06-12 14:56:28.207072 [RTSP Streaming thread(14)]: RTSP: Streamer started
2010-06-12 14:56:28.212072 [(6)]: RTSP: add stream stream8.0 file:F:\TV Recordings\Timeshift\live8-0.ts.tsbuffer
2010-06-12 14:56:28.245074 [(6)]: Controller: StartTimeShifting started on card:8 to F:\TV Recordings\Timeshift\live8-0.ts.tsbuffer
2010-06-12 14:56:28.376081 [Channel state thread(13)]: Controller: DoSetChannelStates for 80 channels
2010-06-12 14:56:29.939171 [Channel state thread(13)]: ChannelStates.DoSetChannelStates took 1563 msec
Stream status page also show the card is streaming, but I dont see it on the phone :oops:
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Can you post your config.xml
Sorry, I should have posted it first:
<appconfig>
<transcoders>
<transcoder name="SmoothStream" usetranscoding="1" filename="&quot;G:/Program Files/iPiMP/Utilities/ffmpeg/ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;G:/Program Files/iPiMP/Utilities/ffmpeg/ffpresets/libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://<pc name>:<port>/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />
</transcoders>
</appconfig>
I am using my pc's netbios name for <pc name> and the port iPimp is listening on for <port>.
 

RickDeckard

Portal Member
October 19, 2006
31
2
Home Country
Belgium Belgium
I get the same error "The requested URL /SmoothStream/live.m3u8 was not found on this server." as reported above.

my config.xml:
Code:
<appconfig>
  <transcoders>
    <transcoder name="SmoothStream" usetranscoding="1" filename="&quot;C:\Program Files (x86)\iPiMP\Utilities\ffmpeg\ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;C:\Program Files (x86)\iPiMP\Utilities\ffmpeg\ffpresets\libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://<URL>:80/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />
  </transcoders>
</appconfig>

Using iPimp 5 for MP 1.0.2 on a previously installed Apache instance.

Some other findings that may help in pinning this down:
  • timeshifting starts correctly - I can see the timeshifting taking place in the TV Server configuration tool
  • after timeshifting starts ffmpeg appears briefly in Windows taskmanager for a few seconds, but then quits
  • in the /SmoothStreaming folder, a file called Channel.txt is created
  • I do not see any intermediate files being created in the folder I have designated for storing transcoded files, I assume this is expected behaviour? (Where does iPimp actually store the timeshifting and transcoding buffers?)
 

cheezey

Community Plugin Dev
August 26, 2004
1,559
312
57
West Yorks, UK
Home Country
United Kingdom United Kingdom
Can you post your config.xml
Sorry, I should have posted it first:
<appconfig>
<transcoders>
<transcoder name="SmoothStream" usetranscoding="1" filename="&quot;G:/Program Files/iPiMP/Utilities/ffmpeg/ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;G:/Program Files/iPiMP/Utilities/ffmpeg/ffpresets/libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://<pc name>:<port>/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />
</transcoders>
</appconfig>
I am using my pc's netbios name for <pc name> and the port iPimp is listening on for <port>.

Sorry - iPiMP installs 2 versions of ffmpeg, the original used for manual or scheduled transcoding and a patched version for Smooth Streaming. You've selected the unpatched on, so edit your config.xml with this:
Code:
<transcoder name="SmoothStream" usetranscoding="1" filename="&quot;G:/Program Files/iPiMP/Utilities/ffmpeg_patch/ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;G:/Program Files/iPiMP/Utilities/ffmpeg_patch/ffpresets/libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://<pc name>:<port>/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />

I will be tidying this up so that only one version of ffmpeg is deployed in a future version.
 

cheezey

Community Plugin Dev
August 26, 2004
1,559
312
57
West Yorks, UK
Home Country
United Kingdom United Kingdom
I get the same error "The requested URL /SmoothStream/live.m3u8 was not found on this server." as reported above.

my config.xml:
Code:
<appconfig>
  <transcoders>
    <transcoder name="SmoothStream" usetranscoding="1" filename="&quot;C:\Program Files (x86)\iPiMP\Utilities\ffmpeg\ffmpeg.exe&quot;" args="-i - -threads 0 -re -vcodec libx264 -fpre &quot;C:\Program Files (x86)\iPiMP\Utilities\ffmpeg\ffpresets\libx264-iPiMP.ffpreset&quot; -b 256k -s 420x272 -acodec libfaac -ac 2 -ab 64k -ar 48000 -ac 2 -async 2 http://<URL>:80/SmoothStream/live.ism?stream_id=live-256-64k.ismv" inputmethod="2" outputmethod="4" />
  </transcoders>
</appconfig>

Using iPimp 5 for MP 1.0.2 on a previously installed Apache instance.

Some other findings that may help in pinning this down:
  • timeshifting starts correctly - I can see the timeshifting taking place in the TV Server configuration tool
  • after timeshifting starts ffmpeg appears briefly in Windows taskmanager for a few seconds, but then quits
  • in the /SmoothStreaming folder, a file called Channel.txt is created
  • I do not see any intermediate files being created in the folder I have designated for storing transcoded files, I assume this is expected behaviour? (Where does iPimp actually store the timeshifting and transcoding buffers?)

See the post above about 2 versions of ffmpeg.

For info - the Smooth Streaming files will appear in the same folder as Channel.txt
 

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Live TV streaming

    @cheezy
    which bitrates are used for livestream? Want to check if my local upload speed is high enough.
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,559
    312
    57
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    Re: AW: Live TV streaming

    The default is 256k video and 64k audio. Those are defined in config.xml so can easily be edited.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Live TV streaming

    mhm that must be OK i've 923 kBit/s upload speed but it is only working fine with WLAN :-( with UMTS video player is rebuffering every 20 or 30s
     

    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