0

Hi guys I was just wondering if any of you could help me as I am currently developing a html5 video sharing site dedicated towards gaming and technology. Anyway basically I use wamp server to test all of my code. I have just set up ffmpeg and the upload form and on my local computer it uploads it and then converts it to a .mp4 format. So I decided to go ahead and try the site by putting my PC's local IP into another computer on the network, so everything works I can upload stuff but it just won't convert it.

Here is my code:

<?php
$random = $_FILES["video"]["name"] . rand(1, 100000000) . ".mp4";
$video = "raw/" . $_FILES["video"]["name"];

move_uploaded_file($_FILES["video"]["tmp_name"],
"raw/" . $_FILES["video"]["name"]);

exec('C:\ffmpeg\ffmpeg.exe -i ' . $video . ' videos/' . $random);
echo 'C:\ffmpeg\ffmpeg.exe -i ' . $video . ' videos/' . $random;

?>

I just can't see why it will only work on my host machine.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Chub97
0

Actually don't worry I have fixed the problem I fiddled around with my firewall settings and to my amazement it seems to be working.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.