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,560
312
55
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,560
312
55
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,560
    312
    55
    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

    I need to try MadVR, I hope my Intel NAC can manage it.
    I need to try MadVR, I hope my Intel NAC can manage it.
    Remember PAL DVDs of US movies and TV Shows, and how they were converted to 25 fps thus introducing a "smurf lite" pitch on the...
    Replies
    2
    Views
    343
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live stream from server to MP. If anyone has a similar problem - disable all old plugins and then enable one after another :-)
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live...
    After using MP for more than 10 years with regularly updates - this is the first time that after an update MP is not working...
    Replies
    3
    Views
    1K
    Hi, First off: there are some issues with the latest Mediaportal (32bits vs 64bits), so that is one of the issues you're stumbling with. If you take the previous version (1.31) it should work as expected. For IPTV there is also a different option (with different pros and cons): Onlinevideos. I'm using that sometimes for my IPTV as...
    Hi, First off: there are some issues with the latest Mediaportal (32bits vs 64bits), so that is one of the issues you're stumbling...
    Hi I am trying to play a m3u file from my IPTV provider, but when I try to install the TV part of Media Portal v1.3.2 I get an...
    Replies
    1
    Views
    662
    Since updating the BIOS and the audio driver two weeks ago, I have not experienced the above problem again.
    Since updating the BIOS and the audio driver two weeks ago, I have not experienced the above problem again.
    Occasionally if I pause Live TV then resume it later, the video keeps playing but the audio is stuck in a half second loop. As of...
    Replies
    4
    Views
    901
    Please read here how to report problems.
    Please read here how to report problems.
    Before I start with the problem in detail, please confirm this is the correct thread for this issue. Server and client worked until...
    Replies
    1
    Views
    744
    Top Bottom