Rockbox Technical Forums

Support and General Use => Recording => Topic started by: cbr12 on December 07, 2006, 07:37:58 PM

Title: Automated recording times possible with H320?
Post by: cbr12 on December 07, 2006, 07:37:58 PM
I would like to use my H320 to record birds every morning for a week or two from 6-10 am. The Iriver would be plugged in of course so it doesn't run out of batteries. I know the H320 has an internal clock, can it be used to set pre-determined start and stop recording times? I read in another post that there is a plug-in for a countdown timer to begin recordings, but could this be used on a consistent basis to start and stop every morning? If this is possible please let me know how.

Thanks
Title: Re: Automated recording times possible with H320?
Post by: Didgeridoohan on December 08, 2006, 08:12:19 AM
A quick look in the wiki gives this information:

Quote
Missing features

    * Set a start or stop time (delayed/timed recording)

http://www.rockbox.org/twiki/bin/view/Main/IriverRecording

If there is a count-down plugin for recording, there should be no problems using it... Just turn on your player before going to bed, set the count-down to reach zero at 6am and then let it run. You can probably set a sleep timer to turn of your player at the desired time. Since I don't know anything about this count-down plugin, I can't know for sure though.

Cheers

Edit: Typos...
Title: Re: Automated recording times possible with H320?
Post by: Llorean on December 08, 2006, 11:30:20 AM
I think that what he wants is a way to plug in his player, and set it to record a scheduled recording (6-10 AM every day Mon-Fri) rather than just one recording at 6 AM.
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 08, 2006, 11:47:55 AM
Llorean, you are right. I want something that will be able to record everyday at the same scheduled times, not just one morning. I suppose the sleep timer would work if there is some way for it to automatically wake up again when it is time to recrord again the next morning. If Iriver cant do this, are there any other jukeboxes like archos, ipod etc. that would allow this type of recording?
Title: Re: Automated recording times possible with H320?
Post by: Didgeridoohan on December 08, 2006, 03:16:49 PM
Yes, I understood what he wanted... The problem was that I wasn't completely clear in my answer. :-[ With the way I suggested you would of course have to prepare your player every night you would like a recording the next morning... A bit of a problem if you don't have the opportunity to do that.

I don't think there is an option to have Rockbox start your player automatically at a certain time.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 12, 2006, 05:34:33 PM
Cbr12, I have come bearing gifts...

I have been mucking about with my countdown timer and managed to implement what I think you're after... Quite a nifty little feature I think... The patch is here: http://www.rockbox.org/tracker/task/6297

and here's a description of what it does....
All timer settings (including filesplit etc) are under a menu in the recording settings called Timer options.

Setting "Record repeat every.." you can set a time for a repeated recording eg. set it for 1 hour and a recording will start every hour from when you start the first recording. This needs to be used in conjunction with the "Split time" option.
"Split measure" and "What to do.." are automatically  set to 'time' and 'stop' respectively when "Record repeat every.." is set.
You need to set a "Split time" that is less than your "Record repeat every.." setting.

So eg.
First set "Record repeat every.." to 12 minutes
then "Split time" to 5 minutes.
Then go into the recording screen and press record

This will result in a 5 minute recording and then a 7 minute pause, then another 5 minute recording and 7 minute pause..etc etc until you stop the recording or pause the timer.

This can also be used in conjunction with the countdown timer to start the first recording at a specific time.

Hope that does the trick, I'll be interested to know if it works ok for you.
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 14, 2006, 02:24:18 PM
Mmmm,

Thanks for info. I really hope this works. I do not have the patch installed yet, but I will start working on it. I have never done this before so it may take a while before I figure out how to get it working. Is there any way to install the patch using a Mac?

Will this patch work for both the H120 and H320? I have both models and would like to get this working for both of them if possible.

I'll be amazed and very excited if this works. Thanks again.



