Editing Manual video encoding

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 68: Line 68:
  transcode -i /dev/dvd \
  transcode -i /dev/dvd \
-
           -x dvd \
+
           - x dvd \
-
           -T 1,1-16 \
+
           - T 1,1-16 \
-
           -a 0  
+
           - a 0  
-
           -j 48,0,48,0 \
+
           - j 48,0,48,0 \
-
           -Z 240x160 \
+
           - Z 240x160 \
-
           -y xvid \
+
           - y xvid \
-
           -V -w 300 \
+
           - V -w 300 \
-
           -N 0x55 \
+
           - N 0x55 \
-
           -b 48 \
+
           - b 48 \
-
           -o output.avi
+
           - o output.avi
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 "xvid" codec (a symlink to xvid2 on some systems) gives very good results with the default settings. Do not use "mpeg4", 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.
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 "xvid" codec (a symlink to xvid2 on some systems) gives very good results with the default settings. Do not use "mpeg4", 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.
Line 90: Line 90:
  transcode -i /dev/dvd \
  transcode -i /dev/dvd \
-
           -x dvd \
+
           - x dvd \
-
           -T 1,-1 \
+
           - T 1,-1 \
-
           -a 0  
+
           - a 0  
-
           -Z 256x192 \
+
           - Z 256x192 \
-
           -y xvid4 \
+
           - y xvid4 \
-
           -V -w 300 \
+
           - V -w 300 \
-
           -N 0x55 \
+
           - N 0x55 \
-
           -b 48 \
+
           - b 48 \
-
           -o output.avi
+
           - o output.avi
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't forget to fix the FOURCC with the avifix command (as above). The quality is very good, and it works fine with 25fps.
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't forget to fix the FOURCC with the avifix command (as above). The quality is very good, and it works fine with 25fps.
Line 107: Line 107:
  transcode -i /dev/dvd \
  transcode -i /dev/dvd \
-
           -x dvd \
+
           - x dvd \
-
           -T 1,-1 \
+
           - T 1,-1 \
-
           -a 0  
+
           - a 0  
-
           -Z 352x208 \
+
           - Z 352x208 \
-
           --keep_asr \
+
           - -keep_asr \
-
           -y ffmpeg \
+
           - y ffmpeg \
-
           -F mpeg4 \
+
           - F mpeg4 \
-
           -w 300 \
+
           - w 300 \
-
           -N 0x55 \
+
           - N 0x55 \
-
           -b 48 \
+
           - b 48 \
-
           -R 1 \
+
           - R 1 \
-
           -o output.avi
+
           - o output.avi
and  
and  
  transcode -i /dev/dvd \
  transcode -i /dev/dvd \
-
           -x dvd \
+
           - x dvd \
-
           -T 1,-1 \
+
           - T 1,-1 \
-
           -a 0  
+
           - a 0  
-
           -Z 352x208 \
+
           - Z 352x208 \
-
           --keep_asr \
+
           - -keep_asr \
-
           -y ffmpeg \
+
           - y ffmpeg \
-
           -F mpeg4 \
+
           - F mpeg4 \
-
           -w 300 \
+
           - w 300 \
-
           -N 0x55 \
+
           - N 0x55 \
-
           -b 48 \
+
           - b 48 \
-
           -R 2 \
+
           - R 2 \
-
           -o output.avi
+
           - o output.avi
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'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.
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'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.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)