Jump to content
LaunchBox Community Forums

Script for removing ESRB logos from Steam trailers


Recommended Posts

Script for removing ESRB logos from Steam trailers

View File

It seems that many people find it annoying that many trailers which get downloaded by LaunchBox from Steam begin with an ESRB or PEGI logo before the actual trailer starts. With this ffmpeg script you can batch remove the first seconds of all your trailers and cut these logos out of the videos without the need to re-encode them.

NOTE:
Besides this script you’ll need the free program ffmpeg. You can get it here:
https://ffmpeg.zeranoe.com/builds/
You won’t have to install it. Just download the static version and extract it somewhere on your PC.

How to use it:
1.    Put my script in the “bin” folder of your ffmpeg installation.

2.    Open the .cmd file with any text editor and edit the paths for your Steam/WIndows video folder and the output folder (where it should save the edited videos). Only change the placeholder names in capital letters and leave the rest as it is.

3.    The number after the –ss command is the length you want to cut out at the beginning. I set it to 5 seconds but you can change it as you like.

4.    Save the file and start it with a double-click. Wait until it’s finished.

5.    Overwrite your old video files with the new ones from your output folder.


 

  • Like 2
Link to comment
Share on other sites

Sure, just add -t and the length in seconds before your output path.

For example, if you want your videos to be maximally one minute long the command line would look like this:


for %%a in ("STEAMVIDEOPATH\*.*") do ffmpeg -ss 00:00:05.000 -i "%%a" -c:v copy -c:a copy -t 60 "OUTPUTPATH\%%~na.webm"

 

  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...

This is a very good idea, much appreciated.

Unfortunatly, this did not work for me as provided, I had to move to -i parameter in front of the -ss parameter to function.

for %%a in ("STEAMVIDEOPATH\*.*") do ffmpeg -i "%%a" -ss 00:00:05.000 -c:v copy -c:a copy "OUTPUTPATH\%%~na.webm"

 

Link to comment
Share on other sites

  • 6 months later...

I know this is old, and I love how this works. Thought I would add that I've change the script a little to convert the .webm to .mp4 for anyone having an issue playing .webm. Here's the script I use.

for %%a in ("STEAMVIDEOPATH\*.*") do ffmpeg -ss 00:00:12.000 -i "%%a" -qscale 0 -t 60 "OUTPUTPATH\%%~na.mp4"

Takes the first 12 seconds off the front where you see the 00:00:12.000 and -t 60 makes it 60 seconds long. Hope it helps. :) 

  • Like 2
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...