Title: Re: Automated recording times possible with H320?
Post by: petur on December 14, 2006, 06:04:12 PM
To use this patch you'll need the build environment to make your own binaries. Nothing to get scared off ;)
More info here: http://www.rockbox.org/twiki/bin/view/Main/DocsIndex#For_Developers
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 15, 2006, 02:32:24 PM
To make life temporarily easier for you (until you want to upgrade) here are the ready built binaries for both H1xx and H3xx.

All You need to do is install an up to date version of rockbox (make sure it works) and then replace the rockbox.iriver file with the version below. (remember to remove the .Hxxx extension first).

rockbox.iriver.H1xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H1xx)
rockbox.iriver.H3xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H3xx)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 15, 2006, 07:39:56 PM
Mmmm,

I cant open the links you attached on the last reply. This is what happens when I click on it:

The requested URL /homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H1xx was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Is there anywhere else I can download them from? Maybe the URL is just missing somthing. Or more likely, maybe I'm missing something here.

Title: Re: Automated recording times possible with H320?
Post by: Llorean on December 15, 2006, 07:44:15 PM
The URLs were input improperly. I've fixed them, they should work now.
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 15, 2006, 07:58:01 PM
Llorean,
 
When I click on the links now they work, but I just get scrambled text. Something still doesn't seem right.
Title: Re: Automated recording times possible with H320?
Post by: Llorean on December 15, 2006, 08:03:24 PM
Try right-clicking and choosing save-as. Your browser is trying to open them instead of recognizing them as binary files. That problem is at your end.
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 15, 2006, 08:13:18 PM
I tried that too, but I just get a saved txt file of the same scrambled text. I am using a Mac, could that be the problem?
Title: Re: Automated recording times possible with H320?
Post by: jhMikeS on December 15, 2006, 08:19:33 PM
Would love to see a VCR style program scheduler. Could be implemented as a TSR plugin perhaps?
Title: Re: Automated recording times possible with H320?
Post by: pabouk on December 16, 2006, 05:04:33 AM
That problem is at your end.
Actually the problem is at the server which sends incorrect MIME type (text/plain). It should be application/octet-stream. Usually the wrong server configuration could be circumvented using the Llorean's method but I am not sure if it works with standard Mac browsers.

cbr12: As a workaround I would recommend using wget (http://www.google.com/search?hl=en&q=wget+for+%22Mac+OS+X%22) to download the file.

EDIT: Now I recalled that Mac OS stores the file type as metadata not as the filename suffix (like in other common operating systems). Thus as a first attempt I would recommend simply copying the file to the player (ignoring that it is a text file) and renaming it as it was described above. There is a chance that the system did not damage the file content by trying to convert end of line codes etc.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 16, 2006, 05:45:50 AM
Yeah, I agree with Pabouk, It should work if you just make sure the filename is correct and just copy that onto your player...hopefully...  :)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 16, 2006, 02:26:38 PM
Ok, I finally got the patch. I had to save the link, open the file, and then resave it again after removing the txt extension. After I did all this it finally worked and I now have the countdown timer on my H120 and H320. Thanks for the help everyone.

I will be testing the timer options and make sure this will work for what I intended. I will put the settings at: record repeat every 1 day, with the the split file option set at 20 hours. I am hoping that this will record for 4 hrs each morning, and then countdown the next 20 hours before recording again the next day at the same time. The player will be plugged in at all times.

I will update this thread as to whether or not this set up worked.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 16, 2006, 03:46:11 PM
Ok, I finally got the patch. I had to save the link, open the file, and then resave it again after removing the txt extension. After I did all this it finally worked and I now have the countdown timer on my H120 and H320. Thanks for the help everyone.

I will be testing the timer options and make sure this will work for what I intended. I will put the settings at: record repeat every 1 day, with the the split file option set at 20 hours. I am hoping that this will record for 4 hrs each morning, and then countdown the next 20 hours before recording again the next day at the same time. The player will be plugged in at all times.

I will update this thread as to whether or not this set up worked.
No, I don't think that'll do what you want to do.

If you want your files to be 4 hours long, then set "split time" to 4 hours.

