FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


video to .flv with php?





kevinalle
Hi. I am trying to make a videos web page.
What I need to do that is a server side script that converts any video into flv.
I want to be able to upload an avi, mov, mpg or other and that the server converts it directly to .flv.
Is that possible? Any help would be thanked,
Kevin
eepman
Why don't you just use Youtube and embed videos into the page? It will save bandwidth and you will not have to worry about that programming. Otherwise I am sure there is information out there, search on google.
kevinalle
I really prefear to have my videos on my own site.
Isn't that possible?
If not: Is there a freeware batch conversion tool?
Thanks anyway!
JayBee
"Solution"

Upload it to YouTube
wait for e few seconds/minutes (it depends on length)
download video from youtube (in flv)
(I don't know if there is a way to batch upload videos to youtube. Sad )


It is not so easy as converting images.


If you can use system() exec() and others system functions, try to persuade mplayer/mencoder like http://www.entropyfarm.org/software/tricks/
kevinalle
OK!
something like mplayer was what I needed.
Does frihost support system() exec()? How do you use them?
Thanks a lot,
Kev
JayBee
You want this overloading work at Frihost? Very Happy
try script
Code:
<?php system("echo \"it works\""); ?>


or look at phpinfo() of frihost
Code:
<?php phpinfo(); ?>
where you can find if this function is banned


I thing you will have to convert your videos at home. Frihost is not good for this because you are not alone here and I also want my site to be viewable without delays.
tom69
If you want to convert video's to .flv then use SUPER. Can't remember where i downloaded it but it's GREAT and FREE for use. It can convert everything. I think...

I'l provide you with a link as soon as possible.
kevinalle
I would appreciate that a lot tom...
Then what I will have to do is get this program, convert all files to flv and then upload them to the server. Is that right?
Thanks a lot to all,
K
The-Master
Super
crystal2010
google "convert video command line", there must be a tool suitable for you Smile
mahirh
kevinalle wrote:
I would appreciate that a lot tom...
Then what I will have to do is get this program, convert all files to flv and then upload them to the server. Is that right?
Thanks a lot to all,
K

wait a second , wasnt uploading videos in frihost restricted ?
but for the convertor , i think there is actually one which converts video online
rvec
converting videos from the command line can be done with ffmpeg (the best thing there is) and most bigger companies also use it if they want it integrated with webservides. Only problem is that you need root access to install it (like on a dedicated server or vps).

Converting them manually and uploading them on frihost is the only thing you can do if you don't have a server with root access.
rickylau
Just as rvec says, ffmpeg is a possible solution.

Once you know ffmpeg's command switchs, which can be found at its website, and have ffmpeg installed, you can call it by PHP exec function

The prerequisite is that the server is owned by you, whether decicated, vps, or self-set-up. Web hosting limits the possibility in term of execution privilege and upload size, not only FriHost, others as well.

If you have face any problem, feel free to raise more, I have done a little bit on video conversion using ffmpeg via php before.
Related topics
Easy ways to convert .FLV files
embed video in php
Working with Video in PHP
Wake me up when september ends keyboard version video clip
Free Video Editing Software
ADOBE + MACROMEDIA
flash mx
How to Make A PHP Portal.
Quantum computer
DVD - AVI converter...?
YouTubea HD Görüntü...
how to download streaming flash video?
I need a VERY simple php script
Need a forum signature script, (php functions req)
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.