Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th May 2014, 20:19   #1  |  Link
sauvage78
Registered User
 
Join Date: Jan 2009
Posts: 5
How to encode in mp4(avc+aac) from the server side of a website ? Which softwares ?

Hello everyone,

I am currently a student doing a website (HTML-CSS-PHP-SQL) which involve a database of car accidents with video & for this website I need the user to be able to upload video in any formats (including wmv & mpeg4-asp in avi) in the client side & convert it on fly, in the server side, to both mp4(avc+aac) & ogv (theora+vorbis) in order to output video & audio streams compliant with all the major browsers.

The only problem is that I have no clue how to do that, which softwares (encoders) to use & which langages. As far as possible I need to do it with free softwares & not online API. I have looked at ffmpeg & PHP, but I didn't succeed so far. So I am looking for any help, advices, tutorials.

Thanks for any answer
sauvage78 is offline   Reply With Quote
Old 18th May 2014, 23:35   #2  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,876
ffmpeg will do the job fine.

Learn how to use it on your desktop first so you can get the hang of its cli. Then, once you know which CLI options you'll need to use, script it using PHP.

Honestly tho, you probably don't want to be doing video transcoding on your web server. You'll likely need to figure out a clever way to have the user submitted videos land on shared storage and have a dedicated transcoder box / VM to handle the load so your web server can keep serving web pages
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 19th May 2014, 12:29   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
Quote:
Originally Posted by Blue_MiSfit View Post
Honestly tho, you probably don't want to be doing video transcoding on your web server. You'll likely need to figure out a clever way to have the user submitted videos land on shared storage and have a dedicated transcoder box / VM to handle the load so your web server can keep serving web pages
That reminds me of a case where the customer was complaining that our software is "crashing" all the time. Since we couldn't reproduce the crash at all, we added tons of debugging outputs, trying to figure out where it does crash. But it seemed to crash at completely random positions. After a few days of debugging, it turned out they were running on a shared web-server that would simply kill all user processes that take too much CPU time...
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:39.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.