Invoke ffmpeg with openwith?

Discuss and share scripts and script files...
Post Reply
highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Invoke ffmpeg with openwith?

Post by highend »

Hi,

it's just a simple script to convert any video to mpeg2 (dvd compliant) to view it on my SAT receiver (which only supports proper mpeg2 files).

Code: Select all

//Convert current file
"VideoConvert : convert"
	//set FFmpeg and Sound path below 
	$exec = "D:\Tools\FFmpeg\ffmpeg.exe";
	$microwav = "<xypath>\.Tools\Microwav\Microwav.exe";
	$wav = "<xypath>\.Tools\Microwav\chimes.wav";
    
	openwith """$exec"" -i ""<curitem>"" -bufsize 102400k -target pal-dvd -pass 1 -fs 4096000k -loglevel quiet ""<curpath>\<curbase>.mpeg""", m;
	open """$microwav"" $wav";
My problem is: ffmpeg prints this line in the console window

"File 'D:\Users\Highend\Downloads\Default\HS Demovideo HD.ts' already exists. Overwrite ? [y/N]"

D:\Users\Highend\Downloads\Default\HS Demovideo HD.ts is the file that is currently selected and should be converted.
One of my scripts helped you out? Please donate via Paypal

Post Reply