Jump to content

Recommended Posts

  • 3 years later...
Posted (edited)
Would this be easily changed to convert to MP4s?

These should do what you want...

 

Flip.cmd

@echo off
pushd "%~dp0"
for %%A in ("Flip\*.*") do ffmpeg -y -i "%%A" -c:v libx264 -b:v 6000k -crf 18 -preset slow -c:a aac -b:a 160k -vf scale=iw/2:-1,hflip,vflip "Converted\%%~nA.mp4"
popd

 

Resize.cmd

@echo off
pushd "%~dp0"
for %%A in ("Resize\*.*") do ffmpeg -y -i "%%A" -c:v libx264 -b:v 6000k -crf 18 -preset slow -c:a aac -b:a 160k -vf scale=iw/2:-1 -pix_fmt yuv420p "Converted\%%~nA.mp4"
popd

 

Rotate.cmd

@echo off
pushd "%~dp0"
for %%A in ("Rotate\*.*") do ffmpeg -y -i "%%A" -c:v libx264 -b:v 6000k -crf 18 -preset slow -c:a aac -b:a 160k -vf scale=iw/2:-1,transpose=1 "Converted\%%~nA.mp4"
popd

 

WMV seems a bit of a bizarre choice. :)

Edited by Arthur
  • Thanks 1
Posted

Getting this error

 

Codec is experimental but experimental codecs are not enabled, try -strict -2

 

But added in -strict -2 after aac and its working. Thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...