If you want a recording to start every day, then set repeat to 1 day.

If you want the first recording to start at a specific time (and then each subsequent recording 1 day later than this time) and you won't be around to start the recording at that time, then you should set the countdown timer to start recording then.

Does that make sense to you?

So eg.

I want a recording between 6am and 10am every morning and the time is now 2055.

Set "Countdown timer" to 9hrs 5 mins
Set "Record repeat every.." to 1 day
Set "Split time" to 4 hours

Go to the recording screen and press play/pause and you should see the timer start counting down your initial 9 hrs 5 mins  ;D
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 16, 2006, 06:55:02 PM
I have been playing around with the countdown timer and other timer options. Here is what I have found so far. I can get the countdown timer to work properly and start recordings at the desired time. I can also get the split time option working ok. I have been spliting the files by 5 or 10 minutes. The problem I have been getting is with the "record repeat every" option. In my testing I usually set this to 12, 15 or 18 minutes but it doesnt seem to matter becasue the countdown timer does not resume and the recording stops after the specified split time. On two attempts it has counted down successfully and repeated the recording until the next split time. But then it stopped again after the second round.

I tried watching it to see what happened after the split time ended. The countdown timer starts counting down but after just a few seconds (usually about 3-5 seconds) it returns to the total time remaining before it should start the next recording. Then the countdown timer freezes here and thus it never re-records when its supposed to. Could this still be a bug that hasn't been dealt with? I have tried several different options like recording in wav, mono etc, and still get the same result.

My othe timer settings included: countdown timer 1 min, record repeat every 10 min, split measure = time, what to do when splitting = stop recording, split time = 5 min, split file size = off.



Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 16, 2006, 07:34:59 PM
Yeah...here we have a bug I thought I had sorted out but it appears to be rearing it's ugly head again. I'll look into it tomorrow. It's nothing you're doing wrong or even your settings, so don't worry...I'll get it licked eventually ;)
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 17, 2006, 06:02:44 AM
Ok, try this..

rockbox.iriver.H1xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H1xx)
rockbox.iriver.H3xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H3xx)

The reason I thought I had fixed this bug is because I tested on modified code so that I didn't have to wait around for 5 minutes for every test! But it having to save a larger file made all the difference! Typical  ::)

Anyway, this time I've tested with a proper build and it seems ok...
Make sure you have prerecord off too as it doesn't take the 30 second loss of recording time into account..I'll sort that one out later.
Title: Re: Automated recording times possible with H320?
Post by: mlind on December 17, 2006, 06:15:03 AM
I had to save the link, open the file, and then resave it again after removing the txt extension.

Open with what?
You should only have to download (usually alt+click on link) and remove the .h3xx-extension directly in the finder.
(this is for readers with Mac OS)
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 17, 2006, 11:42:16 AM
Now the repeat timer will take into account any pre-recording being done, so the only settings you need to worry about are the repeat timer and the time split settings, everything else will take care of itself.
The compiled builds are in the same links as before, I'll update the patch on the tracker too...
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 17, 2006, 11:19:51 PM
I got the new builds with the countdown timer and have been testing them out. So far so good. Great work. My next test is to try some long recordings and longer countdown times to see how it can handle larger files. I'll let you know how it performs, but overall it seems very promising.

Thanks
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 18, 2006, 07:59:12 AM
Fantastic, Glad to hear it's behaving now.

Just one more modification... That bug you experienced earlier could reoccur if the save takes longer than 1 minute (not likely, but anyway..)
Now it just can't happen, no matter what.... So really a more robust version...
Thanks for testing
M

rockbox.iriver.H1xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H1xx)
rockbox.iriver.H3xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H3xx)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on December 20, 2006, 12:48:56 AM
I may have found another bug in the timer options from some recent tests. My settings were:

countdown 1 min
record repeat every 1 day
split time 12 hours

