Anonymous 01/02/2023 (Mon) 22:35 No.7772 del
>>7720
this was smart
>>7714
chatgpt managed to figure out that if you append a && del and a && rename command you can delete the input file (HEVC) and then rename the output file from XYZ_264 to XYZ
the other stuff I found says that you have to make a temp file and that sounds annoying to have to learn so I just went with this way instead
my command looks like this now and it works, converts HEVC to 264 and names the output file -264 and then removes the HEVC and renames it to not have the -264 anymore
>ffmpeg -i "%~1".mp4 -c:v libx264 -pix_fmt yuv420p -threads 8 -ac 2 -movflags faststart -preset veryfast -c:a copy -crf 18 -b:v 0 "%~n1-264%~x1".mp4 && del "%~1".mp4 && rename "%~1"-264.mp4 "%~1".mp4