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".
DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already?
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #241
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #242
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #243
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
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
Posted 19 November 2013 - 18:57
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
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #246
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #247
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #248
Posted 19 November 2013 - 21:44
something like the following?Isn't it possible to make this line more simpler?
uri = g_strdup_printf ("%s", m_ref.path.substr(0,last).c_str())
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.
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #249
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #250
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #251
Posted 19 November 2013 - 23:22
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #252
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #253
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #254
Posted 20 November 2013 - 00:42
--- 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 ) {
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #255
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #256
Posted 20 November 2013 - 01:09
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #257
Posted 20 November 2013 - 01:31
When using VU+ player there is no buffer in the logs.
So somehow buffer is leaking out.
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #258
Posted 20 November 2013 - 07:16
Attached Files
Edited by athoik, 20 November 2013 - 07:17.
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: DMM 3.2.0 IPTV in Bouquets - OpenPLI added this already? #259
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
7 user(s) are reading this topic
0 members, 7 guests, 0 anonymous users