Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 577643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:10:32+00:00 2026-05-13T14:10:32+00:00

I’m currently working on the server side of an augmented reality project. It’s a

  • 0

I’m currently working on the server side of an augmented reality project. It’s a lot like http://www.livingsasquatch.com/. I’m using PHP/MySQL and FFmpeg to capture the webcam video and encoding it to .flv.

Basically Flash uploads the video as a long series of .jpg images. PHP then takes those images, generates a few thumbnails and passes them through FFmpeg which converts them to a single .flv file.

Here is the FFmpeg code:

$ffmpeg_images = $image_directory.'/image%d.jpg';

@unlink($video_directory."/$video_id.flv"); 
$ffmpeg_video = $video_directory."/$video_id.flv";
$ffmpeg_string = FFMPEG_PATH." -f image2 -i $ffmpeg_images -f flv $ffmpeg_video";

@exec($ffmpeg_string);

This seems to be working nicely in my tests, but I don’t know how we’ll it will scale. Since this is my first time using FFmpeg, I don’t know if video encoding this way will bring the server to its knees.

Does anyone have experience with FFmpeg on a high traffic site?

Is there a better way of handling this type of Webcam to .flv conversion?

Are there any examples of FFmpeg being used on a high traffic site?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:10:32+00:00Added an answer on May 13, 2026 at 2:10 pm

    Your fundamental workflow seems sane to me. I’m sure there are other approaches. Just a series of bullet points to answer your question:

    • FFmpeg is a video encoding leader; Arguably ‘the’ leader. You should not worry about it itself being a problem, but more about how you are using it, your parameters, etc.
    • Your above script’s FFmpeg parameters are pure default. You may get better, more efficient performance if you try out different parameters. There are many. You should to spend some time tuning the FFmpeg parameters.
    • Video encoding is inherently very CPU intensive. If you are going to have any sort of volume, then you are going to have plan for it. That means running some tests, recording some metrics, and making projections. It also means paying close attention to your hardware. E.g.: The new Intel Core i7 CPU absolutely rocks at video encoding–multiple times faster than an MHz*core-count equivalent Core 2.
    • You should be able to kick off the FFMpeg jobs at as lower priority processes than your web server, etc. This will keep your server snappy even when pegged at 100% utilization.
    • If you really are going to handle volume traffic, then I would strongly suggestion moving the FFmpeg work to auxiliary, dedicated encoding servers. Depending on your traffic, you may even need an encoding farm.

    In summary, it seems to me your questions are more ‘system architecture’ and ‘encoder parameter tuning’ related.

    There is only one other fundamentally different approach I can think of that would dramatically reduce your server side encoding load, and that would be to handle everything on the client side. But somehow I think you’ve already discounted that approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I want use html5's new tag to play a wav file (currently only supported
I would like to run a str_replace or preg_replace which looks for certain words
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.