<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Ffmpeg%3A_screen_capture_video</id>
	<title>Ffmpeg: screen capture video - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Ffmpeg%3A_screen_capture_video"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Ffmpeg:_screen_capture_video&amp;action=history"/>
	<updated>2026-04-19T21:31:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Ffmpeg:_screen_capture_video&amp;diff=40687&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: &#039;&#039;&#039;See also: High quality screen capture with avconv&#039;&#039;&#039;  == Capture without audio ==    ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264 -vpre lossless_ultrafast -threa...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Ffmpeg:_screen_capture_video&amp;diff=40687&amp;oldid=prev"/>
		<updated>2014-06-24T22:32:23Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;&amp;#039;See also: &lt;a href=&quot;/wiki/index.php?title=High_quality_screen_capture_with_avconv&quot; title=&quot;High quality screen capture with avconv&quot;&gt;High quality screen capture with avconv&lt;/a&gt;&amp;#039;&amp;#039;&amp;#039;  == Capture without audio ==    ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264 -vpre lossless_ultrafast -threa...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;See also: [[High quality screen capture with avconv]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Capture without audio ==&lt;br /&gt;
&lt;br /&gt;
  ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264 -vpre lossless_ultrafast -threads 0 video.mkv&lt;br /&gt;
&lt;br /&gt;
Compress and convert to MP4 format (Youtube ready):&lt;br /&gt;
&lt;br /&gt;
  ffmpeg -i video.mkv -vcodec libx264 -vpre hq -crf &amp;#039;&amp;#039;&amp;#039;22&amp;#039;&amp;#039;&amp;#039; -threads 0 video.mp4&lt;br /&gt;
&lt;br /&gt;
Lower -crf may give higher quality but for screen captures the improvement is only marginal. For post processing in iMovie or [[:Category:Final_Cut_Express|Final Cut Express]] better to use .mov container in the above conversion.&lt;br /&gt;
&lt;br /&gt;
If ffmpeg complains that it has no &amp;#039;&amp;#039;&amp;#039;hq&amp;#039;&amp;#039;&amp;#039; preset, then try some of the others. Look for .ffpreset files in /usr/share/ffmpeg/. I had good success with &amp;#039;&amp;#039;&amp;#039;-vpre medium&amp;#039;&amp;#039;&amp;#039; (actually it might be the same as hq used to be).&lt;br /&gt;
&lt;br /&gt;
== Capturing with audio ==&lt;br /&gt;
&lt;br /&gt;
  ffmpeg -f alsa -i pulse -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -acodec pcm_s16le &lt;br /&gt;
    -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv&lt;br /&gt;
&lt;br /&gt;
If you get &amp;quot;Application provided invalid, non monotonically increasing dts to muxer&amp;quot; errors try using MOV container instead.&lt;br /&gt;
&lt;br /&gt;
In order to make ffmpeg capture audio from other applications:&lt;br /&gt;
&lt;br /&gt;
# Start the ffmpeg capture (it just has to run)&lt;br /&gt;
# Start pavucontrol&lt;br /&gt;
# In the Recording tab, ffmpeg should be visible and here we can choose between input and monitor&lt;br /&gt;
&lt;br /&gt;
The settings will be remembered until we change them back.&lt;br /&gt;
&lt;br /&gt;
Other useful audio options to adjust:&lt;br /&gt;
* -ac: Channels&lt;br /&gt;
* -ar: Audio sample rate&lt;br /&gt;
* -ab: Audio bitrate&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
# This does not work with Java running in firefox. In fact, it does not seem to work with applications that play through the pulseaudio ALSA plugin.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TODO:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
The audio output can also be captured with gstreamer:&lt;br /&gt;
  gst-launch -e pulsesrc device=&amp;quot;alsa_output.pci-0000_00_1b.0.analog-stereo.monitor&amp;quot; ! audioconvert ! \&lt;br /&gt;
                lamemp3enc target=1 bitrate=128 cbr=true ! filesink location=output.mp3&lt;br /&gt;
where the device name is the one returned by&lt;br /&gt;
  pactl list | grep -A2 &amp;#039;Source #&amp;#039; | grep &amp;#039;Name: &amp;#039; | cut -d&amp;quot; &amp;quot; -f2&lt;br /&gt;
Can we use this device name in ffmpeg recording?&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* How to do Proper Screencasts on Linux Using Ffmpeg: http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linux/&lt;br /&gt;
* https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/305286&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://wiki.oz9aec.net/index.php/High_quality_screen_capture_with_Ffmpeg&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>