Jump to content


Photo

DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already?


  • Please log in to reply
311 replies to this topic

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #241 malakudi

  • Senior Member
  • 1,449 posts

+69
Good

Posted 9 September 2013 - 14:14

Is it possible to have imported EPG (xmltv-import) for 4097:* servicerefs? In plugin.py the fake recording fails, so we get the "Invalid serviceref string".



Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #242 coolworm

  • Member
  • 1 posts

0
Neutral

Posted 3 October 2013 - 18:33

hello,

 

i have openpli oe1.6 and i got hiccups with 1:0:1:xxx:xxx:xxx:xxx:http3%a//site/udp/100.100.100.100:1234?key=##########

if i use 4097 after few second i have problem with audio sync....

 

is there any solution ?

 

thanks



Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #243 kerven

  • Senior Member
  • 52 posts

+1
Neutral

Posted 8 November 2013 - 00:46

for french "free" iptv     ,  new userbouquet.tv      by  playlist.m3u

 

> make file by example : > free_en_userbouquet.sh   > dcc ftp >  usr/bin > attributes = 755 

 

telnet :  free_en_userbouquet.sh &

 

#!/bin/sh
 
R_M3U="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u"
 
F_IN=playlist.m3u
 F_NAME=playlist.name
 
F_OUT_ALL=/etc/enigma2/userbouquet.FreeIPTV.tv
 F_OUT_LD=/etc/enigma2/userbouquet.FreeIPTV_LD.tv
 F_OUT_SD=/etc/enigma2/userbouquet.FreeIPTV_SD.tv
 F_OUT_HD=/etc/enigma2/userbouquet.FreeIPTV_HD.tv
 F_OUT_RD=/etc/enigma2/userbouquet.FreeIPTV_radio.radio
 
echo "getting remote file..."
 # get remote-file
 wget "$R_M3U" -O $F_IN
 
echo "parsing channel names..."
 #get channel names
 grep EXTINF $F_IN | sed -e 's/.*- //' > $F_NAME
 
echo "reading URLs and replacing colon..."
 # read urls and replace ":"
 URLS=`grep rtsp $F_IN | sed -e 's/:/%3a/'`
 
echo "go trough urls and creating bouqet..."
 # go trough urls and create bouqet
 echo "#NAME FreeIPTV ALL" > $F_OUT_ALL
 CNT=0
 for u in $URLS; do
 CNT=$(($CNT + 1))
 NAM=`head -n $CNT $F_NAME | tail -1`
 SRV=` printf "%x" $(echo $u | sed -e 's/.*service=//' -e 's/&.*//' -e 's/\l\n//')`
 echo "#SERVICE 4097:0:1:$SRV:0:0:0:0:0:0:$u:$NAM" >> $F_OUT_ALL
 done
 
echo "seperating stream-types..."
 ### seperate stream-types
 echo "#NAME FreeIPTV LD" > $F_OUT_LD
 grep "flavour=ld" $F_OUT_ALL >> $F_OUT_LD
 
echo "#NAME FreeIPTV SD" > $F_OUT_SD
 grep "flavour=sd" $F_OUT_ALL >> $F_OUT_SD
 
echo "#NAME FreeIPTV HD" > $F_OUT_HD
 grep "flavour=hd" $F_OUT_ALL >> $F_OUT_HD
 
echo "#NAME FreeIPTV Radio" > $F_OUT_RD
 grep -v "flavour" $F_OUT_ALL | grep -v ^#NAME >> $F_OUT_RD
 
rm $F_NAME
 rm $F_IN
echo "c'est fait..."
echo "rajoute  à la main en /etc/enigma2/bouquets.tv les bouquets ci dessous"
echo "   "
echo "#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.FreeIPTV.tv" ORDER BY bouquet"
echo "#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.FreeIPTV_HD.tv" ORDER BY bouquet
echo "#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.FreeIPTV_LD.tv" ORDER BY bouquet
echo "#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.FreeIPTV_SD.tv" ORDER BY bouquet"

must work also for "orange" playlist.m3u  (even better if card = 0333) , change  path in second line. 

-------

 

if someone know for to add 4  services in /etc/enigma2/bouquets.tv   by vi or oher ..   it's welcome .. 

 

