Jump to content

Convert Files?


Recommended Posts

I have been wanting to learn how to convert videos

to .flv for awhile, and since it can't be done with PHP,

can someone point me to a language that can do it?

And maybe give me a tutorial on doing something like

this? I was thinking that Perl might be able to do this

but I whenever I google this subject I just get sent

to websites that offer programs that do it for you. And

I want my server to do it after a user uploads a video.

Can anyone help me with this?

Link to comment
https://forums.phpfreaks.com/topic/86948-convert-files/
Share on other sites

I want my server to do it after a user uploads a video.

 

Then the easiest way is to make sure your server has the right software installed (ffmpeg comes to mind). Lots of programming languages use other tools / programs to do alot of there dirty work. What do you think a php extension is? It's basically just an interface to some other software.

 

I know there is no ffmpeg extension, but its quite simple to use it via the exec function. If you wanted to go ahead and write an extension for it, C is the language you would need to learn.

 

o can anyone point me to a tutorial

on how to use ffmpeg?

 

the manual.

Link to comment
https://forums.phpfreaks.com/topic/86948-convert-files/#findComment-444529
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.