Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
Screenshot of video file in Electron Angular project without ffmpeg

Within my Electron Angular project, I want to preview a video file which is stored locally on Windows / MacOS within a frame, like this:

enter image description here

On the left side, currently, there is a placeholder image. But i want to have a snapshot out of the video, it is not important at which position of the video this is taken.

Our attempt at the moment is to use fluent-ffmpeg library from npm:

var ffmpeg = require('fluent-ffmpeg');

let command = new ffmpeg({source: "MY_VIDEO_PATH"}).inputOptions('-protocol_whitelist file,http,https,tcp,tls,crypto')

command.takeScreenshots({
    count: 1,
    timemarks: ['5%'],
    filename: "MY_FILENAME"
}, "DESTINATION_FOLDER_PATH_FOR_THUMB");

It takes the screen after 5% of the video would have been played. However, this requires ffmpeg executable to be present, which actually costs more space for the application as we want to use.

So: Can i pick out a screenshot out of a video file without using additional executables like ffmpeg? If there are some suitable npm libaries, this would be also fine, as they are a lot smaller.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda