[7. June 2013] Youporn available now | [19. April 2013] A-400 Advanced Network Setup | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread:
Post Reply 
[200] [Apps] NMT CSI IPTV Player
03-31-2012, 03:32 PM (This post was last modified: 12-14-2012 06:05 PM by romanr.)
Post: #1
[Apps] NMT CSI IPTV Player
IPTV player v0.8.5

Tested on 200 series only, please try on your hardware and report.

Supports m3u/xspf playlists, xmltv programme listings.
Supports many encodings.
Channel images are taken out of xspf playlists or xmltv listings.
Has udpxy (multicast proxy) service integrated.
Uses Community Software Installer (CSI).

Download
Screenshots

Channels and programme are in cyrrillic because I use russian playlists and xmltv listings. Sure, you may use playlists and listings in your language.
[Image: tn_1.jpg]
[Image: tn_2.jpg]
[Image: tn_3.jpg]
[Image: tn_4.jpg]
[Image: tn_5.jpg]
[Image: tn_8.png]
[Image: tn_7.png]
[Image: tn_6.png]
[Image: tn_9.png]
[Image: tn_10.png]

Changelog

v0.8.5
* Added time offset to XMLTV listings

v0.8.4
* Fixed background updates by schedule

v0.8.3
* A workaround is implemented for 100-row table limitation.
If you have more than 100 channels you now see them all.
Formatting may flaw though.
* Fixed first time update (missing directories).

v0.8.2
* Fixed udp://@ scheme.
* Fixed SQL injections (shame on me).

v0.8.1
* Added Fix urls settings option.
* Fixed first time update (failure due to log absence).

v0.7.8
Public release.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 3 users say Thank You to romanr for this post
04-01-2012, 09:22 AM
Post: #2
Support in Russian
Russian support thread
Find all posts by this user
Add Thank You Quote this message in a reply
04-01-2012, 06:02 PM (This post was last modified: 04-01-2012 06:08 PM by VYP.)
Post: #3
XMLTV listing parsing failed
First of all thank for your effort in creating this app.

I'm getting the following error when updating my setup:
PHP Code:
Sun Apr  1 19:53:18 EEST 2012

Parsing m3u playlist Gala TV
Playlist Gala TV
:
113 channels (LTV1,LNK,........ skipped ....)
Playlist Gala TV parsed

Parsing XMLTV listing Gala TV programa
XMLTV id 
1 added
Exception
SQLSTATE[HY000]: General error1 unrecognized token"4th"
XMLTV listing Gala TV programa parsing FAILED
FAIL 

I'm using a xmltv file that is not compressed and is on my PCH A210.
I'm getting a "Could not play" error when trying to watch a channel.

I think the problem is that you make hyperlinks like this:
Code:
<a href="udp://@239.2.3.11:1234" vod="">LTV1</a>
But there shouldn't be "@" in that href.

