CriticalCid Posted August 14, 2016 Share Posted August 14, 2016 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. Submitter CriticalCid Submitted 08/14/16 Category Third-party Apps and Plugins 2 Quote Link to comment Share on other sites More sharing options...
orac31 Posted August 15, 2016 Share Posted August 15, 2016 Thank you this is fantastic and I got it working first try 1 Quote Link to comment Share on other sites More sharing options...
FistyDollars Posted August 15, 2016 Share Posted August 15, 2016 Love the script! Would there be a way to cap the length of the videos as well? I don't need a full 3-minute trailer, and it just eats HDD space. Quote Link to comment Share on other sites More sharing options...
CriticalCid Posted August 15, 2016 Author Share Posted August 15, 2016 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" 2 Quote Link to comment Share on other sites More sharing options...
FistyDollars Posted August 15, 2016 Share Posted August 15, 2016 Awesome, thanks! Quote Link to comment Share on other sites More sharing options...
Eirulan Posted September 12, 2016 Share Posted September 12, 2016 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" Quote Link to comment Share on other sites More sharing options...
Sithel Posted March 28, 2017 Share Posted March 28, 2017 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. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.