<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Скриншоты в консоли.]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=34708</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=34708&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Скриншоты в консоли.».]]></description>
		<lastBuildDate>Wed, 30 Apr 2014 19:37:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=407089#p407089</link>
			<description><![CDATA[<div class="quotebox"><cite>Packum пишет:</cite><blockquote><p>Сколько ни бился, - иначе никак, хотя при grub-0,97 такое было возможно.</p></blockquote></div><p>Скорее всего просто забыли как делали раньше, во всех случаях нужен initramfs <a href="http://wiki.gentoo.org/wiki/Fbsplash">тыц</a>, хотя если поставить fbcondecor&nbsp; в автозагрузку при условии что&nbsp; в загрузчике запускается видео драйвер с&nbsp; фреймбуфером, он должен запустить тему прописанную в <strong>/etc/conf.d/fbcondecor</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (ormorph)]]></author>
			<pubDate>Wed, 30 Apr 2014 19:37:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=407089#p407089</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=407077#p407077</link>
			<description><![CDATA[<p><strong>ormorph</strong>, удалось поставить fbsplash в автозагрузку, только при использовании initramfs, как Вы и советовали.<br />Пришлось воспользоваться Genkernel. Сколько ни бился, - иначе никак, хотя при grub-0,97 такое было возможно. <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /><br />Спасибо всем!</p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Wed, 30 Apr 2014 19:11:26 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=407077#p407077</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=407003#p407003</link>
			<description><![CDATA[<p>Большое спасибо! Сделаю, пожалуй из этого маленький скриптик. Здорово пригодится!</p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Wed, 30 Apr 2014 14:39:30 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=407003#p407003</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406999#p406999</link>
			<description><![CDATA[<div class="quotebox"><cite>Packum пишет:</cite><blockquote><p>Простите ещё раз нуба, а как бы заблокировать вывод этой команды? Слишком большой!</p></blockquote></div><div class="codebox"><pre><code>█▓▒░lupo@asus-x201e█▓▒░ Ср апр 30 05:18:48 
~/ ffmpeg -f fbdev -r 1 -i /dev/fb0 -frames:v 1 screenshot.jpeg &amp;&gt;/dev/null
█▓▒░lupo@asus-x201e█▓▒░ Ср апр 30 05:18:52 
~/ </code></pre></div><p>Точнее, в «чистой» консоли так:<br /><a href="http://itmages.ru/image/view/1643010/7cfca1f3"><span class="postimg"><img src="http://storage8.static.itmages.ru/i/14/0430/s_1398867833_6623374_7cfca1f347.jpeg" alt="http://storage8.static.itmages.ru/i/14/0430/s_1398867833_6623374_7cfca1f347.jpeg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Wed, 30 Apr 2014 14:19:25 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406999#p406999</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406997#p406997</link>
			<description><![CDATA[<p>Простите ещё раз нуба, а как бы заблокировать вывод этой команды? Слишком большой!</p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Wed, 30 Apr 2014 14:16:03 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406997#p406997</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406993#p406993</link>
			<description><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>...попробовал, однако, ругнулось:</p></blockquote></div><br /><p>Ну данный пример был из мана, там еще был пример как записывать видео с консоли, тут похоже просто разные версии ffmpeg обрабатывают по разному, на версии <strong>1.0.8</strong> данный пример позволяет получить скриншот, хотя по идее правильнее <strong>frames</strong> выставлять после указания источника с которого будет производиться конвертация, в данном случае это <strong>/dev/fb0</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (ormorph)]]></author>
			<pubDate>Wed, 30 Apr 2014 14:04:56 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406993#p406993</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406968#p406968</link>
			<description><![CDATA[<p>...попробовал, однако, ругнулось:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>~/ ffmpeg -f fbdev -frames:v 1 -r 1 -i /dev/fb0 screenshot.jpeg
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 10 2014 16:26:13 with gcc 4.8.2 (GCC) 20140206 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Option frames:v (set the number of frames to record) cannot be applied to input file /dev/fb0 -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file /dev/fb0.
Error opening input files: Invalid argument</code></pre></div></div></div><p>Поставил опцию <em>frames:v</em> перед файлом скриншота, всё <a href="http://itmages.ru/image/view/1642411/cf2ef32a">«сфотографировалось»</a>&nbsp; <img src="https://linuxforum.ru/img/smilies/bx.gif" alt="bx" /><br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>~/ ffmpeg -f fbdev -r 1 -i /dev/fb0 -frames:v 1 screenshot.jpeg 
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 10 2014 16:26:13 with gcc 4.8.2 (GCC) 20140206 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[fbdev @ 0x1824a60] w:1366 h:768 bpp:32 pixfmt:bgra fps:1/1 bit_rate:33570816
[fbdev @ 0x1824a60] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, fbdev, from &#039;/dev/fb0&#039;:
  Duration: N/A, start: 1398848122.471403, bitrate: 33570 kb/s
    Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1366x768, 33570 kb/s, 1 tbr, 1000k tbn, 1 tbc
[swscaler @ 0x1811280] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to &#039;screenshot.jpeg&#039;:
  Metadata:
    encoder         : Lavf55.33.100
    Stream #0:0: Video: mjpeg, yuvj444p, 1366x768, q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0:0 -&gt; #0:0 (rawvideo -&gt; mjpeg)
Press [q] to stop, [?] for help
[swscaler @ 0x1811280] Warning: data is not aligned! This can lead to a speedloss
frame=    1 fps=0.0 q=1.9 Lsize=N/A time=00:00:01.00 bitrate=N/A    
video:29kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead -100.075104%</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Wed, 30 Apr 2014 09:03:21 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406968#p406968</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406935#p406935</link>
			<description><![CDATA[<p>Свершилось! Получился снимок! Спасибо большущее!<br /><a href="http://i-fotki.info/16/003a3d8ae4634286ed5d22e1bd2aebcdd94298181462751.jpg.html"><span class="postimg"><img src="http://f16.ifotki.info/thumb/003a3d8ae4634286ed5d22e1bd2aebcdd94298181462751.jpg" alt="http://f16.ifotki.info/thumb/003a3d8ae4634286ed5d22e1bd2aebcdd94298181462751.jpg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Tue, 29 Apr 2014 20:34:43 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406935#p406935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406868#p406868</link>
			<description><![CDATA[<p>Вот нашел в мане <strong>ffmpeg</strong>, можно делать скриншоты консоли.</p><p>пользователь должен быть в группах <strong>video</strong> и <strong>tty</strong></p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$ ffmpeg -f fbdev -frames:v 1 -r 1 -i /dev/fb0 screenshot.jpeg</div></p><p>С KMS фреймбуфером работает норм.</p>]]></description>
			<author><![CDATA[null@example.com (ormorph)]]></author>
			<pubDate>Tue, 29 Apr 2014 16:42:43 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406868#p406868</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406823#p406823</link>
			<description><![CDATA[<div class="quotebox"><cite>Packum пишет:</cite><blockquote><p>Может и с ядром нахимичил. Такое ощущение, что параметры ядром вообще не принимаются, хотя обновляю<br />grub2 каждый раз после изменения. <br />  Скриншоты fbgrab делает, но кривые. (3 пост).</p></blockquote></div><p>На счет того что тема не запускается при загрузке, скорее всего с ядром нахимичил, а то что fbgrab делает кривые скриншоты, то тут посмотрел, fbgrab не работает с kms фреймбуфером, на досуге попробую как нибудь заняться, если получится отпишу решение.</p>]]></description>
			<author><![CDATA[null@example.com (ormorph)]]></author>
			<pubDate>Tue, 29 Apr 2014 14:13:29 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406823#p406823</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406759#p406759</link>
			<description><![CDATA[<p>Может и с ядром нахимичил. Такое ощущение, что параметры ядром вообще не принимаются, хотя обновляю<br />grub2 каждый раз после изменения. <br />&nbsp; Скриншоты fbgrab делает, но кривые. (3 пост).</p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Tue, 29 Apr 2014 08:41:49 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406759#p406759</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406607#p406607</link>
			<description><![CDATA[<div class="quotebox"><cite>Packum пишет:</cite><blockquote><p>Тут я наверное что-то с grub2 нахимичил.</p></blockquote></div><p>Больше похоже что с параметрами ядра нахимичил, раз уж запускается тема в ручную.</p><p>Скорее всего драйвер установлен модулем а не в ядре.</p><p>Если устройство /dev/fb0 существует то должно все работать.</p><p>Если делать скриншот под пользователем, то пользователь должен быть в группе <strong>tty</strong></p><p>Попробуйте собрать через genkernel с темой, так как у вас параметр root=/dev/sda3 вместо real_root=/dev/sda3 то смею предположить что собирали ядро в ручную(без genkernel).</p><p>Может быть еще какое устройство есть(/dev/fb1) то попробуйте через него сделать снимок</p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$ fbgrab -d /dev/fb1 -c1 file.png</div></p><p>-c1 номер консоли с которой делается снимок.</p>]]></description>
			<author><![CDATA[null@example.com (ormorph)]]></author>
			<pubDate>Mon, 28 Apr 2014 14:07:19 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406607#p406607</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406564#p406564</link>
			<description><![CDATA[<p>Когда-то оно работало с grub-0,97. И bootsplash и fbcondecor. Fbgrab правда тогда не пробовал.<br />Работало именно с inteldrmfb. Видимо где-то я ошибся в конфиге граба2. Или что-то изменилось с тех пор,<br />а я не заметил. Печально. На всякий случай вот конфиг граба: <a href="http://bpaste.net/show/240865/">http://bpaste.net/show/240865/</a></p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Sun, 27 Apr 2014 19:21:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406564#p406564</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406563#p406563</link>
			<description><![CDATA[<p>Попробуйте использовать <em>vesafb</em>.</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Sun, 27 Apr 2014 18:47:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406563#p406563</guid>
		</item>
		<item>
			<title><![CDATA[Re: Скриншоты в консоли.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=406562#p406562</link>
			<description><![CDATA[<p>Наверное inteldrmfb. В /etc/default/grub записано:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">&quot;root=/dev/sda3 video=inteldrmfb:1366x768-32@60,mtrr:3,ywrap splash=verbose,theme:natural_gentoo console=tty1 quiet&quot;</div><br />Но тема автоматом тоже не ставится.</p>]]></description>
			<author><![CDATA[null@example.com (Packum)]]></author>
			<pubDate>Sun, 27 Apr 2014 18:23:35 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=406562#p406562</guid>
		</item>
	</channel>
</rss>
