Scroll to navigation

FFMPEGTHUMBNAILER(1) General Commands Manual FFMPEGTHUMBNAILER(1)

NAME

ffmpegthumbnailer - fast and lightweight video thumbnailer

SYNOPSIS

ffmpegthumbnailer [options]

DESCRIPTION

Ffmpegthumbnailer is a lightweight video thumbnailer that can be used by file managers to create thumbnails for your video files. The thumbnailer uses ffmpeg to decode frames from the video files, so supported videoformats depend on the configuration flags of ffmpeg.

OPTIONS

: input file
: output file
: thumbnail size (use 0 for original size) (default: 128)
: image quality (0 = bad, 10 = best) (default: 8) (only for jpeg)
: override image format (jpeg or png) (default: determined by filename)
: time to seek to (percentage or absolute time hh:mm:ss) (default: 10%)
: override the comma-separated input protocol allowlist (default: ALL). An empty string denies all input protocols.
: ignore aspect ratio and generate square thumbnail
: create a movie strip overlay
: prefer embedded image metadata over video content
: print version number
: enable FFmpeg logging to stderr (disabled by default).
: display this help

INPUT PROTOCOLS AND SECURITY

All protocols supported by the FFmpeg build are allowed by default (ALL). File managers and other callers can use -P to restrict the allowlist. For example, to allow only local files and pipes:

ffmpegthumbnailer -i video.mp4 -o thumbnail.png -P file,pipe

Omitting -P or passing -P ALL allows all protocols. Passing -P '' denies all input protocols. The allowlist also restricts nested protocols, such as those opened by playlists or used as transports by other protocols.

Network access is enabled by default, so this default does not prevent SSRF. Applications accepting untrusted input should restrict the allowlist (for example, to file,pipe) and apply network isolation as needed.

This is not a filesystem sandbox: allowing file does not restrict which local paths can be accessed. Applications processing untrusted input should apply appropriate filesystem and process isolation. A caller-provided AVFormatContext is the caller's responsibility, including its I/O and protocol restrictions.

LIBRARY API

The same allowlist can be overridden using the C++ method

VideoThumbnailer::setAllowedProtocols(std::string_view)

or the C function

int video_thumbnailer_set_allowed_protocols(video_thumbnailer*, const char*)

An empty string denies all protocols. A NULL protocols argument to the C function is rejected with a return value of -1.

AUTHOR

Written by Dirk Vanden Boer.

REPORTING BUGS

Report bugs to <http://code.google.com/p/ffmpegthumbnailer/issues/list>

COPYRIGHT

Copyright © 2008 Dirk Vanden Boer <dirk.vdb@gmail.com>
This is free software. You may redistribute copies of it under the terms of the GNU General Public License (version 2 or later) <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.