From fce42d4858d33e10b7a1c48d75838f1901b6b123 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 10 Jul 2018 15:04:35 +0200 Subject: Dive media: Extract thumbnails from videos with ffmpeg Extract thumbnails using ffmpeg. Behavior is controlled by three new preferences fields: - extract_video_thumbnails (bool): if true, thumbnails are calculated. - extract_video_thumbnail_position (int 0..100): position in video where thumbnail is fetched. - ffmpeg_executable (string): path of ffmpeg executable. If ffmpeg refuses to start, extract_video_thumbnails is set to false to avoid unnecessary churn. Video thumbnails are marked by an overlay. Signed-off-by: Berthold Stoeger --- core/pref.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/pref.h') diff --git a/core/pref.h b/core/pref.h index bae7992fe..a037a2da5 100644 --- a/core/pref.h +++ b/core/pref.h @@ -103,6 +103,9 @@ struct preferences { // ********** General ********** bool auto_recalculate_thumbnails; + bool extract_video_thumbnails; + int extract_video_thumbnails_position; // position in stream: 0=first 100=last second + const char *ffmpeg_executable; // path of ffmpeg binary int defaultsetpoint; // default setpoint in mbar const char *default_cylinder; const char *default_filename; -- cgit v1.2.3-70-g09d2