G15VID, 8 Hertz Brain Stimulus 2020:5:19 ********************* ************* ******** ***** *** There are many documents in and around G15 PMN that attacks videos and 3d simulations. There are ways of doing what we call 'g15vid' in a way that doesn't have the stupefying effects of video; and ways of doing emulations of some aspects of low-res 3d in definite contexts that doesn't have any sense of 'fooling the brain' about it. An example of the latter is the app Boardworks. SOME USEFUL EXTRA SCRIPTS IN GOING FROM LINUX VIDEO TO G15VID'S The visual aspect of G15VID's can be shown on any G15 PMN platform but sound-play is a platform-dependent command not part of the definition of the language, because good sound requires its own processors. We recommend wav format of the 16-bit (signed pcm) type as the most first-hand type of audio storage, which can be played by electronics of a not too complicated kind, since no formula-oriented compression mechanism is in place for .wav. We speak here of how to do it in a 64-bit Linux, chiefly Neon KDE Linux. The approach in G15VID is to let the LDISK (ie, ldisk.g15) simply be the wav-file. This works fine as G15 PMN allows any formatting of its twelve disks, and ldisk is in any case one that is designated to be often subject to mounts to any electronic apparatus, including even G15 PMN intranets. The Neon KDE/Linux 64-bit, which is a refined form of Ubuntu 64-bit, when, at the login screen you choose "Wayland session", you can start a flickering 8-hertz green-only vid by command ./neong15rstart after you have unzipped g15vid.zip from g15pmn.com, which is norskesites.org/fic3/fic3inf3.htm and cd'ed into that folder in terminal. [If you have to use a non-Wayland login method and/or another Linux, try unzip g15rwx.zip and start ./g15rwx instead.] The g15vid presupposes that you have command 'play' installed, so that when the word play is written on the command line and a wav file is specified after, it plays well in the loudspeakers. Try the play command and it will tell how to install it if it is not there. THE POINT about g15vid is noticable if you are deeply attentive and aware of the dullening effect of glossy hires stuff esp glossy hires videos and 3d simulations have on the brain. This is instantly noticable for sharp-minded people. For young people, the more TV, the less brain. [For very old people, TV can have a stimulating effect, encouraging the brain to be active in various ways.] The remedy is to cut off the glossiness. Show pixels. Give less sensory overwhelming stuff pr second to the brain. That is a calling on the mind to fill in the gaps. G15VID'S USE A FIRST-HAND FORMAT, THE G15 PMN GEM IMAGE 500X500 GREENTONE FORMAT, WHICH HAS NO EQUATION-ORIENTED COMPRESSION, IT IS COMPRESSED IN A WAY THAT ENCOURAGES A FIRST-HAND RELATIONSHIP TO DATA. IT IS LUXURIOUS IN ITS USE OF SPACE, BUT IT HAS THE RIGHT Q-FIELD, IN CASE YOU HAVE AN AWARENESS OF THAT CONCEPT. In case you are often starting the .g15 disks from such as a pen disk or sd card, which may have a formatting of a type where linux program permission [eg by a command like chmod 755 filename] cannot be given, you can simplify how you start up G15 PMN when you have control over your own Linux as administrator. For instance, you can do something like this: sudo -i cd /usr/bin cp /home/USERNAME/neong15ways/neong15rmenu . cp /home/USERNAME/neong15ways/neong15rstart . cp /home/USERNAME/neong15ways/neong15pmn . exit This will enable the commands so that you can type, instead of, eg, ./neong15rmenu simply neong15rmenu and the local folder that you have cd'ed into will be where it opens up its .g15 disks. You can further simplify this if you wish. Suppose you first check that the command g15r is not in your Linux--eg, type in g15r and see that it doesn't match anything. After that, you can do something like this, to make it refer to neong15rmenu: sudo -i cd /usr/bin ln -s neong15rmenu g15r exit You can now type g15r instead of neong15rmenu, it links to the same thing. This link can be removed by 'rm' or renamed by 'mv' if you wish. NOTE THAT THERE ARE MANY UTILITIES IN THE CORE G15 PLATFORM THAT YOU SHOULD GET TO KNOW, INCLUDING HOW TO CLEAN DISK AREAS, COPY REGIONS OF ONE DISK TO OTHER REGIONS OF ANOTHER DISK, AND SO ON. All this is explained several times over in various documents inside and outside the G15 PMN platform and its Third Foundation app 3,333,333 and in such as Volume 1 of the Art of Thinking, by Aristo Tacoma, at avenuege.com/library. Everything about G15 PMN is open source except the core G15 which we only released when it was found to be as flawless as it could reasonably be expected to be, in order to emphasize stability of that core and the potential of making programs in one decade that will perform in any future decade, just as well. This is beginning to look like a brilliant decision, though unconventional in this era of making it all hang out and be open to the whims of change of people with much time on their hands. :) THIS FOLDER IS USEFUL AS ADDITION TO THE g15vid.zip The .sh's are as in the g15vid/import and as described in its howto.txt, with some improvements and additions. To see the complete motion from recording from your PC Linux screen to having a deliciously green 8 Hertz flickering G15VID inside the G15 PMN, see the completing lines. A note of caution: such .sh scripts should only be started after you have looked into them with some sense of what they are doing, and tested in a test folder; and then only when you are sure you take responsibility for what they are doing to your PC. Read instructions also. Additional info about such commands are found in user forums like askubuntu.com. Some of these .sh, if started in a wrong context, can mess up stuff. Still, these have been much tested and they do what they say they do when started in the right way and sequence and in the right folder, given that the right programs already have been properly installed. A .sh that you have unzipped to your Linux should have permission to execute. A way to give it that, in case it doesn't seem to have it, is chmod 755 filename.sh * If you have many diverse-named jpg's and such, with none starting with xyz, you can unify naming by running first ./renumber1.sh and secondly, ./renumber5.sh This creates numbered jpgs, with leading zeroes, size 8 before the .jpg suffix. * The convjpg_progress.sh, and the other .._progress are as in g15vid but tells progress, ie, which number it is working on. * When creating .wav with Audacity, note that, PCM .wav 16-bit is the export format. Check that it says 'mono' in info on the left of the graph of the audio. If not, figure out how to convert to mono. Second, check that it is 16000 in this info. If a different sample rate, select something like Track -> Resample for the whole audio sequence and 16000. After that, export as filename.wav signed 16-bit. When 800x800 images are sought in some context: * The transform800b and ..800w adds blackspace and whitespace, respectively, to jpgs, creating a 800x800 series of jpgs out of all jpgs in present folder, scaled, proportions kept. When you need to divide jpg's in two eg before import into GEM image format, eg because they are too tall, you will find that you can divide them up by ./jpg2parts.sh In case of import, you could run these two to straighten out the naming, however the overall sequence of the images are not kept if you run them as they are, so take a backup and experiment before you run these if sequence is important: ./renumber1.sh ./renumber5.sh HOW TO MAKE G15VID GIVEN A VIDEO THAT PLAYS ON THE PC [Note: this document is written in 2020 and many programs for Linux work only flawlessly in X Windows rather than in Wayland, though more and more are adapted to handle the far better Wayland protocol of graphics. While G15 PMN should only be started in a Wayland session--something you select when you Log In to Linux on a little menu--it is best to run the earlier points in the following HOW-TO while logged into X Windows. The best bet is to power off and power on the PC when shifting between these vastly different graphical protocols.] Show the video and play the sound. Start up pavucontrol and shut off microphones. Find the tab called 'Recording.' Be ready to use it as soon as recording has started, where you will at that time see the option of switching from '..inbuilt..' to '..monitor of inbuilt..'. Start up kazam and in preferences select automatic save, check to which folder it saves to, and select 8 frames pr second, and mp4 format. And that audio refers to 'monitor of inbuilt..'. In it, click area, select area playing, press ENTER, and press Start Recording. IN THE CASE WHERE YOU WANT SOUND TO GO WITH THE VID: Bring up Pavucontrol and select 'monitor of inbuilt..'. When done, click on the Kazam icon from the task bar and select Finish recording. Wait until it has copied its temporary file over to the destionation mp4 file. Move the mp4 file to the NEWLY CREATED FOLDER THAT HAS ALL THE CONTENT IN g15vid_linux_utilities.zip AND BE SURE IT HAS NO OTHER IMAGES OR VIDEOS. These commands all work on one vid at a time, assuming your work with one vid takes place in a folder dedicated to doing this conversion process. Sound first. Start audacity *.mp4 & and choose option Track -> Resample to 16000 Hertz, and export sound as signed 16-bit PCM Wav to a file called filename.wav Check that it works by command play filename.wav Then rename filename.wav to disk L (in other words, references to ldisk.g15 in this text involves the small letter l not digit 1): mv filename.wav ldisk.g15 Put this ldisk.g15 into the new g15vid folder you make for this vid, overwriting the ldisk.g15 that came with g15vid.zip. IN CASE OF NOT WANTING SOUND FOR A VID YOU ARE MAKING: copy a standard empty g15 disk over the L-disk. In g15vid.zip, the i-disk is unused, hence cp -i idisk.g15 ldisk.g15 in the g15vid folder should do the trick. When you are converting a single mp4 file over to a g15 vid, skip the next paragraph, which only deals with mp4 group conversion. **************************** **************************** **************************** IN CASE OF WANTING A TO CONVERT A WHOLE SERIES OF MP4 ELEMENTS WITHOUT SOUND OVER TO A SINGLE G15VID For this job, instead of using "convertmp4.sh", you can use the following 'convmp4set..' commands, one after another, in a folder that you create in a safe place, in which you put all the .sh's in this package together with all the mp4's. If you have many mp4 files, do a test run where you have just a couple mp4 files in this folder. Before starting, double-check that you have tons of extra disk capacity. Start these with caution as the way they are written here--a bit leisurely--they make subfolders to carry out their job of getting you the perfect series of .jpg's, in the right sequence. After you have done running the .sh's, there are some empty subfolders left that can be removed, one for each mp4. Here we go: ./convmp4set.sh Lots of text comes from this mp4 convert; typically the text can be ignored. The jpg's are in subfolders. ./convmp4set_gather.sh This gives a brief directly listing before renaming the files and getting them from the subfolders back into the main working folders. Then, get the .jpg's numbered with leading zeroes, size 8, plus the ".jpg" suffix, in the right sequence after running the above two commands: ./renumber1.sh ./renumber5.sh The only output from these is that one of them reports that there were no files with uppercase .JPG or the longer suffix .jpeg. At this point, the files are exactly as if they belonged to one large .mp4 file and you had just performed, on a single file, convertmp4.sh. That means you can next type in the following commands, as listed in next paragraph: ./convjpg_progress.sh dir rm *.jpg ./convsuffix_progress.sh dir ./addspace_progress.sh dir ./greenify.sh dir As below, the next step is to put all the green 0*.bmp files to the g15vid folder, or to whatever you have renamed this folder to, and make a note of its highest number, and start up the ./neong15rmenu and click on the arrow on the line it says 'import'. You will be asked for quantity and you type in the highest number of the .bmp while it makes the g15vid. **************************** **************************** **************************** HOW TO CONVERT A SINGLE MP4 FILE, HAVING ALREADY HANDLED ITS SOUND ASPECT, INTO A G15 VID In a terminal, type these commands--patiently-- and in cases of thousands of frames, there will be pauses of various lengths after esp some of the commands. Be sure you have some thirty times as much free space on the disk as the mp4 file requires. Where it says 'dir' you might use eg gwenview to check a sample frame. The .mp4 can be deleted after the first command. The first command usually works quite well even though it produces many messages of various sorts. Here are the commands: ./convertmp4.sh dir ./convjpg_progress.sh dir rm *.jpg ./convsuffix_progress.sh dir ./addspace_progress.sh dir ./greenify.sh dir NOTE: In the neong15ways.zip, and in other G15 PMN packages, there are variations as to how to convert to greentone. This is a conversion that aims at vivid greentone but for some jpg color palettes another of the conversion routines should be used (to avoid occasional abrupt contrasts here and there). In case you want to vary: Look at the content of greenify.sh and pick one of the nearly same-named routines for 64-bit Linux from neong15ways.zip, and edit the name inside greenify.sh. Now put these .bmp to the folder you have the .g15 disks. Memorize the number of the highest- numbered .bmp frame, shown eg by, dir 0*bmp Note that the following import of BMP and conversion to GEM process takes time, and to make sure it is doing the job correctly, do a test sample of eg 100 frames and open up C200000 (that's two hundred thousand) in the Photoviewer at the G:15 main menu. At C199999, which you reach by PgUp, if you click at the first character, you'll see the number of them mentioned. The disk capacity required is 220 cards times that number. Each card has 232 32-numbers, meaning 232x4 bytes. When the G15VID import routine nears card# two million, it starts at the next disk, also at card# two hundred thousand. Up to the disk before L. Start up ./neong15rmenu in that folder and on the menu click on the arrow on the line that says Import, and type in the number your memorized, and press lineshift. It will show progress after importing and converting 50 and 50 bmp's at a time. When it says 'Done', press lineshift, CTR-Q, and type REB and press lineshift. After checking that the G15VID works, delete the imported bmp files, eg, rm 0*.bmp How to start the G15VID: Either: ./neong15rmenu and click on the arrow where it says Play Video. or: ./neong15rstart If you want a visual-only presentation you can use ./neong15pmn as startup. The ..rmenu and ..rstart are among the implementions used in G15 PMN Open Robotics connected to Linux, where terminal control is used to further commands to robotic motors and such. This is the 64-bit Neon KDE approach with Wayland login. There are some other methods for other logins and for other linuxes and for other platforms that also have terminal access, but you may have to look at what command will start the sound and maybe modify the code. Click eg ESC at any time to exit the video. Note that there will be slight second-variations, some times more than other times, in the startup of the visual and the startup of the sound, but on a not overloaded PC, the timing is usually good enough. The zipped folder will be in the order of 5 or 8 times the mp4 file you started with. Good luck! ********************* ************* ******** ***** *** Info text by A.T.