| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,807 posts
Gave thanks: 25
Thanked 33 times
|
Converting video with PHP?
'alo!
So I have a few questions before I kill something. If I have PHP convert a video, does it keep the script active while it's converting, or does the converting go into a background process? If it does go into a background process, is there a way to make it e-mail me when it's done? I was also wondering if someone could give me a quick and dirty rundown of ffmpeg and using it to convert videos... I noticed that a lot of the tutorials I've seen don't specify the -f, is it optional or something? Thanks for any help or advice. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Seasoned Poster
Joined in Sep 2003
51 posts
Gave thanks: 4
Thanked 5 times
|
Hi,
I am not sure about your first question but for your next questions: -if you are doing the conversion with a command like exec calling the ffmpeg utility on the server, you can just add an email function after the exec line. -if you are doing the conversion by calling a server-side script such as python, you can add an email function on to that script. I saw python scripts written for video conversion. -you can use ffmpeg.so as an php extension and then use ffmpeg-php library to utilize this extension. from my bookmarks: Upload and convert video server side Yet Another Blog from Luar One-stop Installation Guide for Create a Linux Server-side FLV conversion environment ffmpeg-php API documentation [DB75]: FLV Encoding with FFmpeg video converter - ffmpeg Linux by Examples hope it helps..
__________________
server: pass40 |
|
|
|
| This user thanks sascoms for this great post! | twirp (April 10th, 2008) |
|
|
#3 (permalink) |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,807 posts
Gave thanks: 25
Thanked 33 times
|
Does anyone have suggestions for reasonable frame rates and audio rates. I don't want to have the person waiting forever for the video to load, but I don't want it to sound or look crappy.
|
|
|
|
|
|
#4 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Hosted on Gojira
8,027 posts
Gave thanks: 48
Thanked 129 times
|
What resolution will the videos be at... and what will your keyframe setting be? If you're transcoding to FLV, keyframes are insanely important as they have to be balanced between panning the video and file size.
|
|
|
|
|
|
#5 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,218 posts
Gave thanks: 18
Thanked 86 times
|
If you go look here: DVD - 300 | Mark R Headrick's Website
You'll see Trailer 1 done in several versions. The audio in all of them is 128bit, 44.1Khz, Stereo. The bps setting in the filename is the Video bitrate. With the hires versions, some of the lower-speed broadband connections will start buffering, such as AT&T's lowest speed DSL offering, which my parents have. I do all my conversions on the PC. Video conversion takes up too much CPU resources for a shared environment.. unless you can force it to run in some low priority mode so as to not impact others.
__________________
|
|
|
|
|
|
#6 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,332 posts
Gave thanks: 23
Thanked 93 times
|
most pc's can do a good job with flash at 15fps, 32k audio (22k sample) and 96k video frame rate for a 320x240 video.
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#7 (permalink) | |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,807 posts
Gave thanks: 25
Thanked 33 times
|
Quote:
![]() |
|
|
|
|