[FFmpeg-user] using atempo in PHP
Reindl Harald
h.reindl at thelounge.net
Mon Oct 15 13:39:59 CEST 2012
Am 15.10.2012 13:18, schrieb Tom Evans:
> On Mon, Oct 15, 2012 at 11:08 AM, Jevlachov D. <jevlachov at gmail.com> wrote:
>> Can't figure out how to use atempo properly.
>>
>> part of the script looks like this:
>>
>> echo shell_exec("ffmpeg -y -i original.mp3 -filter:a
>> atempo=1.5 converted.mp3 2>ffmpeg.log &");
>>
>> (example code taken from here
>> http://ffmpeg.org/trac/ffmpeg/wiki/Using%20FFmpeg%20from%20PHP%20scripts)
>>
>> It returns "sh: line 1: converted.mp3: command not found" in log file.
>>
>> Thanks!
>
> That sounds more like you can't figure out how to use PHP properly
> tbh. Put another way, you're not even running ffmpeg yet..
>
> Is there not a PHP command that allows you to specify the command and
> arguments as an array, bypassing all that shell nonsense?
you have to put arguments in quotes
http://php.net/manual/en/function.escapeshellarg.php
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121015/1f302aff/attachment.asc>
More information about the ffmpeg-user
mailing list