<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=67.228.80.194</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=67.228.80.194"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/67.228.80.194"/>
	<updated>2026-04-22T08:29:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Manual_video_encoding&amp;diff=22396</id>
		<title>Manual video encoding</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Manual_video_encoding&amp;diff=22396"/>
		<updated>2009-09-14T10:23:09Z</updated>

		<summary type="html">&lt;p&gt;67.228.80.194: /* Mencoder */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
For automatic video conversion tools, see the [[video encoding]] article.&lt;br /&gt;
&lt;br /&gt;
Enlistment is a contract; but it is one of those contracts which changes the status; and, where that is changed, no breach of the contract destroys the new status or relieves from the obligations which its existence imposes. , &amp;lt;a href=&amp;quot;http://cagascv.angelfire.com/www.faroutmusic.org.html&amp;quot;&amp;gt;www.faroutmusic.org&amp;lt;/a&amp;gt;, [url=&amp;quot;http://cagascv.angelfire.com/www.faroutmusic.org.html&amp;quot;]www.faroutmusic.org[/url], http://cagascv.angelfire.com/www.faroutmusic.org.html www.faroutmusic.org,  =-[[, &amp;lt;a href=&amp;quot;http://wlauhia.angelfire.com/www.trailethorsetrailers.com.html&amp;quot;&amp;gt;www.trailethorsetrailers.com&amp;lt;/a&amp;gt;, [url=&amp;quot;http://wlauhia.angelfire.com/www.trailethorsetrailers.com.html&amp;quot;]www.trailethorsetrailers.com[/url], http://wlauhia.angelfire.com/www.trailethorsetrailers.com.html www.trailethorsetrailers.com,  702356, &amp;lt;a href=&amp;quot;http://xinoovt.angelfire.com/syb.lnxclone.html&amp;quot;&amp;gt;syb.lnxclone&amp;lt;/a&amp;gt;, [url=&amp;quot;http://xinoovt.angelfire.com/syb.lnxclone.html&amp;quot;]syb.lnxclone[/url], http://xinoovt.angelfire.com/syb.lnxclone.html syb.lnxclone,  :(, &amp;lt;a href=&amp;quot;http://yrzcnpu.angelfire.com/www.jeffautomotive.com.html&amp;quot;&amp;gt;www.jeffautomotive.com&amp;lt;/a&amp;gt;, [url=&amp;quot;http://yrzcnpu.angelfire.com/www.jeffautomotive.com.html&amp;quot;]www.jeffautomotive.com[/url], http://yrzcnpu.angelfire.com/www.jeffautomotive.com.html www.jeffautomotive.com,  37948, &amp;lt;a href=&amp;quot;http://ypmhivy.angelfire.com/www.epions.com.html&amp;quot;&amp;gt;www.epions.com&amp;lt;/a&amp;gt;, [url=&amp;quot;http://ypmhivy.angelfire.com/www.epions.com.html&amp;quot;]www.epions.com[/url], http://ypmhivy.angelfire.com/www.epions.com.html www.epions.com,  168, &amp;lt;a href=&amp;quot;http://xujojyp.angelfire.com/www.seagull.no.html&amp;quot;&amp;gt;www.seagull.no&amp;lt;/a&amp;gt;, [url=&amp;quot;http://xujojyp.angelfire.com/www.seagull.no.html&amp;quot;]www.seagull.no[/url], http://xujojyp.angelfire.com/www.seagull.no.html www.seagull.no,  446, &amp;lt;a href=&amp;quot;http://fvgeeoi.angelfire.com/remoute.com.html&amp;quot;&amp;gt;remoute.com&amp;lt;/a&amp;gt;, [url=&amp;quot;http://fvgeeoi.angelfire.com/remoute.com.html&amp;quot;]remoute.com[/url], http://fvgeeoi.angelfire.com/remoute.com.html remoute.com,  lujoa, &amp;lt;a href=&amp;quot;http://yglswau.angelfire.com/www.mredsaction.html&amp;quot;&amp;gt;www.mredsaction&amp;lt;/a&amp;gt;, [url=&amp;quot;http://yglswau.angelfire.com/www.mredsaction.html&amp;quot;]www.mredsaction[/url], http://yglswau.angelfire.com/www.mredsaction.html www.mredsaction,  637, &amp;lt;a href=&amp;quot;http://oiuisxf.angelfire.com/woot.cxom.html&amp;quot;&amp;gt;woot.cxom&amp;lt;/a&amp;gt;, [url=&amp;quot;http://oiuisxf.angelfire.com/woot.cxom.html&amp;quot;]woot.cxom[/url], http://oiuisxf.angelfire.com/woot.cxom.html woot.cxom,  35346, &amp;lt;a href=&amp;quot;http://bobnuhx.angelfire.com/www.pokemoemerald.com.html&amp;quot;&amp;gt;www.pokemoemerald.com&amp;lt;/a&amp;gt;, [url=&amp;quot;http://bobnuhx.angelfire.com/www.pokemoemerald.com.html&amp;quot;]www.pokemoemerald.com[/url], http://bobnuhx.angelfire.com/www.pokemoemerald.com.html www.pokemoemerald.com,  :[, &amp;lt;a href=&amp;quot;http://monxoiu.angelfire.com/www.disneyfaries.com.au.html&amp;quot;&amp;gt;www.disneyfaries.com.au&amp;lt;/a&amp;gt;, [url=&amp;quot;http://monxoiu.angelfire.com/www.disneyfaries.com.au.html&amp;quot;]www.disneyfaries.com.au[/url], http://monxoiu.angelfire.com/www.disneyfaries.com.au.html www.disneyfaries.com.au,  cbk, &amp;lt;a href=&amp;quot;http://qhzhyul.angelfire.com/afainc.biz.html&amp;quot;&amp;gt;afainc.biz&amp;lt;/a&amp;gt;, [url=&amp;quot;http://qhzhyul.angelfire.com/afainc.biz.html&amp;quot;]afainc.biz[/url], http://qhzhyul.angelfire.com/afainc.biz.html afainc.biz,  %-(((, &amp;lt;a href=&amp;quot;http://skliugu.angelfire.com/lendingfinancialsolutions.com.html&amp;quot;&amp;gt;lendingfinancialsolutions.com&amp;lt;/a&amp;gt;, [url=&amp;quot;http://skliugu.angelfire.com/lendingfinancialsolutions.com.html&amp;quot;]lendingfinancialsolutions.com[/url], http://skliugu.angelfire.com/lendingfinancialsolutions.com.html lendingfinancialsolutions.com,  hdk,&lt;br /&gt;
&lt;br /&gt;
== ffmpeg ==&lt;br /&gt;
&lt;br /&gt;
It is possible to transcode a video with ffmpeg. The video will have a corrupted fourcc header, but this can be corrected with the tool avifix from transcode or by using -vtag DIVX in ffmpeg command line:&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i infile -vcodec mpeg4 -acodec mp3 -s 176:144 -b 200 -pass 1 outfile.avi&lt;br /&gt;
 ffmpeg -i infile -vcodec mpeg4 -acodec mp3 -s 176:144 -b 200 -pass 2 outfile.avi&lt;br /&gt;
 avifix -i outfile.avi -F &amp;quot;divx&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Or directly (without avifix):&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i infile -vcodec mpeg4 -acodec mp3 -vtag DIVX -s 176:144 -b 200 -pass 1 outfile.avi&lt;br /&gt;
 ffmpeg -i infile -vcodec mpeg4 -acodec mp3 -vtag DIVX -s 176:144 -b 200 -pass 2 outfile.avi&lt;br /&gt;