The countdown timer worked ok initially, but after the 12 hour recording period the countdown timer actually got longer. I think the 12 hour split time was added to the 1 day "record repeat"or something, rather than subtracting. I dont think it had a problem saving the large file, but it seems that the countdown timer is getting confused when it has to countdown from 1 day.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on December 20, 2006, 05:22:39 AM
Haha..yes, you're right.... I must have been day dreaming when I wrote that code.. dealing with days, hours, mins and secs separately is just asking for trouble. I've changed it so that it converts everything into seconds before we go subtracting...Much simpler! :)
Now it works...
Try that... (same links)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on January 03, 2007, 06:41:19 PM
I tested the countdown timer and succesfully recorded the same time sequence for 5 consecutive days. It appears to be working correctly on both my H120 and H320.

Is there already a similar patch to make the timer options functional on the IAudio models? I have been thinking of buying one since the H120 and H320 have been discontinued and are now difficult to get a hold of.  If its not available, would it be difficult to make the countdown timer work on an Iaudio? Are there any other recording limitations on the Iaudio compared to the Iriver?
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on January 04, 2007, 09:45:08 AM
Great... Good news that it works... :)
The patch should work fine on any of the recording capable targets!
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on January 09, 2007, 03:05:36 PM
I have recently noticed that the countdown timer is a little bit slow. For example, when I record a 1 hour segment each day at 6 o'clock with a record repeat set every 1 day the next recording will be approximately 13-14 minutes later then what I intended. For the first day it will  record from 6:00-7:00, the next day it will record 6:13-7:13, the next day 6:26-7:26 and so on. Is there any way the timer can be calibrated to be more precise?
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on January 11, 2007, 08:18:56 AM
Oh bugger.... really?
Does this also happen if you only use the countdown timer over 1 day? ie not the repeat timer? It'd be good if we knew exactly which one was causing the problem (as both functions are used with the repeat timer).
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on January 11, 2007, 02:36:53 PM
I've been running the timer for nearly 3 hours by itself and so far it seems to be keeping good time. your figures suggest it should lose about 0.5 seconds every minute I think, so I should have noticed something after 3 hours....
I'll leave it longer but this suggests it is purely the repeat timer code. I'll have a look at that some time..
It's a bit odd though because the repeat timer code is only executed once per cycle which means that 13 minutes are chopped off in one go... weird...It must be something fairly obvious then... hmmmmm....
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on January 12, 2007, 01:44:57 PM
I dont think the timer is chopping it by 13 minutes in one cycle. It is a gradual process because the timer (at least on my Irivers) is not insync with with my watch. I just tried a 30 minute countdown trial and the Iriver timer was 18 seconds slower than my watch (This was not the record repeat timer). If you do the math that would account for about 14 minutes in a 24 hour period. I get the same results for the H120 and H320. Keep me updated if you figure anything else out or want me to try any other tests.
Title: Re: Automated recording times possible with H320?
Post by: bascule on January 15, 2007, 04:08:31 AM
So is the RTC on your player at fault? That's what it sounds like, although I imagine that would be exteremely unusual...
Title: Re: Automated recording times possible with H320?
Post by: pixelma on January 15, 2007, 07:45:28 AM
I understood the following statement...

The patch should work fine on any of the recording capable targets!

...as "it doesn't rely on the RTC but on the user timer" - so it should be independent from the RTC. Maybe I'm wrong here but otherwise this patch wouldn't work fine on (stock) H1x0s and OndioFMs (which would be of interest to me :) ).
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on January 16, 2007, 12:53:00 PM
Yes, the timer doesnt use the RTC at all. It has it's own tick task that should decrease the count by 1 every HZ ticks (ie every second). I haven't had time to look at it yet though to see why it is losing time as I've just started a new job and everything is a bit of a whirlwind about me! :)
I'll get around to it when things calm down a bit though..
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on January 18, 2007, 02:12:08 PM
I may have narrowed down the problem a bit with the countdown timer. I checked the file names which are time stamped to see exactly how much of delay there was between days. With the record repeat set for 1 day and a split time of 4 hours I found that the recording started exactly 12 minutes later on the next day. The recordings were exactly 4 hours, therefore the 12 minutes were lost while counting down from 20 hours. Even though I hate math, I converted everything to seconds and tried figure it out from there. 20 hours = 72,000 seconds and 12 minutes = 720 seconds. If you divide 72,000/720 you get exactly 100. Im not sure how the timer was coded, but it seems that it is 1 second off for every 100 seconds.  

