VideoHelp Forum




Closed Thread
Results 1 to 2 of 2
  1. 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.

  2. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    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#post2393784
    I think,therefore i am a hamster.




Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!