Bug 315946

Summary: Starts and stops program recording on wrong time (some minutes earlier)
Product: [Applications] kaffeine Reporter: qutorial
Component: generalAssignee: Christoph Pfister <christophpfister>
Status: RESOLVED NOT A BUG    
Severity: normal CC: lasse.k.lindqvist
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description qutorial 2013-03-01 11:11:31 UTC
In the Program Guide there is a button Record Show.
It schedules a recording of a show. 
The resulting video file however, contains few (around 8) minutes before the selected show,
and ends  few (again 8) minutes before the show ends. Duration is preserved, but start and stop times are wrong.


Reproducible: Always

Steps to Reproduce:
1.  Schedule a show recording
2. Wait till the time comes
3. Pay attention - starts and finishes earlier, than stated in the program.
Actual Results:  
Recording starts and works some minutes earlier than planned

Expected Results:  
The recording must start exactly at the time as stated in the Program Guide for the show start,
and must finish at the start time + duration.
Comment 1 qutorial 2013-03-01 11:34:25 UTC
ADDITIONAL:
I had a look in the code, and it looks like the problem can be in clashing 
margins of two programs.
Namely, when one program follows exactly another one, the behavior must be checked.
say one program start at 12:00 and has a duration of 1 hour, and another starts exactly
at 13:00.
If both are scheduled for recording, I would set the end margin of first to zero, and the beginning margin of second to zero.
Moreover,  I would make initially these margin set to 0 in setting, because when they are set to five and ten - it is not intuitive!!! and feels like a bug, the program starts to record before the time given!
And, sure, I have seen now, that the times also can be changed in the recordings schedule.. but it is still, not what I expect to be exactly what I mean, when I click record show.
Comment 2 lasse.k.lindqvist 2015-08-22 07:53:14 UTC
This is a feature.

Kaffeine has begin and end margins that the user can set as they wish.

In addition to that you can manually edit the recording times before they begin.

Additionally you could get a dual card to record multiple channels at the same time.