- I have a folder containing a lot of 2-10 min videos ....(30 video in folder)
- How to process multiple videos in a folder and cut videos into small videos 55s.
- This is the line of code to process the entire folder containing videos
@ECHO OFF Setlocal EnableDelayedExpansion set INPUT=C:\Users\ABC\Desktop\in set OUTPUT=C:\Users\ABC\Desktop\out : encode video for %%a in ("%INPUT%*.mp4") DO ffmpeg -i "%%a" -vcodec libx264 -pix_fmt yuv420p -g 60 -r 30 -b:v 1000k -acodec libmp3lame -b:a 128k -ar 48000 -metadata title="" -metadata artist="" -metadata album_artist="" -metadata album="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -preset superfast "%OUTPUT%/%%~na.mp4"
- This is the code to cut 55s video
ffmpeg -i 11.mp4 -filter_complex "crop=ih*(9/16):ih" -crf 21 -c:a copy -f segment -segment_time 55 -reset_timestamps 1 -preset ultrafast chep49_%03d.mp4
- Error command to process multiple Video Files using batch file
====>>> The question is how to combine the above 2 sentences into 1
====>>> Can you help me please?