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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:48:30+00:00 2026-06-11T05:48:30+00:00

I tried extract frame and save it as output.jpg On server side: f =

  • 0

I tried extract frame and save it as output.jpg On server side:

f = "ffmpeg -vframes 1 -y -ss "+time+" -i ./media/somemov.mp4 ./media/output.jpg"
subprocess.call(f, shell=True)

And on client side used:

getImage(noOfFrame);  //send the request for call the ffmpeg function from views.py

document.getElementById("main").style.backgroundImage="url(http://localhost:8000/media/output.jpg#"+ new Date().getTime();+")";

But its too slow. DIV displays always the old image becose creates image takes a long time.
for example i want image no 3 and DIV has no 2, i want image no 4, and div has no 3.

Is there any way how to extract frame from video (by ffmpeg) and send it into Python without creation the output.jpg file?

I want get the image data and send it from server (django) to webpage and set it as background-image of any DIV.

Is the “pure data sending” solution better then mine?

Thanks for help.

  • 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-11T05:48:32+00:00Added an answer on June 11, 2026 at 5:48 am

    short answer: no.

    There is a better way to do this though.

    1. video is flagged for thumbnail/screengrab creation with a certain timestamp
    2. django deletes old thumbnail if it exists
    3. django queues an event using http://pypi.python.org/pypi/django-celery (the event is the actual thumnail creation event)
    4. while the event is in the queue, the user is shown a placeholder image b/c the thumbnail doesn’t exist
    5. javascript/ajax on the DIV polling the event queue for the thumbnail to be finished.
    6. the event finished, the javascript fetches the newly created thumbnail in realtime and changes the CSS property of the DIV
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to extract individual frames from a video. ffmpeg -i face_source.wmv face_sourceframes/image%03d.jpg is
I tried to extract the last line from a JTextArea and set it to
I've tried multiple functions to extract whatever between two strings, The delimiters might contain
How can we extract a line from a multiLine EditText ? I tried this
Already tried a few of the Extract up to a character questions here, none
I've tried in 1 hour now, trying to find out how I could extract
I need to extract the following data from a txt file(displayed in link),then save
I've tried to extract just the part of the problem where I'm having trouble,
I am new to Java. I tried to extract employee data from a text
I am trying to extract records from a data.frame using grepl. Here are some

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.