ffmpeg -i video.mp4 subtitle.srt
Here video.mp4 is the video file name, and subtitle.srt is the output subtitle file name.
My script is built on this. It expects the video files to have been selected:
Code: Select all
$a = get("SelectedItemsPathNames", "|");
foreach($file,$a,"|") {
if($file == "") {break; }
selectitems $file , 0 , 1;
$ffm = "<xydata>\FFmpeg\bin\ffmpeg.exe";
$subs = $file . ".srt";
$retmsg = runret("$ffm -i $file $subs");
}Can anyone tell me the secret handshake here?
XYplorer Beta Club