Art S R wrote:
> On Mon, Mar 16, 2009 at 12:51 PM, Duncan Webb <dun...@freevo.org> wrote:
>> Art S R wrote:
>>> Hi Duncan,
>>>
>>> The one remaining problem is that, if I have consecutive recordings, the
>>> second program's start time is delayed by 1 minute.  This occurs even
>>> when using all the default settings ("sec=45" in recordserver.py and no
>>> PRE/POST recording padding values in local_conf.py).  In the
>>> recordserver log, it shows "overlap_duration=0", yet the second
>>> recording doesn't start immediately even though the previous program has
>>> already ended:
>> Consecutive recordings are a bit of a problem but looking at the code
>> the second recording should start after the first one has stopped.
>> However the code must go through the blocks:
>>
>> - config.VCR_POST_REC
>> - config.TV_RECORD_REMOVE_COMMERCIALS and
>> - config.TV_REENCODE
>>
>> before starting the next recording, must admit that this is quite poor
>> logic and the post processing should be performed in a thread so as not
>> to block the event handler.
>>
>> If you are using these settings and they take longer that a minute to be
>> performed then your next recording will be delayed by a minute.
>>
>> Duncan
>>
> 
> Hi Duncan,
> 
> I'm not using any of these post-recording functions so, in theory, the
> second recording should start immediately after the first has ended.
> Can you think of anything else that might delay the second recording?
> The delay is exactly 1 minute every time, so I'm inclined to think
> it's something inherent in the code rather than due to the process
> waiting for an external event to complete (e.g., post-recording
> function).

I've been working on the recordserver to see if I can improve the
timings of the recording. If you want to try out this version you can
get it from svn with the export command, i.e.:
svn export
svn://svn.freevo.org/freevo/branches/rel-1/freevo/src/helpers/recordserver.py
and you will need freevo_config.py from
svn://svn.freevo.org/freevo/branches/rel-1/freevo/freevo_config.py

You will need to change the RECORDSERVER_ATTIMER = 0 in your
local_conf.py to start the recordings at the top of the minute.

Attached is a log of four consecutive without any gaps and including a
small overlay of two programs.

Actually there is an odd delay after a kaa.rpc time-out error, I'm not
sure if this has been caused by this error.

Duncan

2009-03-18 19:39:20,832 INFO     recordserver.py (956): going to record: Wed 
Mar 18 19:30->19:55 (19:30)  CNI04C1 Tagesschau
2009-03-18 19:39:20,841 INFO     recordserver.py (974): start recording: Wed 
Mar 18 19:30->19:55 (19:30)  CNI04C1 Tagesschau
2009-03-18 19:39:21,360 INFO     recordserver.py (1018): RECORD_START Wed Mar 
18 19:30->19:55 (19:30)  CNI04C1 Tagesschau
2009-03-18 19:52:03,230 INFO     recordserver.py (181): Overlap:
Wed Mar 18 19:30->19:55 (19:30)* CNI04C1 Tagesschau
Wed Mar 18 19:52->19:55 (19:52)* CNI0DC1 Tor der Woche / des Monats
2009-03-18 19:52:03,278 INFO     recordserver.py (934): CALLED RECORD STOP 1: 
Wed Mar 18 19:30->19:55 (19:30)* CNI04C1 Tagesschau
2009-03-18 19:52:03,280 INFO     recordserver.py (954): delaying: Wed Mar 18 
19:52->19:55 (19:52)* CNI0DC1 Tor der Woche / des Monats
2009-03-18 19:52:04,321 INFO     recordserver.py (1026): RECORD_STOP Wed Mar 18 
19:30->19:55 (19:30)* CNI04C1 Tagesschau
2009-03-18 19:52:04,344 INFO     recordserver.py (956): going to record: Wed 
Mar 18 19:52->19:55 (19:52)* CNI0DC1 Tor der Woche / des Monats
2009-03-18 19:52:04,363 INFO     recordserver.py (974): start recording: Wed 
Mar 18 19:52->19:55 (19:52)  CNI0DC1 Tor der Woche / des Monats
*** This looks good
2009-03-18 19:52:04,825 INFO     recordserver.py (1018): RECORD_START Wed Mar 
18 19:52->19:55 (19:52)  CNI0DC1 Tor der Woche / des Monats
2009-03-18 19:53:01,759 INFO     recordserver.py (1026): RECORD_STOP Wed Mar 18 
19:52->19:55 (19:52)  CNI0DC1 Tor der Woche / des Monats
2009-03-18 19:54:45,004 INFO     recordserver.py (934): CALLED RECORD STOP 1: 
Wed Mar 18 19:52->19:55 (19:52)  CNI0DC1 Tor der Woche / des Monats
2009-03-18 19:54:45,005 INFO     recordserver.py (954): delaying: Wed Mar 18 
19:55->20:00 (19:55)  CNI0DC1 Börse im Ersten
2009-03-18 19:55:45,002 INFO     recordserver.py (956): going to record: Wed 
Mar 18 19:55->20:00 (19:55)  CNI0DC1 Börse im Ersten
2009-03-18 19:55:45,011 INFO     recordserver.py (974): start recording: Wed 
Mar 18 19:55->20:00 (19:55)  CNI0DC1 Börse im Ersten
*** This looks good
2009-03-18 19:55:45,540 INFO     recordserver.py (1018): RECORD_START Wed Mar 
18 19:55->20:00 (19:55)  CNI0DC1 Börse im Ersten
2009-03-18 19:57:29,428 INFO     recordserver.py (1026): RECORD_STOP Wed Mar 18 
19:55->20:00 (19:55)  CNI0DC1 Börse im Ersten
2009-03-18 19:59:45,004 INFO     recordserver.py (934): CALLED RECORD STOP 1: 
Wed Mar 18 19:55->20:00 (19:55)  CNI0DC1 Börse im Ersten
2009-03-18 19:59:45,006 INFO     recordserver.py (954): delaying: Wed Mar 18 
20:00->20:15 (20:00)  CNI0DC1 Tagesschau
*** This looks like a kaa rpc problem
2009-03-18 20:00:06,354 ERROR    Socket closed before authentication completed
2009-03-18 20:00:45,001 INFO     recordserver.py (956): going to record: Wed 
Mar 18 20:00->20:15 (20:00)  CNI0DC1 Tagesschau
2009-03-18 20:00:45,010 INFO     recordserver.py (974): start recording: Wed 
Mar 18 20:00->20:15 (20:00)  CNI0DC1 Tagesschau
*** This looks a bit late
2009-03-18 20:00:45,533 INFO     recordserver.py (1018): RECORD_START Wed Mar 
18 20:00->20:15 (20:00)  CNI0DC1 Tagesschau
2009-03-18 20:14:46,363 INFO     recordserver.py (1026): RECORD_STOP Wed Mar 18 
20:00->20:15 (20:00)  CNI0DC1 Tagesschau
2009-03-18 20:15:45,001 INFO     recordserver.py (965): found a program to 
clean: Wed Mar 18 20:00->20:15 (20:00)  CNI0DC1 Tagesschau
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to