Difference between revisions of "High quality screen capture with Ffmpeg"

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/Hooks.php on line 204 From MyLabWiki
Jump to: navigation, search
Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 861 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 862 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 587 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 608 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 608 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 608 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 587 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 608 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 608 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 608 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 241 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 242 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 241 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 242 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954 Deprecated: assert(): Calling assert() with a string argument is deprecated in /storage/content/85/1005285/wiki.oz9aec.net/public_html/includes/diff/DairikiDiff.php on line 954
m
Line 22: Line 22:
 
The settings will be remembered until we change them back.
 
The settings will be remembered until we change them back.
  
Note: On some computers, selecting the monitor makes ffmpeg halt.
+
Note: This does not work with Java running in firefox.
  
 
== References ==
 
== References ==

Revision as of 21:01, 30 August 2010

Capture without audio:

 ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+0,48 -vcodec libx264 -vpre lossless_ultrafast -threads 0 video.mkv

Compress and convert to MP4 format (Youtube ready):

 ffmpeg -i video.mkv -vcodec libx264 -vpre hq -crf 22 -threads 0 video.mp4

Lower -crf gives higher quality.

For including audio:

 ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le 
   -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv

In order to make ffmpeg capture audio from other applications:

  1. Start the ffmpeg capture (it just has to run)
  2. Start pavucontrol
  3. In the Recording tab, ffmpeg should be visible and here we can choose between input and monitor

The settings will be remembered until we change them back.

Note: This does not work with Java running in firefox.

References