Monthly Archives: October 2013

ffmpeg image thumbnail every minute, seconds… the math!

 

This will create one thumbnail image every minute, named img001.jpg, img002.jpg, img003.jpg, … (%03d means that ordinal number of each thumbnail image should be formatted using 3 digits)

ffmpeg -i myvideo.avi -f image2 -vf fps=fps=1/60 img%03d.jpg

This will create one thumbnail image every 10 minutes, named thumb0001.bmp, thumb0002.bmp, thumb0003.bmp, …

ffmpeg -i test.flv -f image2 -vf fps=fps=1/600 thumb%04d.bmp

This will create one thumbnail image every I-frame, named thumb0001.bmp, thumb0002.bmp, thumb0003.bmp, …

https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video

So, we can use some logical/math to make some conclusions…
1/60 stands for 1 thumb at each 60 seconds,  the same as say each minute…
1/600 stands for 1 thumb at each 60 seconds * 10, the same as say each 10 minutes…

if we want a thumb at each 2 minutes we should multiply the 60 per 2, that will gives us 1/120… this way we can also assume that if we want a thumb at each 4 seconds, we can use 1/4.

Useful link
https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video

pre-configurated of output dimensions on ffmpeg

Some pre-configurations of output dimensions on ffmpeg.

ffmpeg -i source.ext -r 1 -s 4cif -f image2 img%5d.jpg

This will produce you pictures with 704 width * 576 height

sqcif 128×96 qcif 176×144 cif 352×288
4cif 704×576 qqvga 160×120 qvga 320×240
vga 640×480 svga 800×600 xga 1024×768
uxga 1600×1200 qxga 2048×1536 sxga 1280×1024
qsxga 2560×2048 hsxga 5120×4096 wvga 852×480
wxga 1366×768 wsxga 1600×1024 wuxga 1920×1200
woxga 2560×1600 wqsxga 3200×2048 wquxga 3840×2400
whsxga 6400×4096 whuxga 7680×4800 cga 320×200
hd480 852×480 hd720 1280×720 hd1080 1920×1080

Cassandra vs MongoDB vs CouchDB vs Redis vs Riak vs HBase vs Couchbase vs Neo4j vs Hypertable vs ElasticSearch vs Accumulo vs VoltDB vs Scalaris comparison

Heres a good – for a n00b guys like me – article about NoSQL databases!

Cassandra vs MongoDB vs CouchDB vs Redis vs Riak vs HBase vs Couchbase vs Neo4j vs Hypertable vs ElasticSearch vs Accumulo vs VoltDB vs Scalaris comparison

http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis

Facebook!

INFOGRAPHIC: Here’s Why Facebook Needs To Worry About The Rise Of WhatsApp And Snapchat

Read more: http://www.businessinsider.com/facebook-battles-snapchat-and-whats-app-2013-9#ixzz2gUDi0E4E