{"id":24,"date":"2006-08-27T22:23:40","date_gmt":"2006-08-27T21:23:40","guid":{"rendered":"http:\/\/stuphi.co.uk\/wordpress\/?p=24"},"modified":"2006-10-04T11:02:30","modified_gmt":"2006-10-04T10:02:30","slug":"convert-video-to-3gp-format","status":"publish","type":"post","link":"https:\/\/stuphi.co.uk\/wordpress\/?p=24","title":{"rendered":"Convert video to 3GP format."},"content":{"rendered":"<p>Now I expected this to be hard. Or at least take a lot of fiddling to get right. However, it seems to be quite easy. <a href=\"http:\/\/www.niemueller.de\/wiki\/index.php?ConvertVideoTo3GP\">This<\/a> site has all the goodness. It requires three steps. Now assume we have a file called <code>movie.mpeg<\/code> and we want to convert it to <code>movie.3GP<\/code>. The steps required would be<\/p>\n<p><code>mencoder movie.mpeg -nosound -ovc lavc \\<br \/>\n-lavcopts vcodec=mpeg4 \\<br \/>\n-vop expand=176:144,scale=176:-2 \\<br \/>\n-o movie.avi -ofps 12<\/code><\/p>\n<p>This will extract the video, scale it and reduce the frame rate. Now we need to extract the sound.<\/p>\n<p><code>mplayer -vo null -ao pcm -af \\<br \/>\nresample=8000,volume=+4db:sc movie.mpeg<\/code><\/p>\n<p>An output file called <code>audiodump.wav<\/code> will be created that has the audio that we require. Finally we need to combine these two files together.<\/p>\n<p><code>ffmpeg -i movie.avi -i audiodump.wav \\<br \/>\n-b 48 -ac 1 -ab 12 -map 0.0 -map 1.0 movie.3GP<\/code><\/p>\n<p>And that is that. I suppose I should add this to the <a href=\"http:\/\/www.hantslug.org.uk\">HantsLUG<\/a> wiki. Next I need to bundle this lot up into a script so I can then forget all about how this works \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now I expected this to be hard. Or at least take a lot of fiddling to get right. However, it seems to be quite easy. This site has all the goodness. It requires three steps. Now assume we have a &hellip; <a href=\"https:\/\/stuphi.co.uk\/wordpress\/?p=24\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,5],"tags":[],"_links":{"self":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/24"}],"collection":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":0,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}