&lt;br /&gt;
== transcode ==&lt;br /&gt;
&lt;br /&gt;
You can convert a DVD using transcode using the following command line:&lt;br /&gt;
&lt;br /&gt;
 transcode -i /dev/dvd \&lt;br /&gt;
          -x dvd \&lt;br /&gt;
          -T 1,1-16 \&lt;br /&gt;
          -a 0 &lt;br /&gt;
          -j 48,0,48,0 \&lt;br /&gt;
          -Z 240x160 \&lt;br /&gt;
          -y xvid \&lt;br /&gt;
          -V -w 300 \&lt;br /&gt;
          -N 0x55 \&lt;br /&gt;
          -b 48 \&lt;br /&gt;
          -o output.avi&lt;br /&gt;
&lt;br /&gt;
This transcodes chapters 1 to 16 of title 1. The DVD has 720x576, but uses only 720x480, so the command clips off the remaining 96 black pixels with the -j option. Output size is 240x160. Video bitrate is 300kbps, audio is 48kbps. The &amp;quot;xvid&amp;quot; codec (a symlink to xvid2 on some systems) gives very good results with the default settings. Do not use &amp;quot;mpeg4&amp;quot;, it needs too much processor power for decoding which causes loads of artefacts when playing on the Nokia, even if it looks good on a PC.&lt;br /&gt;
&lt;br /&gt;
Fix the FOURCC with&lt;br /&gt;
&lt;br /&gt;
 avifix -i output.avi -F DIVX&lt;br /&gt;
