Author Topic: Would like to apply Freebox patch to libmyth under LMCE...  (Read 11991 times)

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Would like to apply Freebox patch to libmyth under LMCE...
« on: July 12, 2008, 11:50:54 am »
Hi,

I'm trying to setup demo system, where I could watch TV from our IPTV provider that sends udp streams to settopbox. Mythtv has plugin called Freebox, that has this feature, but in current LMCE's version doesn't support UDP streams (only rtsp)...

Patch that fixes this is here :
http://svn.mythtv.org/trac/ticket/2152

Daniel suggested to compile 0.21, but I guess this is overhead for my knowledge... I'd kindly ask for sentence or two, how to compile only Freebox relevant part of mythtv under LMCE ?

Thanks in advance,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

jimbill3

  • Making baby steps
  • Posts: 2
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #1 on: August 04, 2008, 06:26:54 pm »
I'm also struggling to get this patch applied to FreeBox in LinuxMCE.  Can this even be done without recompiling LinuxMCE?  Any assistance would be much appreciated...

Thanks

Jim

domotiqa.com

  • Guru
  • ****
  • Posts: 206
    • View Profile
    • home automation
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #2 on: August 05, 2008, 01:12:49 pm »
did you try to use the freebox as tuner in mythtvbackend setup ? then you can import the playlist!
What best with the patch ?
http://www.domotiqa.com - home automation

jimbill3

  • Making baby steps
  • Posts: 2
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #3 on: August 06, 2008, 10:24:07 pm »
Yes - and the channels are imported and I even got the listings working (Schedules Direct).  However, FreeBox only handles RTSP out of the box, and my ISP provides UDP streams.  Hence, the patch listed by bulek.

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #4 on: August 20, 2008, 03:04:40 pm »
Yes - and the channels are imported and I even got the listings working (Schedules Direct).  However, FreeBox only handles RTSP out of the box, and my ISP provides UDP streams.  Hence, the patch listed by bulek.
Hi,

that's exactly my problem too...

I got hint from Daniel, that this patch is a mess and there are two ways dealing with that :
- try 0.21
- or take a look at 0.21 branch and take out only freebox udp part. He said that things are much better organized there...

I'm not yet sure what I'll try when I'll get home at the end of August...

HTH,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

domotiqa.com

  • Guru
  • ****
  • Posts: 206
    • View Profile
    • home automation
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #5 on: September 14, 2008, 06:41:41 pm »
I use the freebox stream in lmce0710 without any problem !!
http://www.domotiqa.com - home automation

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #6 on: September 14, 2008, 08:25:20 pm »
I use the freebox stream in lmce0710 without any problem !!
Hi,

thanks for info. Do you by any chance know what type of stream is it?
I'm trying to catch UDP MPEG2 stream in my country and this is only achievable with certain patches to freebox plugin (I guess mythtv 0.21 has them included)...

Regards,

Bulek.


Thanks in advance,

regards,

Bulek.

domotiqa.com

  • Guru
  • ****
  • Posts: 206
    • View Profile
    • home automation
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #7 on: September 15, 2008, 10:58:08 am »
it's udp protocol for rstp stream !
http://www.domotiqa.com - home automation

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #8 on: September 15, 2008, 12:45:34 pm »
it's udp protocol for rstp stream !

Hmm, that should work for me... I've tried but nothing happened, then I probably gave up too quickly.. Do you use stock LMCE version of mythtv ?

Can you please post more info on how you setup Mythtv - specially what you put as URL... Are there any test streams to try ?

Thanks in advance,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

domotiqa.com

  • Guru
  • ****
  • Posts: 206
    • View Profile
    • home automation
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #9 on: September 15, 2008, 02:03:08 pm »
IN FACT I just use freebox tuner with url(playlist):
http://mafreebox.freebox.fr/freeboxtv/playlist.m3

Then search for channel then that's it !!

in fact the core ask with tcp protocol, and freebox router reply with udp protocol !

