Jump to content
LaunchBox Community Forums

Bulk Edit Video Snaps


Mikee580

Recommended Posts

The program I use is ffmpeg and created a batch file to have it do the conversions. 

There's no fancy UI and this (batch file) only does one folder at a time.  But ffmpeg.exe is a single, small file and very good at what it does.  No matter what program you use, the trim process does take time (depending on how many files there are).  Also, many of the fancy UI type programs actually use ffmpeg in the background. This way just cuts out the middle-man.

 

Create a text file and paste the following code into it.  Save and rename the file with a .bat file extension.  Place the batch file and ffmpeg.exe in a folder containing videos.

When executed, the batch file will:

  • create a subfolder "trimmed". 
  • look for all files with a .mp4 file extension
  • tell ffmpeg to trim each video file to 20 seconds (-t 20)
  • then put the trimmed video file in the "trimmed" subfolder
  • "pause" when completed. (press the 'any key' to close the window)
md trimmed
for %%a in ("*.mp4") do ffmpeg -t 20 -i "%%a" -vcodec copy -acodec copy "trimmed\%%~na.mp4
pause

This only trims the files that are in the same folder as the batch file.

This doesn't delete the original files.

After it's done, I suggest moving the original video files to an outside folder (temporary 'backup').  Then move the trimmed files to where the original ones were.  Start LaunchBox (or BigBox) and go to that platform. Confirm you like what you see.  If so, you can delete the temp backups, move the batch file and ffmpeg.exe to the next video folder, wash-rinse-repeat (and can probably do away with the temp backup - test part).

You can replace "ffmpeg" (without quotes) in the batch file with "full\path\to\ffmpeg.exe" (with quotes and being the actual path to ffmpeg.exe) so that you only have to place the batch in the videos folder.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...