Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[MB Premium Twin HD] Power Timer looping (and eventually crashing enigma2).

Not sure whether these are accessible via Python yet, though. If not someone will need to figure out how to make them so.

Components/Converter/ClientsStreaming.py was added on Dec 30, 2015. Looks like it should do the job.
I'll work up a patch shortly...
 
Components/Converter/ClientsStreaming.py was added on Dec 30, 2015. Looks like it should do the job.
I'll work up a patch shortly...
OK - it does work.
Both PowerTimer.py and RecordTimer.py need it.
 
There are now patches in both the PruneTimerLogs and No shutdown prompt while watching recording entries at:
Code:
http://birdman.dynalias.org/OpenVix/
(the *NoShutdown* patch in each).
The one for RecordTimer.py also includes the patch for checking whether a recording is being watched.

The PowerTimer patch delays the shutdown while the RecordTimer one discards it completely. This is because of how the do_backoff() function works (differently) in the two files.
 
Don't seem to be having any success.

RecordTimer.py is still working ok for watching recordings directly on the box, but streaming recordings still gets the shutdown dialogue.
 
Don't seem to be having any success.
It worked when I tested it....(for a finished recording).
RecordTimer.py is still working ok for watching recordings directly on the box, but streaming recordings still gets the shutdown dialogue.
Interesting wording.
Are you saying that a message pops up on the streaming recording display?
Or that the shutdown prompt shows up on the box even though you are streaming?

