Hi,
I have a script that convert a file, "$novo" in this case, to a 3gp file:
this is part of the script:
Obviously, before I already put the file to convert in "$novo". Didn't write all the code to save space.
My problem here is that sometimes already exists a file with the same name of the target file. When this happens, ffmpeg asks something like: "Do you want to overwrite the file ....?"
I'd like it to overwrite without asking, letting the user out of this.
I can I tell it to allways assume yes, or something like that?
thanks in advance,
João
I have a script that convert a file, "$novo" in this case, to a 3gp file:
this is part of the script:
Code:
print "qual é o título da peça? (< 36 caracteres)\n"; my $titul=<STDIN>; chomp($titul); my $outputgprs="$titul"."_25".".3gp"; system "ffmpeg -i '$novo' -acodec libamr_nb -ar 8000 -ac 1 -r 7 -b 25k -s 176x144 -vcodec h263 -ab 7.95k /home/user/Desktop/$outputgprs";
My problem here is that sometimes already exists a file with the same name of the target file. When this happens, ffmpeg asks something like: "Do you want to overwrite the file ....?"
I'd like it to overwrite without asking, letting the user out of this.
I can I tell it to allways assume yes, or something like that?
thanks in advance,
João
Comment