----

 

example of service created 

#SERVICE 4097:0:1:178:0:0:0:0:0:0:rtsp%3a//mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=376&flavour=hd:France 4 HD

work perfect .. now on  2.1 or 3.0  !


Edited by kerven, 8 November 2013 - 00:50.


Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #244 pryggi

  • Senior Member
  • 48 posts

0
Neutral

Posted 19 November 2013 - 00:50

Yeah, the buffer=1 or 2 does not work on OpenPLI3. Here is enigma2 log while zapping between channels with buffer=1 defined and not defined. There is no picture/sound with buffer=1. Unfortunately without buffering streaming freezes frequently.

 

action ->  InfobarChannelSelection zapDown
playing 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//194.36.162.51%3a80/live/etv buffer=1:ETV stream buf
eServiceMP3::stop rtsp://194.36.162.51:80/live/etv
eServiceMP3::destruct!
eServiceMP3::construct!
getResolvedKey config.mediaplayer.extraHeaders failed !! (Typo??)
eServiceMP3::playbin uri=rtsp://194.36.162.51:80/live/etv buffer=1
eServiceMP3::starting pipeline
resolved to PLAY
gst_element_query_position failed in getPlayPosition
resolved to PLAY
gst_element_query_position failed in getPlayPosition
resolved to PLAY
gst_element_query_position failed in getPlayPosition
new service started! trying to download cuts!
download failed, no cuesheet interface
RemovePopup, id = ZapError
eServiceMP3::state transition NULL -> READY
eServiceMP3::state transition READY -> PAUSED
dont apply ac3 delay when no video is running!
dont apply pcm delay when no video is running!
gst_element_query_position failed in getPlayPosition
Gstreamer error: Could not read from resource. (9) from source
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
action ->  InfobarChannelSelection zapUp
playing 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//194.36.162.51%3a80/live/etv:ETV stream
eServiceMP3::stop rtsp://194.36.162.51:80/live/etv buffer=1
eServiceMP3::destruct!
eServiceMP3::construct!
getResolvedKey config.mediaplayer.extraHeaders failed !! (Typo??)
eServiceMP3::playbin uri=rtsp://194.36.162.51:80/live/etv
eServiceMP3::starting pipeline
resolved to PLAY
gst_element_query_position failed in getPlayPosition
resolved to PLAY
gst_element_query_position failed in getPlayPosition
resolved to PLAY
gst_element_query_position failed in getPlayPosition
new service started! trying to download cuts!
download failed, no cuesheet interface
RemovePopup, id = ZapError
eServiceMP3::state transition NULL -> READY
eServiceMP3::state transition READY -> PAUSED
dont apply ac3 delay when no video is running!
dont apply pcm delay when no video is running!
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
gst_element_query_position failed in getPlayPosition
eServiceMP3::async-done - 1 video, 1 audio, 0 subtitle
AUDIO STRUCT=audio/mpeg
eServiceMP3::audio stream=0 codec=audio/mpeg language=und
eServiceMP3::getSubtitleList finished
eServiceMP3::state transition PAUSED -> PLAYING

 

 

 

 



Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #245 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 November 2013 - 18:57

Hello,


When we are using buffer=1 or buffer=2 flag to notify enigma to buffer
stream results we are not removing buffer flag from uri.

This might cause issues with some stream servers, so remove it from uri.
--- a/lib/service/servicemp3.cpp
+++ b/lib/service/servicemp3.cpp
@@ -464,6 +464,11 @@ eServiceMP3::eServiceMP3(eServiceReference ref)
 			}
 			m_use_prefillbuffer = true;
 		}
