![]() |
PHP Ninjas Inside!
I've been racking my brain over this for the last 3 days, I'm working on some stuff and my local server has ffmpeg so I have a wrapper class already made to use that... but the actual server doesn't allow ffmpeg, the host wont do it, and yes, I know, the host needs changed, but for now, it can't not to mention I want to get this working with ffmpeg anyway!
How the fuck do you get the flv length without ffmpeg? I've gotten it down to opening the file, reading so much of it to grab the duration line, but I get a bunch of bullshit and cannot figure out for the life of me to convert it to something readable. Here's what I got so far: Quote:
|
Hah: This is going to be fun.
First, you're going to have to be reading in binary mode. Second, you're going to have to scratch of up on little and big endian notation. Third, you'll find out the strpos etc completely aren't binary safe. My recommendation? Do a GFY search on my name, find where I posted my movie anti-piracy script. It's got a bunch of classes written exactly for this: loading a movie, and doing binary searches inside the movie, and pulling out data. That will probably sold your problem entirely. |
Awesome, Thanks man.
|
Quote:
This requires my VPX package as mentioned before. PHP Code:
float(40.479) Game over ;) |
Thanks for sharing.
|
Quote:
Will give you credit, any special url you want me to put in the source code? |
Quote:
Small script to get something done: credits to lemonparty.org :winkwink: |
Quote:
|
Quote:
|
And that is ninja style done right...
|
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
Quote:
|
All times are GMT -7. The time now is 10:44 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123