W!o+ 的《小伶鼬工坊演義》︰【新春】 復古派 《六》 RetroPie 借法

祇聽 Mrphs 講完… W!o+ 『拙』於用『巧』 ……,過了沒多久之後 ,便迷上了『先人科技』,愛說什麼︰

古今『 為 用 』為用;乾坤『 借 法 』借法。

痛痛快快的將找得的『前代軟體』給『玩』得個『透』『通』!!因此 W!o+ 認為『借法』,『法生』、『生法』,生生不息!!!

※作者註︰據聞『借法』一詞出自

太乙天尊‧《太一拔罪斬妖護身咒

操天道、化兩儀,生陰陽、轉乾坤,應赦令。

天地無極,乾坤借法;法由心生,生生不息。
太乙天尊,急急如律令!

乾坤無極,風雷受命;龍戰于野,十方俱滅。
太乙天尊,急急如律令!

伏化天王,降定天一;天地玄黄,陰陽妙法。
太乙天尊,急急如律令!

天羅維網,地閻摩羅;慧劍出鞘,斬妖誅精;一切災難化為塵 。
太乙天尊,急急如律令!

──

太乙救苦天尊

太乙救苦天尊,簡稱太乙天尊救苦天尊,是道教尊神,又稱青玄上帝青華大帝尋聲救苦天尊十方救苦天尊等,誕辰為舊曆十一月十一日,道教經典記太乙天尊居「東方長樂世界」妙嚴宮(「嚴」或作「巖」),可引渡受苦亡魂往生,一如阿彌陀佛西方極樂世界。對於積德行善、曉道明玄而功德圓滿之人,太乙救苦天尊亦能「乘九獅之仙馭,散百寶之祥光」,接引其登天成仙。

文學作品

封神演義

封神演義》中太乙天尊,號太乙真人,是哪吒的師傅,曾經幫助李靖而以九龍神火罩煉化前來尋仇的石磯娘娘,之後又幫助死去的哪吒以蓮花化身復活,法力高強,後支持姜子牙,對武王克殷的伐戰爭,也有很大貢獻。

西遊記

西遊記》中,太乙天尊所乘的獅子九靈元聖,曾經下凡搗亂唐三藏取經,於是齊天大聖孫悟空出面尋訪天尊:「太乙救苦天尊聽得,即喚侍衛眾仙迎接。迎至宮中,只見天尊高坐九色蓮花座上,百億瑞光之中,見了行者,下座來相見。」以「九色蓮花」、「百億瑞光」來描繪太乙救苦天尊,可見在吳承恩的眼中,天尊形象是雍容華貴的。

───

或許這正是 W!o+ 之後來所以能『傳心術』︰

當你聽到《神曲》,有時候那重複的『旋律』,會在腦海中一直迴盪,甚是惱人討厭!要是一則『□□○○』 ── B2B MSG ── 直接突現心理,感覺…嗯……非常詭異………,只能說 W!o^{+} 傳送了一段『腦對腦信息』,我『清楚知道』是這樣的︰

朋比翼鳥‧有社明朋

明月當空‧始神月比

社神廢祀‧無廢當翼

有始無終‧終祀空鳥

ryannrocks7498-wario-16504

真不知那ㄟㄚㄋㄟ?★!☆

─── 摘自《邂逅 W!o ?!

的『緣起』哩???

雖然作者不知如何向『乾坤借法』,但思解決『問題』時總是能夠『取法於人』的吧!比方說,因為文本圖示的需要,心想『擷取』當下螢幕之『快照』,否則怎麼簡易說明 RetroArch 『快捷選單』 QUICK MENU 呢?但是『快捷選單』必得在『遊戲進行中』,按下『Select』 + 『X』鍵才會顯示︰

RetroArch-RGUI-快照

 

那麼將怎麼『擷取』呢?非得用『照相機』來照嗎??

一時只覺『心有靈犀』,心中突現『昔日筆記』︰

Take screenshots/video’s without X server?

by Takenover83 » Wed Nov 20, 2013 12:39 am

I have been trying various method’s but I have yet to get anything to work outside of x. I would like to get some screenshot’s of xbmc, omxplayer, retroarch, emulationstation, etc… These all seem to run without X. So how do I go about capturing the screen they run on? ffmpeg? x11grab is a no go, as these are not using X as far as I know. capturing the framebuffer via fbdev? I tried that, but I usually just end up with a black screenshot.

So can anyone point me in the right direction or better yet give me a example?

 
by DrDominodog51 » Wed Nov 20, 2013 1:29 am
I would get an external display recorder and take screenshots from the video.This requires another computer for taking the screenshot from the video though….
If you don’t make it, it’s your own damn vault. -Land of the Lost poster
 
by AndyD » Wed Nov 20, 2013 1:51 am
I have written a program called raspi2png that will take a snapshot of whatever is displayed on the Raspberry Pi screen. You will need to compile it yourself! It should run on any of the Linux derived operating systems.

 

by Takenover83 » Wed Nov 20, 2013 5:24 pm
I am trying to build a script to auto increment filename and capture. After googling I pieced this together. Likely not the best way to go about it. Anyone have a better way.
……

 

,於是乎豁然開朗!!仔細閱讀後,依樣畫葫蘆︰

# ※ 將之命名為 raspimovie

#!/bin/bash

