I have a script that convert a file, "$novo" in this case, to a 3gp file:
this is part of the script:
Expand|Select|Wrap|Line Numbers
- 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