&lt;br /&gt;
The resulting AVI file has 114 MByte for 45 minutes/25fps. Things can certainly be improved by tuning xvid options using a ./xvid2.cfg.&lt;br /&gt;
&lt;br /&gt;
Here is another example, where the DVD has 720x576 fully used for 4:3 content. The output size is 256x192 (4x64, 3x64). This example uses the xvid4 codec. Note that you must not use B-frames, the 770/N800 doesn&#039;t seem to be able to handle them. You can turn them off by setting max_bframes=0 in your xvid4.cfg, you can easily do this with the xvid4conf tool. After you did this, the following command line will do the rest:&lt;br /&gt;
&lt;br /&gt;
 transcode -i /dev/dvd \&lt;br /&gt;
          -x dvd \&lt;br /&gt;
          -T 1,-1 \&lt;br /&gt;
          -a 0 &lt;br /&gt;
          -Z 256x192 \&lt;br /&gt;
          -y xvid4 \&lt;br /&gt;
          -V -w 300 \&lt;br /&gt;
          -N 0x55 \&lt;br /&gt;
          -b 48 \&lt;br /&gt;
          -o output.avi&lt;br /&gt;
&lt;br /&gt;
The -T 1,-1 option will convert the whole title 1 (all chapters). You can try a lower video bitrate by adjusting the -w parameter (300kbps in this example). Don&#039;t forget to fix the FOURCC with the avifix command (as above). The quality is very good, and it works fine with 25fps.&lt;br /&gt;
&lt;br /&gt;
Additional informations regarding transcode and IT 2006 beta :&lt;br /&gt;
&lt;br /&gt;
I suggest using the following command-line :&lt;br /&gt;
&lt;br /&gt;
 transcode -i /dev/dvd \&lt;br /&gt;
          -x dvd \&lt;br /&gt;
          -T 1,-1 \&lt;br /&gt;
          -a 0 &lt;br /&gt;
          -Z 352x208 \&lt;br /&gt;
          --keep_asr \&lt;br /&gt;
          -y ffmpeg \&lt;br /&gt;
          -F mpeg4 \&lt;br /&gt;
          -w 300 \&lt;br /&gt;
          -N 0x55 \&lt;br /&gt;
          -b 48 \&lt;br /&gt;
          -R 1 \&lt;br /&gt;
          -o output.avi&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
 transcode -i /dev/dvd \&lt;br /&gt;
          -x dvd \&lt;br /&gt;
          -T 1,-1 \&lt;br /&gt;
          -a 0 &lt;br /&gt;
          -Z 352x208 \&lt;br /&gt;
          --keep_asr \&lt;br /&gt;
          -y ffmpeg \&lt;br /&gt;
          -F mpeg4 \&lt;br /&gt;
          -w 300 \&lt;br /&gt;
          -N 0x55 \&lt;br /&gt;
          -b 48 \&lt;br /&gt;
          -R 2 \&lt;br /&gt;
          -o output.avi&lt;br /&gt;
&lt;br /&gt;
using ffmpeg, there is no need to fix FOURCC. -R x is used to do two-pass encoding. --keep_asr will resize source video to fit in the specified target resolution, no need to worry about cropping or adding black borders if source isn&#039;t using the same aspect ratio (DVD often uses 1.77 anamorphic format ), transcode will take care of it. The only choice to do is target resolution : 320x208 or 240x144 for 16:9 source, 352x288 or 176x144 for 4:3 source.&lt;br /&gt;
&lt;br /&gt;
== H.264 (with mencoder) ==&lt;br /&gt;
&lt;br /&gt;
OS2008 plays H.264 videos out of the box - in theory. A lot of existing H.264-material will not play well on N8x0-devices. [http://talk.maemo.org/showthread.php?t=13514&amp;amp;page=4 This thread] on talk.maemo.org indicates that a video file must adhere to the Baseline Profile, level 1.2, of the H.264-standard to be compatible with both the OS2008 Media Player and MPlayer. (See Wikipedia for a detailed information on [http://en.wikipedia.org/wiki/H.264#Profiles profiles] and [http://en.wikipedia.org/wiki/H.264#Levels levels].)&lt;br /&gt;
&lt;br /&gt;
With mencoder, the following settings are known to work. (Simplified; you may use 2-pass etc.) They are originally taken and adapted from a website about H.264 on the N95 and given here only as an example for those who want to experiment with manual settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ## Create video &lt;br /&gt;
 #  I omitted various filters I use to make the video smaller&lt;br /&gt;
 #  while encoding. A video resolution of 352:208 is assumed here,&lt;br /&gt;
 #  you can achieve it by adding something like &lt;br /&gt;
 #  -vf dsize=15/9,scale=352:208&lt;br /&gt;
 #  Whats important is the part after -x264encopts:&lt;br /&gt;
 #  * bitrate=300: max would be 364 according to level 1.2&lt;br /&gt;
 #  * nocabac: no CABAC Entropy Coding according to Baseline profile&lt;br /&gt;
 #  * partitions=p8×8,b8×8,i4×4: no idea what this is, but didn&#039;t work &lt;br /&gt;
 #    with different settings&lt;br /&gt;
 #  * level_idc=12: indicate to decoder that we&#039;re at level 1.2&lt;br /&gt;
 #  * frameref=2: influences peak signal to noise ratio (?)&lt;br /&gt;
 #  * me=umh: motion estimation search method&lt;br /&gt;
 #  * bframes=0: no B-frames according to basline profile&lt;br /&gt;
 #  * nodeblock: (?)&lt;br /&gt;
 #  * noweightb: (?)&lt;br /&gt;
 #  * nomixed_refs: unknown, but didn&#039;t work without it&lt;br /&gt;
 #  so:&lt;br /&gt;
 mencoder $INPUTFILE  \&lt;br /&gt;
    -nosound \&lt;br /&gt;
    -ovc x264 \&lt;br /&gt;
 &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;-x264encopts&amp;amp;nbsp;bitrate=300:nocabac:partitions=p8×8,b8×8,i4×4:level_idc=12:frameref=2:me=umh:bframes=0:nodeblock:noweightb:nomixed_refs&amp;amp;nbsp;\&lt;br /&gt;
    -of rawvideo -o N800.264&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 ## Create audio&lt;br /&gt;
 #  The standard is picky about valid container formats for h.264&lt;br /&gt;
 #  and audio codecs within these containers.&lt;br /&gt;
 #  AAC is a good choice; bitrate settings may be too conservative&lt;br /&gt;
 mencoder $INPUTFILE  \&lt;br /&gt;
 	-ovc copy \&lt;br /&gt;
 	-oac faac -faacopts br=40:mpeg=4:object=2 \&lt;br /&gt;
 	-af resample=32000:0:2,volume=4:1 \&lt;br /&gt;
 	-of rawaudio -o N800.aac&lt;br /&gt;
 #&lt;br /&gt;
 ## Mux MPEG4 file&lt;br /&gt;
 #  MP4Box is part of the GPAC package.&lt;br /&gt;
 #  You could also use mp4creator, &lt;br /&gt;
 #  but that&#039;s buggy and no longer actively developed&lt;br /&gt;
 #  -fps ist frames per second; you need to give this info&lt;br /&gt;
 MP4Box -new -add N800.264 -add N800.aac -fps 25.000 N800.mp4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The thread on talk.maemo.org gives an idea how other software may work. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Users]]&lt;br /&gt;
[[Category:Media]]&lt;/div&gt;</summary>
		<author><name>67.228.80.194</name></author>
	</entry>
</feed>