Correct me if I'm wrong.
Find all posts by this user
Add Thank You Quote this message in a reply
04-02-2012, 07:47 AM
Post: #4
RE: XMLTV listing parsing failed
(04-01-2012 06:02 PM)VYP Wrote:  I'm using a xmltv file that is not compressed and is on my PCH A210.
I'm getting a "Could not play" error when trying to watch a channel.
I think the problem is that you make hyperlinks like this:
Code:
<a href="udp://@239.2.3.11:1234" vod="">LTV1</a>
But there shouldn't be "@" in that href.
Yes, correct, there shouldn't be any "@".
Please, update to the newer version (v0.8.1, I've issued it yesterday) and enable "Fix urls" option in the settings.
Also, share please your playlist and xmltv - I'll fix the issue.
Find all posts by this user
Add Thank You Quote this message in a reply
04-02-2012, 07:13 PM
Post: #5
RE: XMLTV listing parsing failed
(04-02-2012 07:47 AM)romanr Wrote:  Yes, correct, there shouldn't be any "@".
Please, update to the newer version (v0.8.1, I've issued it yesterday) and enable "Fix urls" option in the settings.
Also, share please your playlist and xmltv - I'll fix the issue.

Installed v0.8.1 and enabled "Fix urls". Did setup update but my links remained with "@" Sad No errors in log (did a setup without xmltv file).

Here is my playlist, xmltv file and my update log with the same error.
xmltv.rar - 312.3 Kb
My xmltv file is generated by my php script so there might be some errors or some non xml characters or similar problems. But that's my guess. Hope you can identify where the problem lies.

Also did you tried udpxy running on your popcorn? It seems like its running in my case (checked with top through telnet), also it is available on my pc using vlc. But my popcorn gives that anoying "Could not play" error...
Find all posts by this user
Add Thank You Quote this message in a reply
04-02-2012, 07:32 PM
Post: #6
RE: XMLTV listing parsing failed
(04-02-2012 07:13 PM)VYP Wrote:  Installed v0.8.1 and enabled "Fix urls". Did setup update but my links remained with "@" Sad No errors in log (did a setup without xmltv file).
My appologies, this is my fault. I don't handle udp://@ links - will fix soon.

(04-02-2012 07:13 PM)VYP Wrote:  My xmltv file is generated by my php script so there might be some errors or some non xml characters or similar problems. But that's my guess. Hope you can identify where the problem lies.
Thank you, I've found the problem - my bug again Smile
There is an SQL injection, he he...
Let me fix it!

(04-02-2012 07:13 PM)VYP Wrote:  Also did you tried udpxy running on your popcorn? It seems like its running in my case (checked with top through telnet), also it is available on my pc using vlc. But my popcorn gives that anoying "Could not play" error...
Connecting to local udpxy directly is problematic. PCH issues extra HEAD request, which udpxy is unable to handle. So you may need to enable "Additional proxy" option.
But for better performance use udpxy on the router, closer to the ISP.
Find all posts by this user
Add Thank You Quote this message in a reply
04-03-2012, 06:57 AM
Post: #7
RE: XMLTV listing parsing failed
(04-02-2012 07:32 PM)romanr Wrote:  Connecting to local udpxy directly is problematic. PCH issues extra HEAD request, which udpxy is unable to handle. So you may need to enable "Additional proxy" option.
But for better performance use udpxy on the router, closer to the ISP.

I was testing local udpxy on my A210. As I mentioned before udpxy is started and is working but does not play on popcorn. Tried to use "Additional proxy" option without success. It shows the loading animation for 10-20 seconds and then hangs my unit. It also hangs my unit when "Additional proxy" option is used with udpxy running on my router.

You mentioned in russian section that you use udpxy on your router. I have a Netgear WNR3500L. I have udpxy and igmpproxy running on it. When I'm using igmpproxy my A210 shows udp multicast just fine (there are some problems with dual sound or similar but the video is always good). And starting a channel is quite fast when using udp links, usually 2-3 seconds. When I'm trying to use udpxy running on my router A210 starts showing that channel just after 10 seconds or so and then video as well as audio is distorted, it stutters there are some digital artifacts from time to time.
Could you share your experience with udpxy running on your router? Maybe I should just play with some parameters of udpxy.
Find all posts by this user
Add Thank You Quote this message in a reply
04-03-2012, 07:41 AM
Post: #8
RE: XMLTV listing parsing failed
(04-03-2012 06:57 AM)VYP Wrote:  I was testing local udpxy on my A210. As I mentioned before udpxy is started and is working but does not play on popcorn. Tried to use "Additional proxy" option without success. It shows the loading animation for 10-20 seconds and then hangs my unit. It also hangs my unit when "Additional proxy" option is used with udpxy running on my router.
Seems really nasty thing.
Which firmware do you use?
I use 02-04-110519-21-POP-411-000

(04-03-2012 06:57 AM)VYP Wrote:  You mentioned in russian section that you use udpxy on your router. I have a Netgear WNR3500L. I have udpxy and igmpproxy running on it. When I'm using igmpproxy my A210 shows udp multicast just fine (there are some problems with dual sound or similar but the video is always good). And starting a channel is quite fast when using udp links, usually 2-3 seconds.
Okay, probably this is the best mode for you.
I'll fix the links and release soon.

(04-03-2012 06:57 AM)VYP Wrote:  When I'm trying to use udpxy running on my router A210 starts showing that channel just after 10 seconds or so and then video as well as audio is distorted, it stutters there are some digital artifacts from time to time.
Could you share your experience with udpxy running on your router? Maybe I should just play with some parameters of udpxy.
udpxy is really simple tool. I specify only the port for listening and the external interface.
/opt/sbin/udpxy -p 4022 -m eth1
Sometimes I enable logging ("-v") to track the issue.
You may check the udpxy log (and send me it please) via settings page.
Find all posts by this user
Add Thank You Quote this message in a reply
04-03-2012, 07:09 PM
Post: #9
RE: XMLTV listing parsing failed
(04-03-2012 07:41 AM)romanr Wrote:  Seems really nasty thing.
Which firmware do you use?
I use 02-04-110519-21-POP-411-000
I use the same firmware.

(04-03-2012 07:41 AM)romanr Wrote:  You may check the udpxy log (and send me it please) via settings page.
Here are my udpxy logs. local_udpxy.rar - 44.4 Kb
One is with local udpxy and no additional proxy. The other is with additional proxy. This time it did not hang the unit but the video was unwatchable. Too much stuttering.
Find all posts by this user
Add Thank You Quote this message in a reply
04-03-2012, 07:27 PM (This post was last modified: 04-03-2012 07:27 PM by rabbit33.)
Post: #10
RE: [Apps] NMT CSI IPTV Player
Hello
Is it it possible to stream Video from a Dreambox ?

the http link looks like : http://10.1.1.8:8001/1:0:1:12B2:6A4:13E:820000:0:0:0
Where 10.1.1.8 is the IP of the Dreambox, 8001 the port and the channel I like to watch.

It works from a PC using VLC, but I want to know if is it possible to works with the plugin.

I try with m3u file but I got always FAILED

Thank you in advance
Find all posts by this user
Add Thank You Quote this message in a reply
04-04-2012, 08:10 AM
Post: #11
RE: [Apps] NMT CSI IPTV Player
(04-03-2012 07:27 PM)rabbit33 Wrote:  Is it it possible to stream Video from a Dreambox ?
the http link looks like : http://10.1.1.8:8001/1:0:1:12B2:6A4:13E:820000:0:0:0
It works from a PC using VLC, but I want to know if is it possible to works with the plugin.
I try with m3u file but I got always FAILED
This should be possible for sure.
Share please your m3u file.
You should disable all proxies in the Settings. Urls fix is up to you.
Find all posts by this user
Add Thank You Quote this message in a reply
04-04-2012, 07:07 PM
Post: #12
RE: [Apps] NMT CSI IPTV Player
I was thinking since you already have an IPTV player with playlist and EPG why don't you go further, i.e. recording of IPTV. What do you think about that?

I did a quick test.
I tried to record a channel on my router using udpxrec (which is the almost the same udpxy I guess). In my case the file was with some glitches every few seconds.
I found another good idea in some forum. Using wget+udpxy. I'm not sure what version of wget I tried but my result was very good. The video and audio was in perfect condition, totally playable on A210. I tried recording both local and router udpxy. Local udpxy recording had a slight delay (black video, no audio) at start but after that played just fine. I'm not an expert in wget so to stop it I just killed it in telnet Smile
Find all posts by this user
Add Thank You Quote this message in a reply
04-04-2012, 08:52 PM (This post was last modified: 04-05-2012 12:29 AM by rabbit33.)
Post: #13
RE: [Apps] NMT CSI IPTV Player
(04-04-2012 08:10 AM)romanr Wrote:  
(04-03-2012 07:27 PM)rabbit33 Wrote:  Is it it possible to stream Video from a Dreambox ?
the http link looks like : http://10.1.1.8:8001/1:0:1:12B2:6A4:13E:820000:0:0:0
It works from a PC using VLC, but I want to know if is it possible to works with the plugin.
I try with m3u file but I got always FAILED
This should be possible for sure.
Share please your m3u file.
You should disable all proxies in the Settings. Urls fix is up to you.
Thank you for answering
The update is working (I forgot to remove the empty m3u line).

But I have "Could Not Play" on the C-200 when I start to play the channel

Here is my m3u test file :
Quote:#EXTM3U
#EXTVLCOPT--http-reconnect=true
#EXTINF:-1,FR3
http://10.1.1.8:8001/1:0:1:1F48:42E:1:C00000:0:0:0:
This is the same file when I do a "Save As" to my PC from the webinterface of the Dreambox.

This file is located on my C-200 in the folder /SATA_DISK/Apps/IPTV/web/.

I have setted up a small proxy on y NAS to have some logs.
What I saw is the fact the C-200 sent HEAD to the proxy but VLC do a GET. It works with VLC on my PC through the proxy (because of the GET) but doesn't with the C-200 (HEAD)
I there a way to change to a GET http method ?
Thanks
Find all posts by this user
Add Thank You Quote this message in a reply
04-05-2012, 08:13 AM (This post was last modified: 04-05-2012 08:21 AM by romanr.)
Post: #14
RE: [Apps] NMT CSI IPTV Player
(04-04-2012 07:07 PM)VYP Wrote:  I was thinking since you already have an IPTV player with playlist and EPG why don't you go further, i.e. recording of IPTV. What do you think about that?
I tried to record a channel on my router using udpxrec (which is the almost the same udpxy I guess). Using wget+udpxy. I tried recording both local and router udpxy. Local udpxy recording had a slight delay (black video, no audio) at start but after that played just fine.
Thanks! Really good idea! At least using this technique it's possible to overcome PCH's network limitations: I may start recording to a file and playing it simultaneously. I'll try. Thanks for a useful tools!
(04-04-2012 08:52 PM)rabbit33 Wrote:  What I saw is the fact the C-200 sent HEAD to the proxy but VLC do a GET. It works with VLC on my PC through the proxy (because of the GET) but doesn't with the C-200 (HEAD)
I there a way to change to a GET http method ?
Yeah, that extra HEAD request messes the thing.
I wrote a wrapper for that: it's called "Additional proxy" in the Settings.
You may try to enable it. It throws away HEAD requests and issues only GET requests to the video source. Expect some delays. Probably I'll rewrite it in bare C.

Also, I have another idea: a HTTP transparent proxy may be used. I'll think about that.
Find all posts by this user
Add Thank You Quote this message in a reply
04-05-2012, 06:22 PM
Post: #15
RE: [Apps] NMT CSI IPTV Player
(04-05-2012 08:13 AM)romanr Wrote:  
(04-04-2012 08:52 PM)rabbit33 Wrote:  What I saw is the fact the C-200 sent HEAD to the proxy but VLC do a GET. It works with VLC on my PC through the proxy (because of the GET) but doesn't with the C-200 (HEAD)
I there a way to change to a GET http method ?
Yeah, that extra HEAD request messes the thing.
I wrote a wrapper for that: it's called "Additional proxy" in the Settings.
You may try to enable it. It throws away HEAD requests and issues only GET requests to the video source. Expect some delays. Probably I'll rewrite it in bare C.

Also, I have another idea: a HTTP transparent proxy may be used. I'll think about that.

Yes you are correct. I have activated "Additionnal proxy" in the settings and it works. I can stream from the dreambox, but there is some delay/lags and it is unwatchable.

I saw in the logs of my transparent proxy, that the GET is sent every 2 seconds while VLC do that only once. The lags/timout are the same if I try trough my proxy or directl to the Dreambox.

Here are the proxy headers :

For VLC:
Quote:2012-04-05 17:58:54: (request.c.304) fd: 9 request-len: 203
GET /1:0:1:1F48:42E:1:C00000:0:0:0: HTTP/1.1
Host: 10.1.1.1:8080
User-Agent: VLC media player - version 1.0.3 Goldeneye - © 1996-2009 the VideoLAN team
Range: bytes=0-
Icy-MetaData: 1


HTTP/1.1 200 OK
Content-Type: video/mpeg
Server: stream_enigma2
Transfer-Encoding: chunked
Date: Thu, 05 Apr 2012 15:58:54 GMT

And for the C-200 (every 2 seconds):
Quote:2012-04-05 18:06:46: (request.c.304) fd: 9 request-len: 70
GET /1:0:1:1F48:42E:1:C00000:0:0:0: HTTP/1.0
Host: 10.1.1.1:8080

HTTP/1.0 200 OK
Content-Type: video/mpeg
Server: stream_enigma2
Connection: close
Date: Thu, 05 Apr 2012 16:06:46 GMT
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Video [200/300] [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling jlauwers 1,322 140,623 06-15-2013 12:14 AM
Last Post: jhmiller
  [200] Music Player Daemon (MPD) vaidyasr 422 149,971 06-07-2013 09:28 PM
Last Post: gipo
Heart [200] NMT remote iPhone native app for C-200 vise_guy 238 78,035 05-31-2013 12:52 PM
Last Post: gash
  [100/200/300/400] Cross Compile Request Thread - For all NMT Series vaidyasr 30 6,867 05-19-2013 02:59 AM
Last Post: studlee2
  [300] csi-lite installation problem DreamT 2 414 05-16-2013 01:03 AM
Last Post: jhmiller
  [100/200/300/400] How to install remote syslog server on NMT A-200 jwalczak 0 377 05-10-2013 05:00 PM
Last Post: jwalczak
  [split] [A400] Common Problems and Solutions - CSI Query Theodejong 3 663 04-25-2013 11:46 PM
Last Post: Wally73
  [100/200/300/400] Wanted! How to install apps without CSI mabdewn 7 1,252 04-20-2013 05:37 PM
Last Post: TReneR
  [200] Installing apps on USB not working ted34 9 2,111 04-17-2013 05:55 PM
Last Post: ted34
  [400] CSI not connecting - start_app.sh not starting after firmwareupdate tutenchamun 5 657 04-04-2013 02:32 AM
Last Post: jhmiller

Forum Jump: