Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Not sure if its workable ..

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
jlye



Joined: 29 Nov 2009
Posts: 6

PostPosted: Sun Nov 29, 2009 8:04 am    Post subject: Not sure if its workable .. Reply with quote

Hi,

This one sounds very tough for me .. not sure how workable is this .. maybe need more than 1 steps to accomplish this.

I have a lot of old archive video clips from my camera. Each video clip comes with a video file and a thumbnail file.

I compress the video file from avi into mpg file. This resulted in me having the same filename with different extension

Eg
video001.mpg 05/01/2009
video001.thm 01/01/2009

The datetime for the thumbnail file is the day the video was taken and the datetime for the mpg file is the day the conversion was done.

1) Am I able to use the datetime info from the thm file to rename the mpg file?

or

2) am i able to modify the datetime info for the mpg file using the thm file

What i hope to achieve in the endresult is to get my mpg file with the filename 20090101-video001.mpg

Cheers
johnny
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sun Nov 29, 2009 10:08 pm    Post subject: Reply with quote

Hi,

The feature you are asking for exists but only for inserting text, video, music, or image data into filenames. You can see it in the options panels as checkboxes labeled as:
'Insert same meta-data for names with same prefix'

See the 'Video Information Insertion' options panel for an example.

I suppose I should have added it for file properties insertion too.

The way it would roughly work is that with the option enabled you could insert the filename suffix before the name. For your example that would add 'thm 01/01/2009' to the start of both the mpg and thm files. Then you would use further custom commands to eliminate the date from the end of the name and massage the prefix to convert the date format.

No promises but I'll see what I can do in the next week.
Would you be willing to try out a beta version?

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jlye



Joined: 29 Nov 2009
Posts: 6

PostPosted: Tue Dec 01, 2009 2:06 pm    Post subject: Reply with quote

I will be more than willing to try it out .. looking forward to the beta
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Thu Dec 03, 2009 8:12 am    Post subject: Reply with quote

Hi Johnny,

The beta load is at:

http://www3.telus.net/pfrank/PFrankSetup2.312.exe

Install it. If you need a Vista/Windows7 version then let me know and I'll post it too.

To use it:
1)
go to the options window and select the 'insert file properties' panel.
Change the default insertion to %Extension%
AND
check the box that says 'insert the same file properties meta data to files that have the same prefix'
2)
Go to the main window. In the custom renaming creator, paste the following entries (do not include the single quotes):

Row: 1
Search:
Replace: '*Insert File Properties before*All*'
Custom Format String for Insertion:
'%Extension%'
Row: 3
Search: '^(mpg|thm)'
Replace:
Row: 4
Search: '([0-9][0-9][0-9][0-9])([0-9]{4,4})'
Replace: '\2\1'
Row: 5
Search: '_'
Replace: ' '

There is a shortcut you can use to enter all of the above. TO insert everything at once you can block select this entire reply and copy. THen go to the main Pfrank window, select it, and press ctrl-F2

3)
Press Scan. This will result in a preview showing the date from the mpg files being inserted in the .mpg and .thm names.
4)
Now reorder the names by clicking on the newname header of the preview list. This should reverse the order of all the entries.
Now press the 'redo last scan' button located at the bottom of the preview panel.
5)
The names should now be prefixed with the date from the thm files
6)
If you like what you see then press the rename button.
This will also rename the thm files but that's ok. You can rename them back to their original names by using PFrank again with a new custom renaming list and removing the leading dates in the names.

Hope that helps.
Let me know if you have any questions.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jlye



Joined: 29 Nov 2009
Posts: 6

PostPosted: Thu Dec 03, 2009 5:24 pm    Post subject: Reply with quote

Hi peter,

I am using Vista.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Fri Dec 04, 2009 4:18 am    Post subject: Reply with quote

OK you can get the vista version at:

tttp://www3.telus.net/pfrank/PFrankSetupVista2.312.exe

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jlye



Joined: 29 Nov 2009
Posts: 6

PostPosted: Thu Dec 10, 2009 2:48 am    Post subject: Reply with quote

Hi Peter,

Thanks for the update .. it works fine .. Great Stuff

While waiting for your update ..
I wrote a perl script to do the same thing ..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com