How do you concat one mpg file to another using php?
I know that you can do "copy /b file1.mpg + file2.mpg newfile.mpg" in the command prompt but I want to do it in php.
Thanks!
How To Append One MPG File To Another Using PHP
Moderator: General Moderators
-
HappyOrangutan
- Forum Newbie
- Posts: 3
- Joined: Thu Feb 18, 2010 8:04 am
Re: How To Append One MPG File To Another Using PHP
I don't think it would work like that.
I would check out using ffmpeg. It can convert and resize mpgs on the server side, and I think can concatenate video as well.
I would check out using ffmpeg. It can convert and resize mpgs on the server side, and I think can concatenate video as well.
-
HappyOrangutan
- Forum Newbie
- Posts: 3
- Joined: Thu Feb 18, 2010 8:04 am
Re: How To Append One MPG File To Another Using PHP
Bigun wrote:I don't think it would work like that.
I would check out using ffmpeg. It can convert and resize mpgs on the server side, and I think can concatenate video as well.
I'm on windows so ffmpeg is not available to me. Any other suggestions? Thanks!
Re: How To Append One MPG File To Another Using PHP
Code: Select all
$command = "copy /b file1.mpg + file2.mpg newfile.mpg";
shell_exec($command);Re: How To Append One MPG File To Another Using PHP
You can compile ffmpeg for windows.
-
HappyOrangutan
- Forum Newbie
- Posts: 3
- Joined: Thu Feb 18, 2010 8:04 am
Re: How To Append One MPG File To Another Using PHP
pytrin wrote:Code: Select all
$command = "copy /b file1.mpg + file2.mpg newfile.mpg"; shell_exec($command);
That worked beautifully, thanks mate!