I can use Handbrake to do recursive conversion of all my MTS files to MP4 using powershell script below:
gci . *.mts -R | foreach-object { $newfile = $_.Path + $_.DirectoryName + "\" + $_.BaseName + "-convert" + $_.Extension; &"C:\Program Files (x86)\HandBrake\HandBrakeCLI.exe" -i "$_.FullName" -o "$newfile" --preset "custom" }
Now my goal is to rename the MP4 file such that it includes a prefix for the 'Date' attribute of the MTS file (ie, video creation date). For example, if sample.mts had a date of June 5, 2015, I would want the sample.mp4 fle to be renamed: 150605 sample.mts. Date prefix is YYMMDD.
Additionally, once this is done, I need a script to recursively go through all the folders and delete any MTS files.
Can somebody help me with these two request please?
Thanks, Vlad
p.s. In Windows Explorer, I see in file attributes that both Date and Content Created Date have the date I need. I can go with either.
Closed Thread
Results 1 to 2 of 2
-
-
Please do no post a similar thread,continue on your other thread,this thread is closed.
https://forum.videohelp.com/threads/371877-Handbrake-conversion-in-recursive-batch-pres...84#post2393784I think,therefore i am a hamster.
Similar Threads
-
Auto-rename by ffmpeg if output file exists?
By pxstein in forum Newbie / General discussionsReplies: 2Last Post: 8th Sep 2013, 03:42 -
Ass file with script mkv file problem
By Docoptik in forum SubtitleReplies: 9Last Post: 25th Mar 2013, 14:44 -
WinFF - Target File Size
By Simmons in forum Video ConversionReplies: 2Last Post: 13th Jan 2013, 07:27 -
Any software to rename file based on video properties? good question!
By thomseye in forum Newbie / General discussionsReplies: 10Last Post: 18th Oct 2012, 17:07 -
need file rename tool
By sigpop in forum Video ConversionReplies: 2Last Post: 11th Feb 2011, 20:28