HuffYUV video codec is very fast. Incredibly fast!<br><div class="gmail_quote"><div class="gmail_quote">Video files are big, but you can compress them afterwards how you want.<br><br>HuffYUV - Lossless codec from BenRG <br>
Bit-for-bit identical with the original input!<br>

<br>HuffYUV is a lossless video codec created by Ben Rudiak-Gould... <br>"Lossless" means that the output from the decompressor is bit-for-bit identical with the original input to the compressor, given that no color space conversion takes place. Huffyuv's algorithm is similar to that of lossless JPEG-LS, in that it predicts each sample and then Huffman-encodes the error.<br>


VLC media player and MPlayer<br><a href="http://en.wikipedia.org/wiki/Huffyuv" target="_blank">http://en.wikipedia.org/wiki/Huffyuv</a><br><br>Step 1: Record the screen<br><br>ffmpeg -f x11grab -r 25 -s 1392x1040 -i :0.0 -vcodec huffyuv -sameq Lossless-HuffYUV.avi<br>


<br>Result: Lossless-HuffYUV.avi - it can be played with VLC and MPlayer<br>This works on Ubuntu 9.04<br>It should also work on Ubuntu 8.10.<br>No recompilation of ffmpeg is required.<br><br>2 minutes Full Screen => 250MB Lossless-HuffYUV.avi<br>


<br><br>Step 2: Convert HuffYUV AVI to Mpeg2 video<br><br>ffmpeg -i Lossless-HuffYUV.avi -f mpeg2video -sameq Mpeg2.mpg<br><br>Result: Mpeg2.mpg - it can be played with VLC and MPlayer<br>This works on Ubuntu 9.04<br>It should work on Ubuntu 8.10 too.<br>


No recompilation of ffmpeg is required.<br><br>2 minutes Full Screen => 100MB Mpeg2.mpg<br><br><br>Step 3: Convert Mpeg2 to Microsoft MPEG-4 4.2 video<br><br>mencoder -forceidx -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts vcodec=msmpeg4v2:vhq -o Windoze-MPEG4.avi Mpeg2.mpg<br>


<br>Result: Windoze-MPEG4.avi - it can be played by any player, including Windows Media Player.<br>This works on Ubuntu 9.04<br>It should work on Ubuntu 8.10 too.<br>No recompilation of ffmpeg or mencoder is required.<br>


<br>2 minutes Full Screen => 12MB Windoze-MPEG4.avi<br><br><br>On Ubuntu 9.04 you can also encode to mpeg4 and XviD and mp4 (libx264):<br><br><br>Step I: Convert HuffYUV AVI to mpeg4 video<br><br>ffmpeg -i Lossless-HuffYUV.avi -sameq mpeg4.avi<br>


<br>Result: mpeg4.avi - it can be played with VLC and MPlayer<br><br>2 minutes Full Screen => 6MB mpeg4.avi<br><br><br>Step II: Convert HuffYUV AVI to XviD video<br><br>ffmpeg -i Lossless-HuffYUV.avi -vcodec libxvid -aspect 1.3333 -sameq XviD.avi<br>


<br>Result: XviD.avi - it can be played with Totem, VLC and MPlayer<br><br>2 minutes Full Screen => 5MB XviD.avi<br><br><br>Step III: Convert HuffYUV AVI to mp4 (libx264) video<br><br>ffmpeg -i Lossless-HuffYUV.avi -vcodec libx264 -sameq libx264.mp4<br>


<br>Result: libx264.mp4 - it can be played with Totem, VLC and MPlayer<br><br>2 minutes Full Screen => 2MB libx264.mp4<br><br><br>You can add an audio file to avi with ffmpeg or mencoder.<br>VLC allows to play a video file with "an external audio file".<br>


<br>You can edit your videos with ffmpeg, mencoder, or Avidemix (GUI), or else.<br><br><br>
</div><br>
</div><br>