In my case I had a problem that was that the freebox router need to be dhcp server to work !!
So I setup the freebox as dhcp server, but only for one adress (the core that as a freebox router static ip). I redirected some port too (I guess I don't have to)!
http://www.domotiqa.com - home automation

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #10 on: September 15, 2008, 10:44:13 pm »
IN FACT I just use freebox tuner with url(playlist):
http://mafreebox.freebox.fr/freeboxtv/playlist.m3

Then search for channel then that's it !!

in fact the core ask with tcp protocol, and freebox router reply with udp protocol !

In my case I had a problem that was that the freebox router need to be dhcp server to work !!
So I setup the freebox as dhcp server, but only for one adress (the core that as a freebox router static ip). I redirected some port too (I guess I don't have to)!

Hi,

it seems I cannot access playlist - probably it is limited to certain IPs... Can you just post or pm me an example line from it ?

Example line from my playlist (have covered real ip) :
Code: [Select]
#EXTM3U
#EXTINF:0,1 - Program Name
udp://@x.x.x.x:5002

Thanks in advance,

Bulek.
« Last Edit: September 16, 2008, 08:47:26 am by bulek »
Thanks in advance,

regards,

Bulek.

domotiqa.com

  • Guru
  • ****
  • Posts: 206
    • View Profile
    • home automation
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #11 on: September 17, 2008, 08:59:20 am »
playlist.m3u

Code: [Select]
#EXTM3U
#EXTINF:0,2 - France 2
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201
#EXTINF:0,3 - France 3 national
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=202
#EXTINF:0,5 - France 5
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=203
#EXTINF:0,7 - Arte
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=204
#EXTINF:0,8 - Direct 8
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=372
#EXTINF:0,10 - TMC
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=497
#EXTINF:0,11 - NT1
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=374
#EXTINF:0,12 - NRJ 12 5.1
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=381
#EXTINF:0,12 - NRJ 12 NRJ 12
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=666
#EXTINF:0,12 - NRJ 12 Stéréo
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=382
#EXTINF:0,13 - La Chaîne Parlementaire
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=226
#EXTINF:0,14 - France 4
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=376
#EXTINF:0,15 - BFM TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=400
#EXTINF:0,16 - i> TELE
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=679
#EXTINF:0,17 - Virgin 17
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=678
#EXTINF:0,19 - Paris Première
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=213
#EXTINF:0,20 - TEVA
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=404
#EXTINF:0,21 - RTL9
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=210
#EXTINF:0,22 - AB 1
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=211
#EXTINF:0,35 - Action
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=242
#EXTINF:0,36 - Ciné Polar
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=244
#EXTINF:0,37 - Ciné FX
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=243
#EXTINF:0,38 - TCM
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=684
#EXTINF:0,45 - NRJ 12 HD
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=617
#EXTINF:0,46 - National Geographic HD
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=214
#EXTINF:0,48 - France 2 HD
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=691
#EXTINF:0,50 - MCM
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=621
#EXTINF:0,51 - MCM TOP
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=622
#EXTINF:0,52 - MCM POP
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=623
#EXTINF:0,53 - MTV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=219
#EXTINF:0,54 - MTV 2
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=229
#EXTINF:0,55 - MTV Dance
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=230
#EXTINF:0,56 - MTV Hits
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=231
#EXTINF:0,57 - VH1
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=233
#EXTINF:0,58 - VH1 Classic
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=232
#EXTINF:0,59 - NRJ Hits
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=620
#EXTINF:0,60 - M6 Music Hits
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=430
#EXTINF:0,61 - M6 Music Rock
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=431
#EXTINF:0,62 - M6 Music Black
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=432
#EXTINF:0,63 - Fun TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=433
#EXTINF:0,64 - Trace TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=228
#EXTINF:0,65 - Virgin 17
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=416
#EXTINF:0,67 - Télé Mélody
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=237
#EXTINF:0,68 - Mezzo
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=265
#EXTINF:0,69 - C Music
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=683
#EXTINF:0,71 - Mizik Tropical
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=468
#EXTINF:0,80 - BFM TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=418
#EXTINF:0,81 - i>TELE
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=417
#EXTINF:0,82 - Euronews
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=205
#EXTINF:0,83 - Bloomberg TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=207
#EXTINF:0,85 - Al Jazeera International
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=494
#EXTINF:0,86 - BBC World News
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=240
#EXTINF:0,87 - Sky News International
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=355
#EXTINF:0,88 - Guysen TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=675
#EXTINF:0,89 - CNBC
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=208
#EXTINF:0,90 - LCP - Assemblée Nationale 24h/24
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=688
#EXTINF:0,91 - Public Sénat
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=692
#EXTINF:0,116 - Mangas
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=253
#EXTINF:0,122 - Game One
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=220
#EXTINF:0,123 - Nolife
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=658
#EXTINF:0,125 - Fashion TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=221
#EXTINF:0,126 - F Men
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=454
#EXTINF:0,128 - Cash TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=492
#EXTINF:0,141 - Equidia
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=212
#EXTINF:0,142 - ESPN Classic Sport
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=264
#EXTINF:0,143 - AB Moteurs
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=222
#EXTINF:0,144 - Motors TV
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=216
#EXTINF:0,145 - Poker Channel

......
......

rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110080
#EXTINF:0,10081 - France Vivace
#EXTVLCOPT:ts-es-id-pid
#EXTVLCOPT:no-video
#EXTVLCOPT:audio-track-id=1005
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110081
#EXTINF:0,10082 - Notre-Dame Radio
#EXTVLCOPT:ts-es-id-pid
#EXTVLCOPT:no-video
#EXTVLCOPT:audio-track-id=1002
rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=110082

file link:
http://www.zshare.net/download/1892148207108a17/
« Last Edit: September 17, 2008, 09:02:08 am by domotiqa.com »
http://www.domotiqa.com - home automation

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #12 on: September 23, 2008, 02:34:57 pm »
Hi,

Domotiqa, thanks for help. I got it running somehow, but now have problems with xmltv... I have empty list of program guide, but have channels from playlist listed...

Let me explain:
- we have playlist for freebox channels...

- when we retrieve xmltv program data for those channels, I guess there must be some field or info that connects xmltv ID or name to channel name in playlist... Does anyone know the trick ? It would be also of great help, if Domotiqa can post some excerpts from xml document for program data, so I can see where this connection comes up...


Thanks in advance,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

domotiqa.com

  • Guru
  • ****
  • Posts: 206
    • View Profile
    • home automation
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #13 on: September 23, 2008, 11:26:55 pm »
hy,
I'll be please to have a look to it! Let me know what you want exactly!

xml document for program data, so I can see where this connection comes up:
In fact Ididn't setup , yet , the guide from xmltv, I had problem in the past with it and now ! You mean xmltv grabber !
I guess I have to update it ( tv_grab_fr script) and try again !

I'll dig into it
http://www.domotiqa.com - home automation

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Would like to apply Freebox patch to libmyth under LMCE...
« Reply #14 on: September 23, 2008, 11:53:21 pm »
hy,
I'll be please to have a look to it! Let me know what you want exactly!

xml document for program data, so I can see where this connection comes up:
In fact Ididn't setup , yet , the guide from xmltv, I had problem in the past with it and now ! You mean xmltv grabber !
I guess I have to update it ( tv_grab_fr script) and try again !

I'll dig into it
Hi,

what I'm trying to figure out is this :
1. we have playlist with channels :
Quote
#EXTM3U
#EXTINF:0,1 - Channel 1
udp://@x.x.x.x:5002
#EXTINF:0,2 - Channel 2
udp://@x.x.x.x:5002

and then we use xmltv grabber that will import also channels with their IDs and data about shows.... Something like this :
Quote
<tv>
  <channel id="bbcprime.tv.gonix.net">
    <display-name lang="hr">BBC Prime</display-name>
   
    <icon src="http://www.gonix.net/channellogos/bbcprime.tv.gonix.net.png"/>
  </channel>

and show data :

Quote
  <programme start="20080923020000 +0200" stop="20080923023000 +0200" channel="bbcprime.tv.gonix.net">
    <title lang="en">CHANGING ROOMS</title>
    <sub-title lang="en">Essex</sub-title>
    <desc lang="en">The interior design challenge show, presented by Laurence Llewelyn-Bowen, in which two sets of neighbours transform a room in each other's home. Laura McCree &amp; Graham Wynne revamp rooms in Essex homes.</desc>
    <category lang="en">series</category>
    <episode-num system="xmltv_ns">. 4 .</episode-num>
    <episode-num system="onscreen">epizoda 5</episode-num>
    <rating system="MPAA">
      <value>G</value>
    </rating>
  </programme>

I think it's impossible for mythtv to associate UDP stream with certain channel in xml if it needs recording or playing.... There must be some information field that must have same data, so channels in xmltv can be associated with informations in channel m3u list... Should the name of channel be the same and where? Any hint or any example from working mythtv setup ?


Thanks in advance,

regards,

Bulek.
« Last Edit: September 23, 2008, 11:56:48 pm by bulek »
Thanks in advance,

regards,

Bulek.