{"id":42,"date":"2006-07-30T19:13:13","date_gmt":"2006-07-30T17:13:13","guid":{"rendered":"http:\/\/www.devious.dk\/wordpress\/2006\/07\/30\/video-files-for-your-ipod-video-the-easy-way\/"},"modified":"2006-07-30T19:13:13","modified_gmt":"2006-07-30T17:13:13","slug":"video-files-for-your-ipod-video-the-easy-way","status":"publish","type":"post","link":"https:\/\/tommy.winther.nu\/wordpress\/2006\/07\/30\/video-files-for-your-ipod-video-the-easy-way\/","title":{"rendered":"Video files for your Ipod Video the easy way"},"content":{"rendered":"<p>Once in a while I need to convert some video files so they are playable on my Ipod. I can never remember all the parameters I need to specify to ffmpeg, so I hacked together a small scripts that does all the magic. It does a two-pass encoding of the video file and the quality is quite nice.<\/p>\n<p>You can get the <a href=\"http:\/\/www.devious.dk\/files\/2006\/07\/ffmpeg2ipod.sh\">script here<\/a>. If ffmpeg complains about missing codecs, etc. simply get it from <a target=\"_blank\" href=\"http:\/\/www.debian-multimedia.org\/\">Debian Multimedia<\/a>.<\/p>\n<p>If you insist on running ffmpeg directly you can try these parameters, that&#8217;s what I used to do before I made the script.<\/p>\n<pre>ffmpeg -i [in file] -vcodec xvid -b 384 -s 320x240 -qmin 2 -qmax 5 -bufsize 4096\r\n-acodec aac -ab 96 -g 300 -pass [1 or 2] -passlogfile \/tmp\/ffmpeg.stats -f mp4 [out file]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Once in a while I need to convert some video files so they are playable on my Ipod. I can never remember all the parameters I need to specify to ffmpeg, so I hacked together a small scripts that does all the magic. It does a two-pass encoding of the video file and the quality [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-linux","category-code","post-preview"],"_links":{"self":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}