meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
common:video_encoding [2009/02/24 16:23]
laakkone
common:video_encoding [2011/09/02 12:04] (current)
Line 29: Line 29:
 Excerpt from ''​~/​.mplayer/​mencoder.conf''​ Excerpt from ''​~/​.mplayer/​mencoder.conf''​
 <​code>​ <​code>​
-[[mpeg4cg]]+[mpeg4cg]
 profile-desc="​MPEG4 for computer graphics"​ profile-desc="​MPEG4 for computer graphics"​
 ovc=lavc=yes ovc=lavc=yes
Line 37: Line 37:
 lavcopts=vmax_b_frames=2:​vb_strategy=1:​precmp=2:​cmp=2:​subcmp=2:​preme=2 lavcopts=vmax_b_frames=2:​vb_strategy=1:​precmp=2:​cmp=2:​subcmp=2:​preme=2
  
-[[mpeg4cg-1]]+[mpeg4cg-1]
 profile-desc="​mpeg4cg,​ pass 1" profile-desc="​mpeg4cg,​ pass 1"
 profile=mpeg4cg profile=mpeg4cg
 lavcopts=vpass=1:​turbo=yes lavcopts=vpass=1:​turbo=yes
  
-[[mpeg4cg-2]]+[mpeg4cg-2]
 profile-desc="​mpeg4cg,​ pass 2" profile-desc="​mpeg4cg,​ pass 2"
 profile=mpeg4cg profile=mpeg4cg
Line 51: Line 51:
  
 The 2-pass encoding is done by: The 2-pass encoding is done by:
- bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg4cg-1 -o video.avi +  ​bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg4cg-1 -o video.avi 
- bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg4cg-2 -o video.avi+  bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg4cg-2 -o video.avi
  
 ====  MPEG 1  ==== ====  MPEG 1  ====
Line 58: Line 58:
 Excerpt from ''​~/​.mplayer/​mencoder.conf''​ Excerpt from ''​~/​.mplayer/​mencoder.conf''​
 <​code>​ <​code>​
-[[mpeg1cg]]+[mpeg1cg]
 profile-desc="​universal MPEG1 for computer graphics"​ profile-desc="​universal MPEG1 for computer graphics"​
 of=mpeg=yes of=mpeg=yes
Line 66: Line 66:
 lavcopts=vcodec=mpeg1video:​vbitrate=1152:​keyint=15:​mbd=2:​aspect=4/​3 lavcopts=vcodec=mpeg1video:​vbitrate=1152:​keyint=15:​mbd=2:​aspect=4/​3
  
-[[mpeg1cg-1]]+[mpeg1cg-1]
 profile-desc="​mpeg1cg,​ pass 1" profile-desc="​mpeg1cg,​ pass 1"
 profile=mpeg1cg profile=mpeg1cg
 lavcopts=vpass=1:​turbo=yes lavcopts=vpass=1:​turbo=yes
  
-[[mpeg1cg-2]]+[mpeg1cg-2]
 profile-desc="​mpeg1cg,​ pass 2" profile-desc="​mpeg1cg,​ pass 2"
 profile=mpeg1cg profile=mpeg1cg
Line 80: Line 80:
  
 The 2-pass encoding is done by: The 2-pass encoding is done by:
- bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cg-1 -o video.mpg +  ​bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cg-1 -o video.mpg 
- bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cg-2 -o video.mpg+  bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cg-2 -o video.mpg
  
 ====  MPEG 1 high VBR for Windows XP  ==== ====  MPEG 1 high VBR for Windows XP  ====
Line 87: Line 87:
 Excerpt from ''​~/​.mplayer/​mencoder.conf''​ Excerpt from ''​~/​.mplayer/​mencoder.conf''​
 <​code>​ <​code>​
-[[mpeg1cgh]]+[mpeg1cgh]
 profile-desc="​universal MPEG1 for computer graphics, 1.8Mbps raw" profile-desc="​universal MPEG1 for computer graphics, 1.8Mbps raw"
 of=rawvideo=yes of=rawvideo=yes
Line 94: Line 94:
 lavcopts=vcodec=mpeg1video:​vbitrate=1835:​keyint=15:​mbd=2:​aspect=4/​3 lavcopts=vcodec=mpeg1video:​vbitrate=1835:​keyint=15:​mbd=2:​aspect=4/​3
  
-[[mpeg1cgh-1]]+[mpeg1cgh-1]
 profile-desc="​mpeg1cg,​ pass 1" profile-desc="​mpeg1cg,​ pass 1"
 profile=mpeg1cgh profile=mpeg1cgh
 lavcopts=vpass=1:​turbo=yes lavcopts=vpass=1:​turbo=yes
  
-[[mpeg1cgh-2]]+[mpeg1cgh-2]
 profile-desc="​mpeg1cg,​ pass 2" profile-desc="​mpeg1cg,​ pass 2"
 profile=mpeg1cgh profile=mpeg1cgh
Line 106: Line 106:
  
 The 2-pass encoding is done by: The 2-pass encoding is done by:
- bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cgh-1 -o video.raw +  ​bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cgh-1 -o video.raw 
- bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cgh-2 -o video.raw +  bash$ mencoder mf://​@vidcont.txt -mf type=png:​fps=30 -profile mpeg1cgh-2 -o video.raw 
- bash$ mplex -f 0 -b 230 -r 3500 video.raw -o video.mpg+  bash$ mplex -f 0 -b 230 -r 3500 video.raw -o video.mpg
  
 Mplex command is part of mjpegtools package. First the raw mpeg1 video is encoded, and Mplex command is part of mjpegtools package. First the raw mpeg1 video is encoded, and
Line 118: Line 118:
  
 Creating composite images with ImageMagick ''​convert''>​ http://​www.imagemagick.org/​Usage/​layers/​ Creating composite images with ImageMagick ''​convert''>​ http://​www.imagemagick.org/​Usage/​layers/​
- bash$ convert -depth 8 -size 384x288 xc:black pic1.ppm -flip -composite pic2.ppm -geometry 100x50+0+50 -composite output.png+  ​bash$ convert -depth 8 -size 384x288 xc:black pic1.ppm -flip -composite pic2.ppm -geometry 100x50+0+50 -composite output.png