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 363809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:22:41+00:00 2026-05-12T13:22:41+00:00

I want to convert and show video that user uploaded. I have dedicated server

  • 0

I want to convert and show video that user uploaded. I have dedicated server and i use php for programming. Where should i start ? Thank You

  • 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-12T13:22:41+00:00Added an answer on May 12, 2026 at 1:22 pm

    This is probably the way I would do it :

    • have a PHP webpage that adds a record in database to indicate “this file has to be processed” — this page is the one that receives the uploaded file
      • and displays a message to the user ; something like “your file will be processed soon”
    • In CLI (as you have a dedicated server, you can use command line, install programs, …), have a batch that processes the new inserted files
      • first, mark a record as “processing”
      • do the conversion things ; ffmpeg would probably be the right tool for that — I’ve seen quite a few posts on SO about it, so you might find some informations about that part 🙂
      • mark the file as “processed”
    • And, on some (other ?) webpage, you can show to the user in which state his file is :
      • if it has not been processed yet
      • if it’s being processed
      • or if it’s been processed — you can then give him the link to the new video file — or do whatever you want/need with it.

    Here’s a couple of other notes :

    • The day your application becomes bigger, you can have :
      • one “web server”
      • many “processing servers” ; in your application, it’s the ffmpeg thing that will require lots of CPU, not serving web pages ; so, being able to scale that part is nice (that’s another reason to “lock” files, indicating them as “processing” in DB : that way, you will not have several processing servers trying to process the same file)
    • You only use PHP from the web server to generate web pages, which is je job of a web server
      • Heavy / long processing is not the job of a web server !
      • The day you’ll want to switch to something else than PHP for the “processing” part, it’ll be easier.

    Your “processing script” would have to be launch every couple of minutes ; you can use cron for that, if you are on a Linux-like machine.

    Of course, you could also call ffmpeg directly from the PHP page to which the file is uploaded to… But, considering this might require quite some CPU time, it might not always be a suitable solution…

    … Even if a bit easier, and will allows users to get their converted video quickier (they won’t have to wait until the cron job has been executed)

    (disclaimer : this answer is adapted from another one I made there)

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

Sidebar

Related Questions

I have some XML data that I want to convert to HTML with XSLT
I have MongoDB.BsonDocument, i want to convert that BsonDocument to List of collection, how
I have a text that I want to linkify (identify URLs and convert them
I want to show Employee details in GridView. My client wants that he should
I have an old mysql code which I want to convert into PHP data
I want to convert plaintext to link for an input I have. The HTML
I am recording a video from iPhone and I want to show the video
Overflow. I have an application which is supposed to convert a video via DirectShowSource.
I want to convert the ms access data into a document so that the
I have a drop down menu with css file and i want to convert

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.