FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Convert .flv to avi etc..





cr3ativ3
I was wondering if there was any PHP Scripts that can convert .flv files to .avi files, I have been able to find a few scripts that claim to convert avi and such to .flv, which is useful for the reason they were created, but this reason is not why I need a converter, so I need a converter that can do flv to avi.

So has anyone heard of a script that does this? I am planning on building a script that takes the input of one file (flv) and outputs it to another file (avi) and I want to do this through php, so that someone can visit a site and have an inputed file (flv) be converted to avi for download. So does anyone know of a script that can convert flv to avi, or a tutorial on how to make one.

Thanks!
phpc0d3r
It sounds like you need a command line program to convert the files. You can do command line programming though php.

So basically you upload the file, then trigger the program to convert the file, and then give the url to the resulting file to the user.

It's a bit of a work-around but I think it'll work.

I found one product that claims it can convert files though the command line:
http://www.flvsoft.com/flv_converter_sdk/

here's an article about command line scripting:
http://us2.php.net/manual/en/function.shell-exec.php

p.s. php is unable to convert media files directly as far as I know. Most sites that convert pics, video, audio, etc. do it through command line programs.

p.s.s. Why do you need to convert flv to avi? iPod, Media Device, Etc. ?
akshar
if u get a c or Still better a JAVA program then also us can invoke it through jav and do it nicely
cr3ativ3
Hmm, interesting I'll look into that, I don' think we can access the shell on server 2. But on other hosts it would work.

I was using it cause I figured out a way of downloading files off of youtube. Which if you have done any of that work you know it is in .flv format so I wanted to make a script that Took the url of a video, converted it to the file url, then took that file converted it to avi, then have it downloadable to the user of the script.

So that's why I wanted the opposite of the usual flv conversion.

If anyone else has any suggestions please post them lol!

Thanks.
manav
i guess i saw a class in php at phpclasses.org or somewhere which could do this using some linux utility at the background...

wonder if such scripts will work on frihost???
cr3ativ3
You know what, I actually found this cool vb.net application that will convert an flv into an avi and the sound would be in a separate mp3. It does this almost instantly then you can just merge the sound and video in WMM or something. Love to get my hands on the source code of that.

[Edit]Here's the url to the article: http://www.digital-digest.com/articles/FLV_to_AVI_Conversion_Guide_page1.html[/edit]
akshar
why dont u try out the tools at
http://www.brothersoft.com/downloads/convert-flv-to-3gp.html
Related topics
Windows Tips&tricks!
Fedora Core 5 Test 1 Review
quick dvd burning
MTV(File format)
AVI to DVD
How to split video files?
Easy ways to convert .FLV files
A good youtube downloader ?
HOW TO: Build you own YouTube file downloader
Custom NimbleX - Customize your distro before downloading !
How to convert flv (youTube) files to smv (blusens) mp4?
Free Video Editing Software
Some useful DVD converter Software Free Download
Recommended Free Video Converter for FLV,MP4,AVI,etc?
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.