homepage Welcome to WebmasterWorld Guest from 23.21.9.44
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Watching .flv on the iPhone
StoutFiles




msg:4128555
 2:35 am on May 7, 2010 (gmt 0)

Before I set out on this project, I'm wondering if it's possible. Say I come across a site with a .flv I can't watch.

I'd like to create a script that...

a) Grabs the source code of a URL I enter and parses the information for the .flv file.
b) Downloads that file
c) Converts the file format to .mp4
d) Displays new page with .mp4 in html5 format.

I'm sure I can do all this, I was just wondering if it would work and if anyone sees any possible hurdles with it. Basically I'm fed up with not being able to watch .flv files and want to resolve the problem.

 

StoutFiles




msg:4128805
 3:34 pm on May 7, 2010 (gmt 0)

Guess I'm the only person interested in this? Well I'll report back with my results at some point.

eelixduppy




msg:4128809
 3:42 pm on May 7, 2010 (gmt 0)

You should work on an iPhone modification for this. ;)

In any case, it is possible. There are services out there that do very similar things (e.g. convert youtube videos to mp3).

As far as hurdles are concerned your bandwidth is going to be pretty high if you are constantly downloading and streaming videos. Because of this, I would take extra care in trying out different caching techniques to reduce the bandwidth. If two different people request the same movie within a reasonable amount of time between each other, the server should not have to download the flv more than once.

Play around with it and let us know how it turns out.

StupidScript




msg:4129063
 11:16 pm on May 7, 2010 (gmt 0)

Just wondering ... is this legal to do with content you don't own the copyright for? I guess it could fall under "fair use" if it was just you doing it for you, but if you want to start a service to do this for others, you should definitely contact an attorney who handles intellectual property issues and have a chat about it. In one sense it is like taking a vinyl album and recording it to CD: As long as you only make the one copy for your personal use you should be okay, but if you start selling the CD copies to other people who don't have turntables (other iPhone users), then you're a pirate ... or something like that. IANAL.

On a side note, I've been working on various methods for merging audio and video files on-the-fly online, and that kind of media processing tends to be very CPU-intensive ... basically bogging down the server completely until the merge is complete (using ffmpeg, for example). So I'm thinking that a service for ripping .flv's online (if that is where you are headed) could be a real cycle pig. I am very interested to learn more about your project.

StoutFiles




msg:4129074
 11:48 pm on May 7, 2010 (gmt 0)

This would be just for me, I'm not giving others links to the project. The iPhone is great but not being able to watch .flv's on it is a bummer, so for now this would be a workaround.

If it works as intended I don't mind sharing the code here though.

mack




msg:4129077
 11:57 pm on May 7, 2010 (gmt 0)

Nice idea! Will the script operate something like a proxy server?

Mack.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved