Flashvideo with locally installed ffmpeg works really well for me for smaller videos (< 30 MB, 15 mins). If I try large videos though (e.g. 240 MB, 2 hours) only the first part (about 30 MB) gets converted when cron gets executed.
To localize the problem I generated the following test file:
<?php
$command = ...
shell_exec($command);
?>whereas $command contains the actual command. If I run the content of $command on the console, ffmpeg converts the whole video completely (takes about 5 mins).
If I execute the php test file though it runs only for about 50 secs and stops then without any error messages. Consequently, only the first part of the video gets converted.
What could be the reason for that behaviour? I already set PHP's max_execution_time to a very high value... Any other parameters that are related to that? Could it have to do with certain apache conigurations?
Thanks a lot,
riemann
Comments
Comment #1
travist commentedMy first inclination would be that you do not have php.ini values set to be able to convert large videos. I am wondering if you need to also up your RAM usage for PHP as well. You might try makeing max_execution_time to a very-VERY high value... :)
Other than that, I don't know of any other reasons for this behavior.
Comment #2
riemann commentedThanks for your quick reply travist.
For testing purposes I set max_execution_time to 100000, memory_limit to 10000M and session.cache_expire to 10000 but still the same problem.
What's remarkable is that the file sizes of the partially converted files are never exactly the same which makes me think that there is a time limit reached rather than a memory limit or so...
Any other PHP vars that could affect it?
Could it be that the Apache configuration has to do with it?
Comment #3
travist commentedHmmmm. Are you running Apache as a task within another OS? Like windows?.... If so, then I am wondering if there is a task timeout that your OS has for any task that spins for to long.
Comment #4
suit4 commentedOn my apache installtion, there are different php.ini fiels for apache2 and cli.
as far as the command is executed on the shell, you have to append the php.ini settings to the cli php.ini as well.
Location /etc/php5/cli/php.ini on my system.
Comment #5
attheshow commentedClosed due to inactivity.