Sorry for not posting in thread, I copypasted this old message from archives.
Klaus Schmidinger wrote:
Lauri Tischler wrote:
Klaus Schmidinger wrote:
Lauri Tischler wrote:
VPS uses running status. Unfortunately Finnish Digita does not use VPS, but, they do send 'running status', sort of... They appear allways to send 'running' (status 4) but never any other type. This could be used with Timers, like...
- switch to appropiate channel using Timer Info
- start recording when running status goes running
- stop recording when next running status on this channel goes active.
VDR sets the running status accordingly, so that at any given time there is only one event with running status 4.
Are you sure that the stations you are talking about actually switch the running status when the broadcast begins or ends, respectively? RTL, for instance, switches the RS at times that are only loosely related to the actual begin or end of a broadcast.
some log from 9th Apr.
[...]
-- starts 1:08 late Apr 9 18:31:08 vdr vdr[2596]: channel 8 (YLE24) event 18:30 'MOT' status 4 Apr 9 18:32:01 vdr vdr[2596]: channel 2 (YLE TV2) event 18:30 'Pisara' status 4 Apr 9 18:35:11 vdr vdr[2596]: channel 1 (YLE TV1) event 18:35 'Top40' status 4 Apr 9 18:36:01 vdr vdr[2596]: channel 9 (YLE FST) event 18:35 'Kulttuuriprofiili: Jan-Erik Slätis' status 4 -- starts 2:15 late Apr 9 18:37:15 vdr vdr[2596]: channel 2 (YLE TV2) event 18:35 'FST: Kulttuuriprofiili: Jan-Erik Slätis' status 4
yep, should work
Have you verified that these broadcasts actually started at the exact moment when the status has switched? I mean, by watching what was actually visible on the tv screen at that time.
I verified this.
You could make VDR use the event's running status (even if there is no VPS time provided by the event) by changing the line
if (HasFlags(tfVps) && !Directly && event && event->Vps()) {
in VDR/timers.c into
if (HasFlags(tfVps) && !Directly && event) {
You would still have to set the VPS flag for the event, though. I haven't tested this, but I would expect it to work.
I modified VDR 1.3.27 according to attached patch, and the running status works as expected.
Klaus, could this be included in the next version of VDR?
Anssi Hannula wrote:
Sorry for not posting in thread, I copypasted this old message from archives.
Klaus Schmidinger wrote:
Lauri Tischler wrote:
Klaus Schmidinger wrote:
Lauri Tischler wrote:
VPS uses running status. Unfortunately Finnish Digita does not use VPS, but, they do send 'running status', sort of... They appear allways to send 'running' (status 4) but never any other type. This could be used with Timers, like...
- switch to appropiate channel using Timer Info
- start recording when running status goes running
- stop recording when next running status on this channel goes active.
VDR sets the running status accordingly, so that at any given time
there
is only one event with running status 4.
Are you sure that the stations you are talking about actually switch the running status when the broadcast begins or ends, respectively? RTL, for instance, switches the RS at times that are only loosely related to the actual begin or end of a broadcast.
some log from 9th Apr.
[...]
-- starts 1:08 late Apr 9 18:31:08 vdr vdr[2596]: channel 8 (YLE24) event 18:30 'MOT' status 4 Apr 9 18:32:01 vdr vdr[2596]: channel 2 (YLE TV2) event 18:30 'Pisara' status 4 Apr 9 18:35:11 vdr vdr[2596]: channel 1 (YLE TV1) event 18:35 'Top40' status 4 Apr 9 18:36:01 vdr vdr[2596]: channel 9 (YLE FST) event 18:35 'Kulttuuriprofiili: Jan-Erik Slätis' status 4 -- starts 2:15 late Apr 9 18:37:15 vdr vdr[2596]: channel 2 (YLE TV2) event 18:35 'FST: Kulttuuriprofiili: Jan-Erik Slätis' status 4
yep, should work
Have you verified that these broadcasts actually started at the exact moment when the status has switched? I mean, by watching what was actually visible on the tv screen at that time.
I verified this.
You could make VDR use the event's running status (even if there is no VPS time provided by the event) by changing the line
if (HasFlags(tfVps) && !Directly && event && event->Vps()) {
in VDR/timers.c into
if (HasFlags(tfVps) && !Directly && event) {
You would still have to set the VPS flag for the event, though. I haven't tested this, but I would expect it to work.
I modified VDR 1.3.27 according to attached patch, and the running status works as expected.
Klaus, could this be included in the next version of VDR?
Maybe the stations you receive set the running status precisely, but here only those stations that actually provide VPS information keep their running status correct. Others switch the running status according to various algorithms, nobody seems to be able to comprehend ;-)
So I'm still reluctant to make this change. If it works for you, it's just a small patch after all...
Klaus
--- timers.c.old 2005-06-18 15:49:55.000000000 +0300 +++ timers.c 2005-07-13 18:28:50.000000000 +0300 @@ -362,8 +362,8 @@ bool cTimer::Matches(time_t t, bool Dire }
if (HasFlags(tfActive)) {
if (HasFlags(tfVps) && !Directly && event && event->Vps() && schedule && schedule->PresentSeenWithin(30)) {
if (startTime != event->Vps())
if (HasFlags(tfVps) && !Directly && event && schedule && schedule->PresentSeenWithin(30)) {
if (event->Vps() && startTime != event->Vps()) return false; startTime = event->StartTime(); stopTime = event->EndTime();
Klaus Schmidinger wrote:
Lauri Tischler wrote:
VPS uses running status. Unfortunately Finnish Digita does not use VPS, but, they do send 'running status', sort of... They appear allways to send 'running' (status 4) but never any other type. This could be used with Timers, like...
- switch to appropiate channel using Timer Info
- start recording when running status goes running
- stop recording when next running status on this channel goes
active.
Maybe the stations you receive set the running status precisely, but here only those stations that actually provide VPS information keep their running status correct. Others switch the running status according to various algorithms, nobody seems to be able to comprehend ;-)
So I'm still reluctant to make this change. If it works for you, it's just a small patch after all...
Well, VDR wouldn't still use the info without the VPS flag in the recording. If you fear people will set the flag on channels which don't have good running statuses, maybe a config option is in order for us Finnish users?