And is this after a recording stops, or for a scheduled Power Timer? If the latter, then you need the patched PowerTimer.py (whcih is in the PruneTimerLogs directory (as their is code for trimming auto-repeating log entries as well).
 
"The shutdown prompt shows up on the ET10K even though I'm streaming, after a recording stops."

I'm not using powertimers at all at the moment.

How am I streaming - kodi on a fire tv. No plugins on the ET10k. Samba, though, is enabled.
 
Last edited:
Just tried streaming with OpenWebif.

When the timer recording ended, the dialogue box popped up as before on the et10k, 3 minute countdown, and then started another 3 minute countdown before going to deep standby.

Just noticed something significant - the last 45 minutes of the 1hr programme were buffered up on the pc, so maybe there was no
streaming going on!

I'll try again tomorrow.

Just remembered something else - there were 2 timer recordings ending at the same time, so that probably explains the repeat countdowns.
 
Last edited:
Just noticed something significant - the last 45 minutes of the 1hr programme were buffered up on the pc, so maybe there was no streaming going on!
More of a download...

I did the test by streaming a live-channel, so no chance of getting ahead of things there (if there were on-line bookies would be a dying breed).
Just tried a stream of a recording with vlc, and there's no indication that it buffers that much.

The box only counts things as remote streamers if they still have port 8001 open.
Just remembered something else - there were 2 timer recordings ending at the same time, so that probably explains the repeat countdowns.
Which could be avoided if that screen were given a (unique) name....
 
Streaming live tv works ok. No shutdown when timed recording ends.

Port 8001 isn't being used (or showing up) for recordings streaming using openwebif or kodi fire tv.

Netstat -n shows them using port 80.

OpenWebif using all defaults.

Code:
Last login: Tue Feb  2 09:04:07 GMT 2016 on pts/0
root@et10000:~# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    127 et10000et10000.home:telnet xx.home:55273           ESTABLISHED
root@et10000:~# #[B] [SIZE=2]openwebif only[/SIZE][/B]
root@et10000:~# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 et10000et10000.home:http xx.home:55274           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55275           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55276           ESTABLISHED
tcp        0    127 et10000et10000.home:telnet xx.home:55273           ESTABLISHED
root@et10000:~# # [B][SIZE=2]openwebif + tv stream[/SIZE][/B]
root@et10000:~# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 et10000et10000.home:8001 xx.home:55283           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55274           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55275           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55280           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55281           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55276           ESTABLISHED
tcp        0     83 et10000et10000.home:telnet xx.home:55273           ESTABLISHED
root@et10000:~# # [B][SIZE=2]openwebif + recording stream[/SIZE][/B]
root@et10000:~# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 et10000et10000.home:http xx.home:55290           ESTABLISHED
tcp        0 650236 et10000et10000.home:http xx.home:55296           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55289           ESTABLISHED
tcp        0      0 et10000et10000.home:http xx.home:55276           ESTABLISHED
tcp        0    127 et10000et10000.home:telnet xx.home:55273           ESTABLISHED
root@et10000:~# [B][SIZE=2]recording streamed via kodi on fire tv (uses SMB sharing)[/SIZE][/B]
tcp        0    127 et10000et10000.home:telnet xx.home:55273           ESTABLISHED
tcp        0  32831 et10000et10000.home:microsoft-ds kindle-xxxx.home:55432 ESTABLISHED
 
Last edited:
Port 8001 isn't being used (or showing up) for recordings streaming using openwebif or kodi fire tv.
Not sure what you mean by "streaming using openwebif only". When I stream using openwebif a helper app (vlc in my case) gets fired up to do the work. I can't think of any other way to stream.

As for kodi fire tv; it isn't streaming: it's reading via a network file system. The only way to handle that would be to get the code to run an external script and check the exit status. This could check for various things (NFS or CIFS file-system in use, a user logged in via telnet or ssh, FTP in use, ....)
 
Not sure what you mean by "streaming using openwebif only". When I stream using openwebif a helper app (vlc in my case) gets fired up to do the work. I can't think of any other way to stream.

To be fair, I didn't actually say that.

The telnet session quote does have the word "only" in it because I had only just started openwebif at that point in time.

When I run openwebif, an app gets fired up to do the work for me as well.

I guess I don't understand what streaming means.
 
Last edited:
If I stream (transcoded) from OpenWebif, then port 8001 does get used, but I've yet to get VLC, or anything else, to play the video.
 
PC version of VCL is happy to play....
Code:
#EXTM3U 
#EXTVLCOPT--http-reconnect=true 
#EXTINF:4077,Call the Midwife
http://192.168.1.101:80/file?file=/media/hdd/movie/20160131%201958%20-%20BBC%20ONE%20HD%20-%20Call%20the%20Midwife.ts
but not this.....
Code:
#EXTM3U 
#EXTVLCOPT--http-reconnect=true 
#EXTINF:4077,Call the Midwife
#EXTVLCOPT:program=17540
htt://192.168.1.101:8001/file?file=/media/hdd/movie/20160131%201958%20-%20BBC%20ONE%20HD%20-%20Call%20the%20Midwife.ts?bitrate=400000?width=854?height=480?aspectratio=2?interlaced=0
Code:
root@et10000:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      520/smbd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      495/dropbear
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      520/smbd
tcp        0      0 :::8001                 :::*                    LISTEN      605/enigma2
tcp        0      0 :::139                  :::*                    LISTEN      520/smbd
tcp        0      0 :::80                   :::*                    LISTEN      605/enigma2
tcp        0      0 :::21                   :::*                    LISTEN      536/vsftpd
tcp        0      0 :::22                   :::*                    LISTEN      495/dropbear
tcp        0      0 :::23                   :::*                    LISTEN      532/telnetd
tcp        0      0 :::445                  :::*                    LISTEN      520/smbd
udp        0      0 192.168.1.255:137       0.0.0.0:*                           522/nmbd
udp        0      0 192.168.1.101:137       0.0.0.0:*                           522/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                           522/nmbd
udp        0      0 192.168.1.255:138       0.0.0.0:*                           522/nmbd
udp        0      0 192.168.1.101:138       0.0.0.0:*                           522/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                           522/nmbd
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           544/avahi-daemon: r
udp        0      0 0.0.0.0:49009           0.0.0.0:*                           544/avahi-daemon: r
root@et10000:~#
 
but not this.....
That's because it's an illegal HTTP request (it's getting a 400 error back).
The URI has to many "?" in it. The first one indicates "here are the parameters". After that something else should be used (usually &, but Perl CGI also allowed ;, as otherwise you could get really confused writing HTML and wondering whether your &'s needed to be &'s).
 
There was a slight typo in my last post. htt should have read http. I don't know if that had any effect.

Code:
#EXTM3U 
#EXTVLCOPT--http-reconnect=true 
#EXTINF:4077,Call the Midwife
#EXTVLCOPT:program=17540
[SIZE=2][/SIZE][B][COLOR="#FF0000"]http[/COLOR][/B]://192.168.1.101:8001/file?file=/media/hdd/movie/20160131%201958%20-%20BBC%20ONE%20HD%20-%20Call%20the%20Midwife.ts?bitrate=400000?width=854?height=480?aspectratio=2?interlaced=0

I've tried changing all but the first "?" to "&", but nothing happens.
 
There was a slight typo in my last post. htt should have read http. I don't know if that had any effect.
It did, but I'd fixed that in my tests...

I've tried changing all but the first "?" to "&", but nothing happens.
Well, something does, but nothing that vlc shows up.
You now get a 200 OK result, but the streaming process (if it's anything like mine) runs out of write buffers before it can return anything.
 

OpenViX Feeds Status

Back
Top