FFmpeg

FFmpeg is open-source multimedia framework thay can be used for recording, converting, and streaming videos.

FFmpeg is command line program (no user interface)

Most common use case for FFmpeg:

  • Convert videos from almost any format to almost any format
  • Extract video frames into seperate images
  • Trimming the begining or the end of a video
  • Make a tinelapse video from many pictures
  • Add or remove audio tracks to a video
  • Mix different audio streams into one
  • Resize a video scaling up or down, change the aspect of ratio
  • Overlay videos, image or text
  • Change frame rate and the speed of video
  • Concatenate different videos one after another
  • Create transitions between videos using fade in, fade out and other transitions
  • Compress video file size by tuning certain parameters
  • Improve video correcting brightness, color temperature, constrast, saturation

FFmpeg come with 3 command line tools:

  • ffmpeg: used to edit/transform video or multimedia files
  • ffprobe: used to inspect a video or multimedia files
  • ffplay: used to play a multimedia file

FFmpeg command line structure:

ffmpeg

-y

-loop 1 -t 2

-i image.png

-pix_fmt yuv420p -vcodec libx264

output.pm4

  • The red part are global options
  • The green part are the input options
  • The blue part is the input file
  • The orange part are output options
  • The magenta part is output file

Published by Blackcat

SW Engineer

Leave a comment

Design a site like this with WordPress.com
Get started