I found a temporary solution to work around this, you just have to change your record repeat time to adjust for the slow timer. For example, in this case instead of setting the record repeat to 1 day you could just change it to 23 hours and 48 minutes. Then it would repeat the recording every day at the same time. I hope this helps someone, but for those who dont like to do math it would be great to see the timer fixed if its not too difficult.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 03, 2007, 08:11:00 AM
I've made an updated patchwhich may fix the above problem.... (it seems exact on a 2 minute timer anyway) Obviously a test with a longer timer will tell us if it has made any difference: the patch is on the tracker and here's the H1xx binary:

rockbox.iriver.H1xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H1xx)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on February 03, 2007, 12:42:50 PM
Thanks, Ill give the new patch a try. Do you have a binary for the H300 too? I could test that out as well.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 04, 2007, 06:50:50 AM
Ok, Here you go...

rockbox.iriver.H3xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H3xx)

It should be the case that if it works on one of the targets , then it should work on them all (as long as it compiles) as it uses the same code regardless. But I suppose you can never be too careful eh? ;)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on February 07, 2007, 12:39:36 PM
I tried the new binaries and I got the same results. The countdown timer is still 1/100 sec slow.
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on February 07, 2007, 04:20:35 PM
When I replaced the rockbox.iriver file with the new binary from the link posted above I get "encoder failure" and "disk is full" messages on the recording screen. Did I not replace the file correctly? Anyone else have this problem?
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 08, 2007, 05:55:52 AM
Damn, so the error's still there...how did you test it if you can't get the binaries to work?

It's strange there is this error though, it's as if the actual units are running slightly slower than they should or the value for the number of cpu ticks per second for the I rivers is slightly wrong - but that can't be right or there'd be all sorts of problems all over the place - It must be something in my code but I really can't see what...

For now I'll try a hack to minus 1/100 sec from each second on the coldfire targets...
It would be interesting to know if there is the same error on the archos recorders to see whether it is target specific or not.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 08, 2007, 06:28:25 AM
Try this.... just H1xx to start with...
I've just skimmed 1/100 of a second from each second. On a quick test with a 2 minute timer it seemed less accurate to me but it's hard to tell with as short a time as that.... Hope that fixes it.

rockbox.iriver.H1xx (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockbox.iriver.H1xx)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on February 08, 2007, 02:32:54 PM
Mmmm,

My last posts may have been a bit confusing so I will try to explain what I did a little better. When I first downloaded the new binary for the H320 it got the same results (countdown timer 1/100 sec slow). Then I tried using the binary for the H120 and for some reason I could not get it to record anymore. I would get the message "encoder failure" and then "disk is full press stop to continue". The disk was not full so I assumed it was an error on my part in how I replaced the rockbox.iriver.H1xx file or that it somehow was not happy with the latest build I used. Then I thought maybe I didn't replace the binary correctly on the H320 either. So I copied it over again and the next time I tried recording I got the same message "encoder failure" and then "disk is full press stop to continue". This made me wonder if my tests were really valid or not on the H320.

Do you know why I would get these messages with the new binaries? I tried using the latest builds and simply replaced the rockbox.iriver file with your file (after removing the .H1xx or H3xx extension). Do I need to extract the files like when I originally loaded the firmware? If so how do I extract from the file you have posted, it just seems like a text file when I open it. Anyways, I would love to test your new patch  but I just cant get my Irivers to record anymore. Any suggestions? Do the old links with the countdown timer binaries still exist, or are they just replaced with each new version you make?
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 09, 2007, 07:11:21 AM
Ah... yes it seems as though you probably didn't test the previous build... Hmmm, I don't know what's going on with those errors, sounds like you have an out of date/too up to date .rockbox folder. I'll post a complete pack for you to try with the first of the recent updates this evening (in 8 hrs or so)....
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 09, 2007, 02:04:48 PM
Try this then..... It's the zip version including the .rockbox directory

