I'm trying to convert a video from .mp4 to .flv in php using:
shell_exec("ffmpeg -i input.mp4 output.flv 1>output.txt 2>&1");
Also I am taking output of entire process in output.txt file to use it in creation of progress bar in javascript(that's not the problem here).
The problem is: 
if video(input.mp4) size is>50Mb then it takes too long to complete shell_exec (>30secs). which hangs the UI unnecessarily.
So what i want to know is:
- Is there any way to make - shell_execwork together with rest of the script?
- I need only to initiate - ffmpeg.exevia- phpscript and then php script can terminate.
- Once the process is initiated - javascriptwill start its magic(at client side).
So I need to execute shell_exec async. with rest of the script. and once the process is initiated the script should inform client by simply echoing. It should not wait for ffmpeg.exe to complete its working. Is it possible?
I've seen several similar questions on SO, many of them describing the same problem
ex:
Run a ffmpeg process in the background
ffmpeg Progress Bar - Encoding Percentage in PHP
Can ffmpeg show a progress bar?
etc.
BUT
They all were using linux OS's or Using curl. I'm using windows 8 (wamp without curl and any other add-on except ffmpeg.exe). 
So Is it possible? can experts here please help me one more time?
Thanks in advance.
 
     
     
    