{"id":9527,"date":"2005-10-05T01:53:17","date_gmt":"2005-10-04T22:53:17","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2005\/10\/05\/making-thumbnails-for-movies-with-ffmpeg\/"},"modified":"2005-10-05T02:13:42","modified_gmt":"2005-10-04T23:13:42","slug":"making-thumbnails-for-movies-with-ffmpeg","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/10\/05\/making-thumbnails-for-movies-with-ffmpeg\/","title":{"rendered":"Making thumbnails for movies with ffmpeg"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>I am slowly publishing our movie clips to my gallery.  <a href=\"http:\/\/gallery.menalto.com\/\">Gallery software<\/a> has an excellent ffmpeg plugin that automatically creates thumbnails for movies so that it is very easy to see what is what.  The only shortcoming it has is that it is not possible pick the frame from the clip for the thumbnail.  It always takes the first one.  Or maybe I just haven&#8217;t found out how to work aorund it.<\/p>\n<p>Anyway, the good thing is that Gallery also allows to use custom thumbnails for albums and files.  This comes very handy when the clip that you&#8217;ve posted starts with a second or two of black screne.  Or some other non-sense.   All you have to do than is running the following command:<\/p>\n<pre>\r\n[me@here dir]$ ffmpeg -y -i <strong>someclip.avi<\/strong>  \\\r\n[me@here dir]> -f singlejpeg -ss <strong>10<\/strong> -vframes 1 \\\r\n[me@here dir]> -s <strong>150x100<\/strong> -an <strong>thumb.jpg<\/strong>\r\n<\/pre>\n<p>Obviously you&#8217;d want to change a few things here.  <strong>someclip.avi<\/strong> should be the name of you movie clip file that <code>ffmpeg<\/code> will be processing.   <strong>thumb.jpg<\/strong> is the name of the file to save the thumbnail in.  <strong>10<\/strong> nearby the <code>-ss<\/code> option tells <code>ffmpeg<\/code> how many seconds from the start of the clip you want to skip.  If you want to skip a few minutes or hours, or specify a split second, then check <code>ffmpeg<\/code> manual for the syntax. And the last option that should be interesting for you is the <code>-s<\/code> which in my example has the value of <strong>150&#215;100<\/strong> &#8211; the size of the image in pixels (X,Y).<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>I am slowly publishing our movie clips to my gallery. Gallery software has an excellent ffmpeg plugin that automatically creates thumbnails for movies so that it is very easy to see what is what. The only shortcoming it has is that it is not possible pick the frame from the clip for the thumbnail. It &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/10\/05\/making-thumbnails-for-movies-with-ffmpeg\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Making thumbnails for movies with ffmpeg<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"keyring_services":[],"class_list":["post-9527","post","type-post","status-publish","format-standard","hentry","category-general"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":20122,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/01\/31\/ffmpeg-and-a-thousand-fixes\/","url_meta":{"origin":9527,"position":0},"title":"FFmpeg and a thousand fixes","author":"Leonid Mamchenkov","date":"January 31, 2014","format":"link","excerpt":"FFmpeg and a thousand fixes","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9536,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/10\/06\/i-promised-you-movies-i-give-you-movies\/","url_meta":{"origin":9527,"position":1},"title":"I promised you movies &#8211; I give you movies.","author":"Leonid Mamchenkov","date":"October 6, 2005","format":false,"excerpt":"I know that this doens't go very well with my recent connectivty degradation, but I though I would post this anyway, as I promised it for a while now. I have setup added a special album called 'Movies' to the gallery. It has the same organization like my photo albums,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19069,"url":"https:\/\/mamchenkov.net\/wordpress\/2013\/12\/27\/wordpress-plugins-youtube-channel-gallery\/","url_meta":{"origin":9527,"position":2},"title":"WordPress Plugins : Youtube Channel Gallery","author":"Leonid Mamchenkov","date":"December 27, 2013","format":"link","excerpt":"WordPress Plugins : Youtube Channel Gallery This is mighty useful for people who have a YouTube channel with plenty of videos, which they want integrated with their website. \u00a0Here is just one of the example screenshots, that demonstrates that you can use thumbnails, titles, and descriptions together.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"wordpress youtube gallery plugin","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/12\/wordpress-youtube-gallery-plugin-386x500.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":13562,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/11\/11\/screencasting-in-linux\/","url_meta":{"origin":9527,"position":3},"title":"Screencasting in Linux","author":"Leonid Mamchenkov","date":"November 11, 2010","format":false,"excerpt":"I came across an excellent tutorial on how to do screencasts in Linux. \u00a0The original article is in Russian, so I just grabbed the important bits and translated them below. Install screencast recording application. \u00a0recordmydekstop is available via yum install recordmydesktop and comes with a simple and straight-forward interface for\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8056,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/10\/14\/preview-thumbnails-in-kde\/","url_meta":{"origin":9527,"position":4},"title":"Preview thumbnails in KDE","author":"Leonid Mamchenkov","date":"October 14, 2004","format":false,"excerpt":"One of the excellent programs that comes with KDE is Konqueror. Konqueror is a file manager and a web browser. One of the nicest features of Konqueror is autogeneration of preview thumbnails. This helps a lot when dealing with image repositories and photo albums. When working with a lot of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7746,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/08\/02\/images-of-cyprus\/","url_meta":{"origin":9527,"position":5},"title":"Images of Cyprus","author":"Leonid Mamchenkov","date":"August 2, 2004","format":false,"excerpt":"Apparently, it turns out that my photo gallery is not the biggest online collection of images of Cyprus. There is a dedicated site called \"Images of Cyprus\". There are plenty of picture thumbnails. Everything is categorized and organized. If you feel the need, you can even order high resolution images\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=9527"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9527\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=9527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=9527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=9527"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=9527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}