First of all, the first execute example is non-sense, according to manual of avconv
it takes 2 parameters:
avconv [global options] [[infile options][-i infile]]... {[outfile options] outfile}...
And you cannot just tell program to save file to http
protocol like that.
The second invocation... There are several possible issues with that:
- Are you running script from web or from CLI? Webserver may (and probably will) use different user which won't have an access to folders
- PHP scripts have timeout (default 30 seconds) and video converting takes a lot more
- PHP may have
shell_exec
disabled - PHP may have
safe_mode
turned on - PHP may have a problem with
PATH
environment variable, try using absolute path - With disabled
error_reporting
you may already have error logged but not displayed