rockboxh1xxtimer.zip (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockboxh1xxtimer.zip)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on February 09, 2007, 07:10:32 PM
Mmmm

Thanks for the new timer zip file. That worked much better. I tested it out and it seems more accurate. My initial tests were within 1-2 seconds over an hour period. I will try some longer tests to make sure its not just human error, but it is easier with the H320 because I can just look at the time each new file started with the time stamp. When you get a chance could you please post another link with the H320 build and zip file. Then I will start some 24 hour trials.

Thanks
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 10, 2007, 06:15:49 AM
Ahh, so that's how you test it accurately... Pretty good, I was wondering how you managed to be watching it at the correct times..with my H140 it's a real pain trying to test over that amount of time, Heres the H3xx build:

rockboxh3xxtimer.zip (http://homepage.ntlworld.com/martin.scarratt/Rockbox/rockboxh3xxtimer.zip)
Title: Re: Automated recording times possible with H320?
Post by: cbr12 on February 12, 2007, 01:42:59 PM
The latest patch seems to be working right. I usually get just a few seconds delay even after really long recordings. I think the delay is just a result of the iriver changing functions from countdown to recording and vice versa, I dont think the countdown timer itself is off anymore.

Mmmm - Great job, this timer will be very helpful for some recording projects I have in mind.

Thanks
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on February 12, 2007, 04:37:44 PM
Wooooohooooooo.... I'm really pleased...at last it is working properly...  :D
Now I'll think about committing it......

You may lose a bit between countdown and recording but not the other way. when recording stops, the timer seamlessly starts ticking... It's a pity about the small loss but there isn't really anything that can be done about that I don't think... You can use prerecord to get a few seconds extra in at the beginning but I suppose the lost time builds every time the repeat timer is used (ie every time a new recording starts). The only way around it is to have a timer count up as soon as the countdown finishes to get an exact seamless recording time, at the moment I'm using the time given for the recording. But it wouldn't be worth the large amount of code for such a tiny thing.
I suppose another alternative would be to minus a certain interval from the repeat timer. But I suppose it may vary depending on the codec you're using and many other things...
Title: Encoder problem too
Post by: Claus10 on April 11, 2007, 06:48:38 AM
Hi,
I have similar problems. I also get the encoder error message, but I only downloaded a build for the H320.
Are there new builds, that solve the problem?
The links here do not work anymore.
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on April 12, 2007, 03:37:37 PM
I ran out of webspace I'm afraid, but the patch will work fine and will be much better for you as you can update without being dependant on me for updates. you can find the patch here: http://www.rockbox.org/tracker/task/6297#comment14586

and how to use the patch and compile etc here: The Simple Guide To Compiling (http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling)

Good luck ;)
Title: Re: Automated recording times possible with H320?
Post by: Mmmm on April 13, 2007, 07:17:31 PM
Alternatively you could use the REP which includes the timers... (use the build in my sig or look in the REP thread for the patch).
Title: Re: Automated recording times possible with H320?
Post by: myotis2004 on June 09, 2007, 04:30:29 PM
I am new to this and I really need to use the recording feature but I don't understand the instructions on how to add patches etc. I installed Cygwin successfully (I think) but I don't know if the cross-compiler was added and there doesnt seem to be a Rockbox folder in my C: directory. Is their a simpler way of adding this timed recording feature?

I am also looking for a way to record only upon playback by line-in so that when the line-in device is playing, rockbox will start recording (produce a new file) and when line-in stops, rockbox stops recording. When line-in starts up again, rockbox creates a new file and begins recording again.

I am using an H320

thanks