count=1000
while [ count -ne 1500 ] ; do      count=`exprcount + 1`   
    raspi2png -h 480 -w 640 -p ~/screens/{count:1}.png     done </pre>    <span style="color: #666699;">接著取得</span>  <span style="color: #666699;"><a style="color: #666699;" href="https://github.com/AndrewFromMelbourne/raspi2png">AndrewFromMelbourne/raspi2png</a></span>  <span style="color: #808080;">raspi2png</span>  <span style="color: #808080;">Utility to take a snapshot of the raspberry pi screen and save it as a PNG file</span>  <span style="color: #808080;">raspi2png -h</span> <span style="color: #808080;"> raspi2png: option requires an argument -- 'h'</span> <span style="color: #808080;"> Usage: raspi2png [--pngname name] [--width <width>] [--height <height>] [--compression <level>] [--delay <delay>] [--display <number>] [--stdout] [--help]</span>  <span style="color: #808080;">--pngname,-p - name of png file to create (default is snapshot.png)</span> <span style="color: #808080;"> --height,-h - image height (default is screen height)</span> <span style="color: #808080;"> --width,-w - image width (default is screen width)</span> <span style="color: #808080;"> --compression,-c - PNG compression level (0 - 9)</span> <span style="color: #808080;"> --delay,-d - delay in seconds (default 0)</span> <span style="color: #808080;"> --display,-D - Raspberry Pi display number (default 0)</span> <span style="color: #808080;"> --stdout,-s - write file to stdout</span> <span style="color: #808080;"> --help,-H - print this usage information</span>     <span style="color: #666699;">又思何不做成『影片』耶??!!</span>  <span style="color: #666699;">終於借著</span>  <img class="alignnone size-full wp-image-48539" src="http://www.freesandal.org/wp-content/uploads/ffmpeg-logo.png" alt="ffmpeg-logo" width="396" height="100" /> <div id="pagepath" class="noprint"> <h1><span style="font-size: 14pt; color: #808080;"><a class="pathentry" style="color: #808080;" title="View Create a video slideshow from images" href="https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images">wiki:Create a video slideshow from images</a></span></h1> </div> <h2 id="Framerates"><span style="color: #808080;">Frame rates</span></h2> <span style="color: #808080;">Create a video (using the encoder <tt>libx264</tt>) from series of numerically sequential images such as <tt>img001.png</tt>, <tt>img002.png</tt>, <tt>img003.png</tt>, etc.</span> <div class="wikipage">  <span style="color: #808080;"><strong>Important:</strong> All images in a series need to be the same size and format.</span>  </div> <span style="color: #808080;">You can specify two frame rates:</span> <ul> 	<li><span style="color: #808080;">The rate according to which the images are read, by setting <tt>-framerate</tt> before <tt>-i</tt>. The default for reading input is <tt>-framerate 25</tt> which will be set if no <tt>-framerate</tt> is specified.</span></li> 	<li><span style="color: #808080;">The output frame rate for the video stream by setting <tt>-r</tt> after <tt>-i</tt> or by using the <tt>fps</tt> filter. If you want the input and output frame rates to be the same, then just declare an input <tt>-framerate</tt> and the output will inherit the same value.</span></li> </ul> <span style="color: #808080;">By using a separate frame rate for the input and output you can control the duration at which each input is displayed and tell <tt>ffmpeg</tt> the frame rate you want for the output file. If the input <tt>-framerate</tt> is lower than the output <tt>-r</tt> then <tt>ffmpeg</tt> will duplicate frames to reach your desired output frame rate. If the input <tt>-framerate</tt> is higher than the output <tt>-r</tt> then <tt>ffmpeg</tt> will drop frames to reach your desired output frame rate.</span>  <span style="color: #808080;">In this example each image will have a duration of 5 seconds (the inverse of 1/5 frames per second). The video stream will have a frame rate of 30 fps by duplicating the frames accordingly:</span> <pre class="wiki">ffmpeg -framerate 1/5 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 </pre>    <span style="color: #666699;">以及</span>  <img class="alignnone size-full wp-image-48541" src="http://www.freesandal.org/wp-content/uploads/openlogo-50.png" alt="openlogo-50" width="50" height="61" /> <div id="header"> <ul id="pagelocation"> 	<li><span style="color: #808080;"><a style="color: #808080;" href="https://wiki.debian.org/ffmpeg">ffmpeg</a></span></li> </ul> </div> <div id="page" dir="ltr" lang="en"> <div id="content" dir="ltr" lang="en">  <hr /> <span style="color: #808080;"><span id="line-5" class="anchor"></span><small><a style="color: #808080;" href="https://wiki.debian.org/DebianWiki/EditorGuide#translation">Translation(s)</a>: English - <a style="color: #808080;" href="https://wiki.debian.org/fr/ffmpeg">French</a> </small> <span id="line-6" class="anchor"></span></span>   <hr /> <span style="color: #808080;"><big>FFmpeg/Libav</big> is a suite of open source software in command line that permit to manage audio or video streams. With FFmpeg/Libav, we can make recordings, playings, making corrections with filters, or transcode media from a format to an other. <span id="line-9" class="anchor"></span><span id="line-10" class="anchor"></span></span> <span style="color: #808080;">Libav is a fork of FFmpeg that we can find in the Debian repositories. If you want to use ffmpeg, you will juste need to change the word "avconv" to "ffmpeg" in the different commands lines, the rest stay the same.</span>  </div> </div> <span style="color: #666699;">種種資訊︰</span> <pre class="lang:default decode:true ">pi@retropie:~/raspi2png ls
LICENSE  Makefile  raspi2png  raspi2png.c  README.md

pi@retropie:~/raspi2png sudo cp raspi2png /usr/local/bin/ pi@retropie:~/raspi2png cd
pi@retropie:~ mkdir screens pi@retropie:~ nano raspimovie
pi@retropie:~ chmod +x raspimovie  pi@retropie:~ ./raspimovie 

pi@retropie:~ cd screens/ pi@retropie:~/screens avconv -framerate 10 -i %03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4


 

完成了︰