Hello,
I Just bought a new Nvidia GPU to use rendering videos and want to join 2 videos with ffmpeg. I have a code which joins all videos in input folder with outro.mp4. But when i run it, Computer uses just CPU and not GPU. How can i edit my code to join 2 video files with ffmpeg Using GPU

P.s: i'm newbie found this code on stackoverflow, What i want is just Join 2 video files, using gpu, it dont need to be batch code it can work for single video as well.

Thanks

Here is my code:

SET RESOLUTION="1280:720"
SET INPUT_FOLDER="input"
SET OUTRO="outro.mp4"
SET OUTPUT_FOLDER="output"

for %%a in ("%INPUT_FOLDER%\*.*") do ffmpeg -i %OUTRO% -i "%%a" -filter_complex "[1:v]scale=1280:720,setdar=16/9 [vmain]; [1:a]volume=1.6 [amain]; [0:v]scale=1280:720,setdar=16/9 [voutro]; [vmain][amain][voutro][0:a]concat=n=2:v=1:a=1" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 1400k -profile:v main -level 3.1 -acodec libmp3lame -b:a 128k -ar 44100 -preset superfast "%OUTPUT_FOLDER%\%%~na.mp4"