Garrett
Garrett

Reputation: 649

Powershell ffmpeg

I am successfully u sing ffmpeg via powershell to compress video files, however I can't get the compression to occur in a single location, I only have success when I make separate inputs and outputs.

For example, this command will be successful:

ffmpeg -y -i \\path\$x -vf scale=1920:1080 \\diff_path\$x

this will not do anyhting or will corrupt the file:

ffmpeg -y -i \\path\$x -vf scale=1920:1080 \\path\$x

I think I understand why this doesn't work, but I'm having a hard time finding a solution. I want the script to address a file and compress it in it's current location, leaving only a single compressed video file.

Thanks all

Upvotes: 0

Views: 181

Answers (1)

llogan
llogan

Reputation: 133873

Not possible. Not the answer you want, but FFmpeg is not able to perform in-place file editing, which means it has to make a new output file.

Upvotes: 1

Related Questions