Graxeon Posted September 12, 2008 Share Posted September 12, 2008 Just a simple question: http://daiphyer.com/streaming_flv_transfer.php It actually works like this: http://daiphyer.com/streaming_flv_transfer.php?url=http://www87.megavideo.com/files/577c7fb5348f2ff0a70c5a53c92d556e/&type=flv This is what it's doing: Takes the MV video and converts it to an FLV file (or somehow makes it compatible with an FLV player). Tried looking at the source code, nothing...asked on another forum and they said PHP files are run before they are displayed (well this one is at least). 1. What is this called? 2. Can you point me somewhere that explains this in more detail? (unless you know how to explain it yourself) To all wondering: Just doing this cause I hate the MV player, doesn't blend with my site, and I need an easier way of linking my videos. Tyvm <3 Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/ Share on other sites More sharing options...
DarkWater Posted September 12, 2008 Share Posted September 12, 2008 Why don't you show us the code? We have no idea what's going on. Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640124 Share on other sites More sharing options...
Graxeon Posted September 12, 2008 Author Share Posted September 12, 2008 It's not my code. And: Tried looking at the source code, nothing...asked on another forum and they said PHP files are run before they are displayed (well this one is at least). Arg...just noticed the 3rd party PHP forum. Should I have posted this in there? It was just a simple question didn't think it would take much time >.< Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640127 Share on other sites More sharing options...
DarkWater Posted September 12, 2008 Share Posted September 12, 2008 Post the code and I'm sure I can explain. Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640129 Share on other sites More sharing options...
Graxeon Posted September 12, 2008 Author Share Posted September 12, 2008 I don't have the source code. I want the source code of this file: http://daiphyer.com/streaming_flv_transfer.php but it won't show up. I explained what it does and was just wondering if you guys knew what it was called. Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640132 Share on other sites More sharing options...
DarkWater Posted September 12, 2008 Share Posted September 12, 2008 I don't have the source code. I want the source code of this file: http://daiphyer.com/streaming_flv_transfer.php but it won't show up. I explained what it does and was just wondering if you guys knew what it was called. Oh, I thought that it was your site and you needed help with it or something. This is video conversion, and is probably done with ffmpeg in PHP. Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640135 Share on other sites More sharing options...
Graxeon Posted September 12, 2008 Author Share Posted September 12, 2008 Alright cool, tyvm. I'll look into it with good old Google Umm...by any chance, do you know how to get the source code of that PHP file? Or is the "executed before display" thing played into this? Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640141 Share on other sites More sharing options...
DarkWater Posted September 12, 2008 Share Posted September 12, 2008 PHP is always executed before displaying its output. The request goes like this: Browser -> Server -> Server handles request. If it is sent a request for a PHP file, it knows to handle it by calling the PHP binary. -> PHP does its thing -> PHP sends output Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640143 Share on other sites More sharing options...
Graxeon Posted September 13, 2008 Author Share Posted September 13, 2008 Darn^ Oh well... Ok well so far I've seen tutorials talking about FFMPEG-PHP and FLVTool2. From the little that I understand: You take a video file, run it through FFMPEG, FFMPEG converts the file and plants it in my directory. With this, I would need to somehow give FFMPEG access to that directory and use a massive amount of web space + extreme amounts of bandwidth for my site visitors who will stream each file at least twice and download it at least once. In the end it forces me to either: a) Get payed hosting b) Drop MV and go with another site that works without conversion Am I right on the conversion process? Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640208 Share on other sites More sharing options...
DarkWater Posted September 13, 2008 Share Posted September 13, 2008 Hell, I doubt that they'll even HAVE ffmpeg on free hosting. You get what you pay for. Quote Link to comment https://forums.phpfreaks.com/topic/123995-what-is-this-called/#findComment-640216 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.