You are not logged in.

#1 2016-08-02 21:30:32

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

video thumbs

Probably my Nth attempt to make a half-decent thumbnailer for video files, this one should also work with png images, producing 100x100px jpegs.

Usage

videothumb *.mp4

Download
https://raw.githubusercontent.com/bront … videothumb

warning: work in progress.

Last edited by brontosaurusrex (2016-08-02 21:30:54)

Offline

#2 2016-08-03 07:43:18

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: video thumbs

madoromi: Example command line? (Actually I couldn't find the executable at all with the one from Debian repos, not that I really tried hard)

Last edited by brontosaurusrex (2016-08-03 07:58:20)

Offline

#3 2016-08-03 08:07:43

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: video thumbs

^

sudo apt-get install ffmpegthumbnailer

and the thumbnails automagically show up in PCManFM and Thunar (if they're set to show preview thumbnails).

EDIT:  Logout/login necessary to have video thumbnails show up in PCManFM

Last edited by pvsage (2016-08-03 08:21:08)


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#4 2016-08-03 08:34:43

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: video thumbs

@pvsage: I'am thinking part of html/bb/markdown code generator, something that can be run on headless server.

Offline

#5 2016-08-03 08:46:44

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: video thumbs

Oh; in that case:

~$ ffmpegthumbnailer -h
Usage: ffmpegthumbnailer [options]

Options:
  -i<s>   : input file
  -o<s>   : output file
  -s<n>   : thumbnail size (use 0 for original size) (default: 128)
  -t<n|s> : time to seek to (percentage or absolute time hh:mm:ss) (default: 10%)
  -q<n>   : image quality (0 = bad, 10 = best) (default: 8)
  -c      : override image format (jpeg or png) (default: determined by filename)
  -a      : ignore aspect ratio and generate square thumbnail
  -f      : create a movie strip overlay
  -w      : workaround issues in old versions of ffmpeg
  -v      : print version number
  -h      : display this help

should get you started.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#6 2016-08-03 09:32:01

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: video thumbs

Debian says

Package ffmpegthumbnailer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

So you compiled that?

Last edited by brontosaurusrex (2016-08-03 09:32:15)

Offline

#7 2016-08-03 09:54:36

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: video thumbs

BunsenLabs, Debian Stable:

apt-cache policy ffmpegthumbnailer
ffmpegthumbnailer:
  Installed: (none)
  Candidate: 2.0.8-2+b4
  Version table:
     2.0.8-2+b4 0
        500 http://ftp.uk.debian.org/debian/ jessie/main amd64 Packages

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#8 2016-08-03 10:13:57

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: video thumbs

Right, I had some pining going on, thanks, will test.

so far (ffmpegthumbnailer 2.0.8 ):
cons:
- Can't do fill-the-box resize like this: ( so some scripting will still be needed )
square
- meaningless errors: "Not a native file, thumbnailing will likely fail"

pros:
- it is fast

Last edited by brontosaurusrex (2016-08-03 10:25:51)

Offline

Board footer

Powered by FluxBB