+		if (m_use_prefillbuffer)
+		{
+			size_t last = m_ref.path.rfind(' ');
+			uri = g_strdup_printf ("%s", m_ref.path.substr(0,last).c_str())
+		}
 	}
 	else if ( m_sourceinfo.containertype == ctCDA )
 	{

Attached Files


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #246 kocus37

  • Senior Member
  • 121 posts

+4
Neutral

Posted 19 November 2013 - 21:33

Hello,

 

Is it possible to change and add parental control on services streams, We can do in dvb-s or dvb-s2 services but not selectable on services streams, it would be great if openpli could add this.

 

Thanks 


OpenPli 4.0 - Vu+Solo2 - 30W Hispasat


Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #247 littlesat

  • PLi® Core member
  • 57,213 posts

+700
Excellent

Posted 19 November 2013 - 21:37

Isn't it possible to make this line more simpler?

 

uri = g_strdup_printf ("%s", m_ref.path.substr(0,last).c_str())


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #248 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 November 2013 - 21:44

Isn't it possible to make this line more simpler?
 
uri = g_strdup_printf ("%s", m_ref.path.substr(0,last).c_str())

something like the following?
std::string tmpuri = m_ref.path.substr(0,last)
uri = g_strdup_printf ("%s", tmpuri.c_str())

Edited by athoik, 19 November 2013 - 21:44.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #249 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 19 November 2013 - 22:59

this introduces a memleak btw

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #250 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 November 2013 - 23:06

The tmpuri or the uri?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #251 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 November 2013 - 23:22

gchar is typedef char so its the uri. Adding an else will fix that.. tmpuri is ok in order to make it simpler?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #252 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 20 November 2013 - 00:07

Only do a
g_free(uri);
before assigning a new value to uri.

@pieterg: Am I right?
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #253 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 November 2013 - 00:22

Yes, but it would be better to avoid the first strdup

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #254 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 20 November 2013 - 00:42

Like this i think there is no memleack.

--- a/lib/service/servicemp3.cpp
+++ b/lib/service/servicemp3.cpp
@@ -438,7 +438,6 @@ eServiceMP3::eServiceMP3(eServiceReference ref)
 
 	if ( m_sourceinfo.is_streaming )
 	{
-		uri = g_strdup_printf ("%s", filename);
 		m_streamingsrc_timeout = eTimer::create(eApp);;
 		CONNECT(m_streamingsrc_timeout->timeout, eServiceMP3::sourceTimeout);
 
@@ -464,6 +463,16 @@ eServiceMP3::eServiceMP3(eServiceReference ref)
 			}
 			m_use_prefillbuffer = true;
 		}
+		if (m_use_prefillbuffer)
+		{
+			size_t last = m_ref.path.rfind(' ');
+			std::string tmpuri = m_ref.path.substr(0,last);
+			uri = g_strdup_printf ("%s", tmpuri.c_str());
+		}
+		else
+		{
+			uri = g_strdup_printf ("%s", filename);
+		}
 	}
 	else if ( m_sourceinfo.containertype == ctCDA )
 	{

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #255 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 November 2013 - 01:03

But are you sure you are fixing an actual issue?
I think gstreamer is ignoring everything behind the first space in the uri?

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #256 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 20 November 2013 - 01:09

Point an http stream with buffer=1 into a web server. If buffer found on the web server logs then it is not ignoring after space.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #257 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 20 November 2013 - 01:31

Buffer=1 is there when you are using OpenWebIf and remote control.

When using VU+ player there is no buffer in the logs.

So somehow buffer is leaking out.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #258 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 20 November 2013 - 07:16

Here is the patch that i forgot to include on post #254

Attached Files


Edited by athoik, 20 November 2013 - 07:17.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #259 malakudi

  • Senior Member
  • 1,449 posts

+69
Good

Posted 20 November 2013 - 09:26

I have reported this one year ago in posts #181 and #182 of current thread. I don't know if buffer=1 or buffer=2 should actually trigger something in gstreamer, but as it is now, it is just requested as part of the URL.

 

I think athoik's patch is correct, since it detects buffer=X existance, sets m_use_prefillbuffer to true and strips buffer=X from requested URL

 

edit: It should also be documented somewhere that buffer=1 assigns memory buffer and buffer=2 assigns HDD buffer. I always thought that this value was related to seconds to buffer. Just saw what it really is in servicemp3.cpp


Edited by malakudi, 20 November 2013 - 09:33.


Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #260 littlesat

  • PLi® Core member
  • 57,213 posts

+700
Excellent

Posted 20 November 2013 - 09:49

Why making it so complicated when you just want to remove buffer=X... from the filename and/or uri string.


Edited by littlesat, 20 November 2013 - 09:50.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users