![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 | |
Guest
Posts: n/a
|
![]() 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:
|
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Guest
Posts: n/a
|
Awesome, Thanks man.
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
OK, just because I'm feeling like a ninja:
This requires my VPX package as mentioned before. PHP Code:
float(40.479) Game over ;) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Aug 2008
Posts: 3,223
|
Thanks for sharing.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Guest
Posts: n/a
|
Quote:
Will give you credit, any special url you want me to put in the source code? |
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Quote:
Small script to get something done: credits to lemonparty.org ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Guest
Posts: n/a
|
Personal script... It's for my own site, most likely won't be sold due to the amount of work I'm putting into it, and your code may possibly be removed before it gets sold if it does and replaced with my ffmpeg wrapper. So it's mostly just to remind me that snippet of code was from you.
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
And that is ninja style done right...
__________________
![]() I have the simplest tastes. I am always satisfied with the best. -Oscar Wilde |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Guest
Posts: n/a
|
GOD DAMNIT MAN!
PHP Code:
![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Guest
Posts: n/a
|
Quote:
![]() PHP Code:
|
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |