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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:49:53+00:00 2026-06-03T14:49:53+00:00

I am now developing a website about sharing videos in the Internet . the

  • 0

I am now developing a website about sharing videos in the Internet .
the flow is as follows:
the user upload the video -> the server-side receives the video and uses ffmpeg to convert the video format to flv -> the user goes on doing other things in the site.
now I want to establish another thread to do the convert work(use ffmpeg to convert the video format to flv) such that the user can do other thing without waiting the video converted to flv. but don’t know how!

  • 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-06-03T14:49:55+00:00Added an answer on June 3, 2026 at 2:49 pm

    PHP does not support threads. You should use background tasks run by a cron script to do that.

    You could have a table with the jobs to be processed, for example, containing the file name on disk, the status (pending, converting, ready), etc, then have a script take all the pending jobs, change their status to converting, convert the files, then change the status to ready. This way you can also present the information to the user, and you could have multiple scripts running if you wish to convert more than one file at the same time.

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

Sidebar

Related Questions

I am developing a website for a desktop. Now I want to implement a
I have a general question about DB synchronisation. So, I'm developing a website locally
I am developing a pretty large website for a client, and its about 90%
I am developing a website that has some sort of realtime update. Now the
I'm developing a website that incorporates an XMPP bot and a custom SMTP server
i have developing a website with cakephp and now i want to implement ssl
We've got a joomla website and are now in the process of developing a
To be succinct: This startup is developing a social networking website specifically for video
I am developing a website which needs to contain functionality in which the user
I am developing a website that uses Facebook. Now for managing users I thought

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.