I've created a .bat
file that I can use to drag and drop an mp4 video file onto it to convert reddit videos format to a format supported by whatsapp. All this using ffmpeg
Here's the code of the .bat
file:
"D:\Programas\ffmpeg\bin\ffmpeg.exe" -i "%~1" -vcodec libx264 -acodec aac ./out.mp4
PAUSE
As you can see, pretty straightforward.
My only issue resides on the ./out.mp4
part of the command, where if I drag and drop from say "Downloads", and the .bat
file is sitting on the Desktop
, the out.mp4
file will be created on Downloads
instead of Desktop
.
How can I alter this behavior (besides setting the output to /path/to/Desktop/out.mp4
), so I can move the bat file elsewhere and still get the same intended behavior?
Thanks.