ffmpeg

Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2006-11-30 21:10:58
Size: 465
Editor: 84-45-197-14
Comment:
Revision 5 as of 2013-10-22 02:52:13
Size: 968
Editor: ip70-187-186-217
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:



Home page: http://ffmpeg.mplayerhq.hu/



Command line - compilation required to enable screen capture as this isn't a standard feature of ffmpeg.
Line 13: Line 5:
=== Obtain the ffmpeg source === {{{
sudo apt-get install ffmpeg
}}}
Line 15: Line 9:
=== Obtain the patch to enable screen capture === == Recording ==
Line 17: Line 11:
This will record a lossless video using the 'huffyuv' codec at 1024x768 resolution at 25 frames per second.
Line 18: Line 13:
Patch to enable screen recording: http://clemens.endorphin.org/weblog/archives/2006-02.shtml#e2006-02-15T11_41_03.txt {{{
ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0 -vcodec huffyuv screencast.avi
}}}
Line 20: Line 17:
== Converting to other formats ==
Line 21: Line 19:
=== Configure === === MPEG2 ===
Line 23: Line 21:
=== Compile === {{{
ffmpeg -i screencast.avi -f mpeg2video -sameq mpeg2.mpg
}}}
Line 25: Line 25:
=== Test === === MPEG4 4.2 ===
Line 27: Line 27:
Convert MPEG2 video (created above) into MPEG4. This should play back in Windows Media Player.

{{{
mencoder -forceidx -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts vcodec=msmpeg4v2:vhq -o windows_mpeg4.avi mpeg2.mpg
}}}
=== Libavcodec MPEG 4 ===

{{{
ffmpeg -i screencast.avi -sameq mpeg4.avi
}}}

=== X264 ===

Convert HuffYUV AVI to mp4 (libx264) video.
{{{
ffmpeg -i screencast.avi -vcodec libx264 -sameq libx264.mp4
}}}

=== Xvid ===

{{{
ffmpeg -i screencast.avi -vcodec libxvid -sameq XviD.avi
}}}

ffmpeg

Installation

sudo apt-get install ffmpeg

Recording

This will record a lossless video using the 'huffyuv' codec at 1024x768 resolution at 25 frames per second.

ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0 -vcodec huffyuv screencast.avi

Converting to other formats

MPEG2

ffmpeg -i screencast.avi -f mpeg2video -sameq mpeg2.mpg

MPEG4 4.2

Convert MPEG2 video (created above) into MPEG4. This should play back in Windows Media Player.

mencoder -forceidx -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts vcodec=msmpeg4v2:vhq -o windows_mpeg4.avi mpeg2.mpg

Libavcodec MPEG 4

ffmpeg -i screencast.avi -sameq mpeg4.avi

X264

Convert HuffYUV AVI to mp4 (libx264) video.

ffmpeg -i screencast.avi -vcodec libx264 -sameq libx264.mp4

Xvid

ffmpeg -i screencast.avi -vcodec libxvid -sameq XviD.avi

ScreenCasts/ffmpeg (last edited 2013-10-22 02:52:13 by ip70-187-186-217)