View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Apr 27, 2014 1:11 pm 
Offline
Joined: Mon May 29, 2006 4:58 pm
Posts: 58
I ran fsck on my RAID5 that stores all my recordings. It deleted the recordings dir and moved all the recordings to lost+found and renamed all of them. The dates and times seem ok still. How can I rename all the recordings back to the correct names? There should be some way to do that based on the time stamps, correct? I've got about 4TB worth of recordings.
Thanks!

_________________
R7.4 Master Backend/Frontend 1 Ceton InfiniTV 4 AMD x4 9850/4GB/nVidia210 60GB SSD 5x2TB RAID5
Slave Backend/Frontend 1 Ceton InfiniTV 4 AMD 1050x6/4GB/NVidia 9500 40GB SSD 2x500GB SATA Maxtor
(Can't get 2nd Ceton tuner to work)


Top
 Profile  
 
PostPosted: Sun Apr 27, 2014 5:53 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 181
You need to write a script to automate this (PERL, Python, etc). You'll have to recreate the timestamp for each file and then search your database for a matching filename/timestamp. If you get a match, then you'll know what channel ID to use. If you don't get any matches, then the file has probably been removed, finally if you get multiple matches you'll have to manually intervene to determine the channel ID.

I hope that helps.


Top
 Profile  
 
PostPosted: Sun Apr 27, 2014 7:30 pm 
Offline
Joined: Mon May 29, 2006 4:58 pm
Posts: 58
It would if I was smart enough to do that. Does Myth use the channel ID in the recording file name?

_________________
R7.4 Master Backend/Frontend 1 Ceton InfiniTV 4 AMD x4 9850/4GB/nVidia210 60GB SSD 5x2TB RAID5
Slave Backend/Frontend 1 Ceton InfiniTV 4 AMD 1050x6/4GB/NVidia 9500 40GB SSD 2x500GB SATA Maxtor
(Can't get 2nd Ceton tuner to work)


Top
 Profile  
 
PostPosted: Sun Apr 27, 2014 8:29 pm 
Offline
Joined: Mon May 29, 2006 4:58 pm
Posts: 58
It looks to me like the file name is 4 digit channel id_YearMonthdayTime.mpg

_________________
R7.4 Master Backend/Frontend 1 Ceton InfiniTV 4 AMD x4 9850/4GB/nVidia210 60GB SSD 5x2TB RAID5
Slave Backend/Frontend 1 Ceton InfiniTV 4 AMD 1050x6/4GB/NVidia 9500 40GB SSD 2x500GB SATA Maxtor
(Can't get 2nd Ceton tuner to work)


Top
 Profile  
 
PostPosted: Thu May 01, 2014 9:58 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 181
joelsplace wrote:
Does Myth use the channel ID in the recording file name?

CCCC_YYYYMMDDHHmmss.mpg

Where
CCCC is the "chanid" from the database.
YYYY is the 4 digit year
MM is the 2 digit month (with a leading zero if necessary)
DD is the 2 digit day of the month (leading zero)
mm is the 2 digit hour of the day (24 hr clock, leading zero)
ss is the 2 digit seconds of the day (leading zero).

You can do this manually if you are patient. Like sorting hay from a haystack if you have a lot of recordings, though.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu