kandi background
Explore Kits

FFmpeg | Mirror of https : //git.ffmpeg.org/ffmpeg.git | Video Utils library

 by   FFmpeg C Version: n5.0.2 License: Non-SPDX

 by   FFmpeg C Version: n5.0.2 License: Non-SPDX

kandi X-RAY | FFmpeg Summary

FFmpeg is a C library typically used in Video, Video Utils applications. FFmpeg has no bugs and it has medium support. However FFmpeg has 18 vulnerabilities and it has a Non-SPDX License. You can download it from GitHub.
FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • FFmpeg has a medium active ecosystem.
  • It has 33916 star(s) with 10519 fork(s). There are 1341 watchers for this library.
  • It had no major release in the last 6 months.
  • FFmpeg has no issues reported. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of FFmpeg is n5.0.2
FFmpeg Support
Best in #Video Utils
Average in #Video Utils
FFmpeg Support
Best in #Video Utils
Average in #Video Utils

quality kandi Quality

  • FFmpeg has 0 bugs and 0 code smells.
FFmpeg Quality
Best in #Video Utils
Average in #Video Utils
FFmpeg Quality
Best in #Video Utils
Average in #Video Utils

securitySecurity

  • FFmpeg has 18 vulnerability issues reported (0 critical, 10 high, 8 medium, 0 low).
  • FFmpeg code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
FFmpeg Security
Best in #Video Utils
Average in #Video Utils
FFmpeg Security
Best in #Video Utils
Average in #Video Utils

license License

  • FFmpeg has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
FFmpeg License
Best in #Video Utils
Average in #Video Utils
FFmpeg License
Best in #Video Utils
Average in #Video Utils

buildReuse

  • FFmpeg releases are not available. You will need to build from source code and install.
  • It has 542 lines of code, 2 functions and 6 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
FFmpeg Reuse
Best in #Video Utils
Average in #Video Utils
FFmpeg Reuse
Best in #Video Utils
Average in #Video Utils
Top functions reviewed by kandi - BETA

kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample Here

Get all kandi verified functions for this library.

Get all kandi verified functions for this library.

FFmpeg Key Features

Mirror of https://git.ffmpeg.org/ffmpeg.git

FFmpeg Examples and Code Snippets

Community Discussions

Trending Discussions on FFmpeg
  • How to generate video preview thumbnails using nodejs and ffmpeg?
  • Convert .mp4 to gif using ffmpeg in golang
  • Win10 Electron Error: Passthrough is not supported, GL is disabled, ANGLE is
  • Conversion from BGR to YUYV with OpenCV Python
  • How to list the symbols in this WASM module?
  • FFMPEG's xstack command results in out of sync sound, is it possible to mix the audio in a single encoding?
  • How to capture messages written to stderr by OpenCV?
  • How to animate this optimization model correctly
  • Docker is pushing all layers instead of the last one
  • How to detect the presence of a PAL or NTSC signal using DirectShow?
Trending Discussions on FFmpeg

QUESTION

How to generate video preview thumbnails using nodejs and ffmpeg?

Asked 2022-Mar-27 at 18:50

I am creating a custom video player, I would like to add a video preview when the user hovers a progress bar.

I am able to generate thumbnails using FFmpeg as follows.

ffmpeg -i input -filter_complex \
    "select='not(mod(n,60))',scale=240:-1,tile=layout=4x8" \
    -vframes 1 -q:v 2 outputfile.jpg

PROBLEM

To use the above-created sprite image(combined thumbnails), I need to generate a WEBVTT which contains thumbnails and frames time interval like this below.

WEBVTT

00:00:00.000 --> 00:00:03.000
thumbnails.jpg#xywh=0,0,120,68

00:00:03.000 --> 00:00:06.000
thumbnails.jpg#xywh=120,0,120,68

00:00:06.000 --> 00:00:09.000
thumbnails.jpg#xywh=240,0,120,68

I am not able to find any FFmpeg command or tutorial on how to create such WEBVTT file using node-js and FFmpeg.

Maybe someone here knows the solution to this problem? any help will be appreciated.

ANSWER

Answered 2022-Mar-27 at 18:50

You will have to make your own tool for creating the WEBVTT file. And it's a simple process, you just need to get the information you need and fill it in the following format:

00:00:00.000 --> 00:00:03.000
thumbnails.jpg#xywh=0,0,120,68

and then save the file.

Example:

Let's say you have a video that's 60 seconds long. You use ffmpeg to generate 10 thumbnails.

You write a short program (in this case Node.js) that loops based on the number of thumbnails following the above format a manner similar to this:

const fs = require('fs')
const moment = require('moment')

let video_length = 60
let number_of_thumbnails = 10
let thumb_interval = video_length/number_of_thumbnails // so 6 seconds per thumbnail

let sprite_width = 600 // Values are assumed based each thumbnail having
let sprite_height = 340 //a width of 120 and a height of 68 with a total of 10

let start_time = moment('00:00:00', "HH:mm:ss.SSS")
let end_time = moment('00:00:00', "HH:mm:ss.SSS").add(thumb_interval , 'seconds')

let thumb_output = "WEBVTT\n\n"

for(let i=0;i<=(sprite_height /68);i++){
  for(let j=0;j<=(sprite_width/120);j++){

    thumb_output +=start_time.format("HH:mm:ss.SSS") +" --> "+ end_time.format("HH:mm:ss.SSS")+"\n"

    thumb_output += "thumbnails.jpg#xywh="+(j*120)+","+(i*68)+",120,68\n\n"

    start_time.add(thumb_interval , 'seconds')
    end_time.add(thumb_interval , 'seconds')
  }
}

fs.writeFileSync('thumbnails.vtt', thumb_output)

The library Moment.js was used for simplifying the time incrementation & format

Source https://stackoverflow.com/questions/69846515

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install FFmpeg

You can download it from GitHub.

Support

The offline documentation is available in the doc/ directory. The online documentation is available in the main [website](https://ffmpeg.org) and in the [wiki](https://trac.ffmpeg.org).

Find more information at:

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 650 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

Clone
  • https://github.com/FFmpeg/FFmpeg.git

  • gh repo clone FFmpeg/FFmpeg

  • git@github.com:FFmpeg/FFmpeg.git

Share this Page

share link

See Similar Libraries in

Reuse Pre-built Kits with FFmpeg
Consider Popular Video Utils Libraries
Try Top Libraries by FFmpeg
Compare Video Utils Libraries with Highest Support
Compare Video Utils Libraries with Highest Quality
Compare Video Utils Libraries with Highest Security
Compare Video Utils Libraries with Permissive License
Compare Video Utils Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 650 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit