{"id":1262,"date":"2012-06-03T01:45:45","date_gmt":"2012-06-02T21:45:45","guid":{"rendered":"http:\/\/sandalov.org\/blog\/?p=1262"},"modified":"2012-07-17T13:08:34","modified_gmt":"2012-07-17T09:08:34","slug":"ffmpeg-for-android","status":"publish","type":"post","link":"https:\/\/sandalov.org\/blog\/1262\/","title":{"rendered":"ffmpeg for Android"},"content":{"rendered":"<div class=\"2d836d85a73757df15d0de19d7bef594\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-2287684400845931\";\r\n\/* valerymorozov *\/\r\ngoogle_ad_slot = \"5606708872\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>With this bash script one can encode videos for his Android with 480&#215;320 screen.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfor f in *.avi;\r\n  do ffmpeg -i &quot;$f&quot; -s 480x320 -vcodec mpeg4 -acodec libvo_aacenc \\\r\n     -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 `basename $f.mp4`;\r\ndone\r\n<\/pre>\n<p>Enjoy the videos on your commute! \ud83d\ude42<\/p>\n<div class=\"2d836d85a73757df15d0de19d7bef594\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-2287684400845931\";\r\n\/* valerymorozov *\/\r\ngoogle_ad_slot = \"5606708872\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>With this bash script one can encode videos for his Android with 480&#215;320 screen. for f in *.avi; do ffmpeg -i &quot;$f&quot; -s 480&#215;320 -vcodec mpeg4 -acodec libvo_aacenc \\ -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 `basename $f.mp4`; done Enjoy the videos on your commute! \ud83d\ude42<\/p>\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":""},"categories":[100],"tags":[381,256,181,257,258,259],"class_list":["post-1262","post","type-post","status-publish","format-standard","hentry","category-android","tag-android","tag-encode","tag-ffmpeg","tag-multiple-files","tag-transcode","tag-video-on-android"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts\/1262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/comments?post=1262"}],"version-history":[{"count":5,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts\/1262\/revisions"}],"predecessor-version":[{"id":1334,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts\/1262\/revisions\/1334"}],"wp:attachment":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/media?parent=1262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/categories?post=1262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/tags?post=1262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}