Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda