(centos 5.8, php 5, apache 2.3, FMS 4.5)
Using Adobe Flash Media Server (FMS) recording from a webcam with a custom app works fine and the flv files are created in /opt/adobe/fms/applications/record/stream/definst
Play back of these files via rtmp works fine also and everything is cool. But I'd like to play these files back on an iOS device and iOS can't handle flash so they need to be converted to .mp4
One of the solutions I've found is to use ffmpeg to convert the .flv to .mp4 - and from the command prompt, this works fine
From a php script in my apache www root, using exec, shell_exec, or even system, it returns nothing and the .mp4 is never created
if i just do exec_shell("ffmpeg --help") it works and i get the output in the browser - so apache / php can execute ffmpeg just fine
So the problem is apache / php having access to either read the file outside of wwwroot or to turn around and write the new .mp4
I've tried to create a symlink in my wwwroot and use that for my path instead of the absolute path, allowed following symbolic links in the apache config but that didn't work.
I'm missing something here...
Ultimately I'd like the .mp4 file to be created somewhere in my www root folder so an iOS device can hit it via http