/home/bill/Projects/Stalin supported Hitler/00_Icebreaker notes.txt www.BillHowell.ca - file created after installing LinuxMintDeb on Toshiba laptop BigDat 030 p Davis, Kozma, Freeman - Encephalography & Higher Cognitive Functions 01May2015 Great map of oil sources http://acc.teachmideast.org/images/120_map11.jpg http://1.bp.blogspot.com/_9HHxHBqNwko/R5uFYfduBfI/AAAAAAAAAGA/jo5otuLFfzw/S1600-R/Mideast-oil-map.jpg Map 1. Mid-1940 and 1942, the most critical time for the Allied forces : http://www.mafhoum.com/press10/307P52_fichiers/map2.jpg 30Apr2014 Great oil synopsis!!! : http://histclo.com/essay/war/ww2/eco/raw/oil/w2ero-ger.html Fischer Tropsch role http://historynewsnetwork.org/article/339 AWESOME - aerial showing damage to the Fischer-Tropsch synthetic oil plant http://ww2today.com/25th-may-1943-goebbels-alarmed-over-the-dortmund-raid Part of a vertical photographic-reconnaissance aerial showing damage to the Fischer-Tropsch synthetic oil plant of Ruhrchemie AG at Sterkrade-Holten, Germany, following the major raid by 572 aircraft of Bomber Command on the night of 12/13 May 1943. - See more at: http://ww2today.com/25th-may-1943-goebbels-alarmed-over-the-dortmund-raid#sthash.rjR5YSWK.dpuf Modern Coal-To-Liquids (CTL) and Synthetic Natural Gas (SNG) plants - map : http://www.hydrocarbonprocessing.com/images/798/87309/Anatharaman-Fig-06.gif www.americanfuelscoalition.com ********************* 26Apr2015 image rotation issue '/home/bill/Projects/Stalin supported Hitler/animations - Howell/Opening_Context/02.1 Battle of Britain/2 Blitz/1_MilAtlas- EuropeNW The Blitz Sep1940-May1941.jpg' ; This image is rotated sideways. ImageViewer corrects that back, but it causes problems with image_transcale_sequence in the file : # /home/bill/Projects/Stalin supported Hitler/animations - Howell/0_gimp howell-image-transcale.ndf # www.BillHowell.ca 21Apr2015 28Apr2015 AH HAH! use imagemagic to rotate initial source image, but also need to rotate&save with Image Viewer as well! ************************ 26Apr2015 Convert jpg sequence to video (I forgot the program) OpenShot -> requires gui /home/bill/Projects/Stalin supported Hitler/animations - Howell/0_imagemagic howell-image-transcale.ndf ImageMagic -> ? http://stackoverflow.com/questions/3174710/create-a-video-from-images-unix-command-line-with-transitions I found several questions with answers on how to create a video from images. I setup two of them and was able to produce the videos correctly. I tried the following: ImageMagick convert -delay 100 -quality 75 photo1.jpg photo2.jpg movie.mpg FFMPEG ffmpeg -r 10 -b 1800 -i photo1.jpg photo2.jpg movie.mpg The end result is the video displaying images with timing, no effects. I looking to learn how they add a Fade In and Fade Out Transition between those images. avconv or ffmpeg : http://www.ehow.com/how_7341963_convert-jpg-avi-linux.html ffmpeg -f image2 -i /path/to/image/directory/prefix%d.jpg /path/to/destination.avi Replace "/path/to/image/directory" accordingly, and replace "prefix" with the image prefix. For example, if images are called "holiday1," "holiday2" and "holiday3," then it should read "holiday%d.jpg." Replace "/path/to/destination.avi" appropriately depending on your preference. Press "Enter" to create your video from the JPGs. NYET ... from : /home/bill/Projects/Stalin supported Hitler/1_gimp-gap notes.txt 25Mar2015 notes . 3. Now, how to convert a jpg image sequence to an ogv video format? http://www.pc-freak.net/blog/converting-jpeg-images-mp4-video-linux/ avconv -i SDC106001.JPG SDC10595.JPG SDC13611.JPG SDC13612.JPG SDC13614.JPG movie-from-pictures.mp4 . $ avconv --help bash script) to run : /home/bill/bin/jpg_to_ogv.sh Couldn't get avconv or ffmpeg to work!!! I donloaded "OpenShot" video editor, and it is cludgy but works OK - put into ogv format. 4. In running the video, 2s is way too fast for "1 Europe scale" 4s is a bit fast for "2 Nazi invade lowlands & France" So I'll make all 3 segments (including "") 10 seconds long each, which don't really match the voice, but will make thge animation more "comfortable". *************************** 24Apr2015 More image tricks http://www.garron.me/en/linux/get-size-type-of-picture-linux-console.html Image type and size from the Linux command line Written by Guillermo Garron . Date: 2011-08-01 15:20:00 -0400 This is another small tip, but very useful for webmasters, you know that a webpage loads faster if you define the height and width of an image in the html code. But what if you do not know that info of a given image?, you can always fire the GIMP or any other graphical application to check the size of a given picture but you can easily do it from the command line. identify picture.jpg The output of the that command may be something like this: picture.jpg JPEG 1500x1000 1500x1000+0+0 8-bit DirectClass 104KB 0.000u 0:00.000 You now know that this is a JPEG file of 1500x1000 pixels, 8-bit depth and 104 KB. It helps me a lot when adding pictures to this site. !!! Howell -> this works well! ************************ 23Apr2015 Dump gimp!!! for simple scale/translate http://www.gimpusers.com/forums/gimp-user/10704-script-fu-code-to-load-pdf-with-set-resolution Sven Neumann 2008-10-22 08:42:16 UTC (over 6 years ago) permalink script-fu code to load pdf with set resolution Hi, On Wed, 2008-10-22 at 01:40 +0200, Ash C. wrote: I am wanting to write a script that will load a pdf with a specified resolution and then save it as a jpeg. When I open the pdf document manually (via the GUI). I am greeted with the "Import from PDF" window, which allows me to set the resolution of the image which then alters the width and height of the image based on the resolution specified. However, when I attempt to automate this with script-fu, I am having issues getting the same functionality. I am using the 'file-pdf-load' function to load the pdf, however there is no option to set the resolution and height of the image. (It appears to default to 100dpi). This functionality is not available to the PDB. We would accept a patch that improves the PDB interface of the PDF import plug-in. But seriously, I don't understand why you would want to use GIMP for this instead of a simple 'pdftoppm -r 300 | pnmtojpeg ' Sven http://www.imagemagick.org/ http://www.imagemagick.org/script/command-line-processing.php#geometry Example : /home/bill/Projects/Stalin supported Hitler/0_imagemagic howell-image-transcale.ndf ************************* 21Apr2015 Gimp-gap problem - hand entry is WAYYY to slow and error-prone!! I need to learn how to script! http://www.gimp.org/tutorials/Basic_Batch/ GIMP Batch Mode Introduction GIMP comes with a so-called batch mode that allows you to do image processing from the command line. It also makes it easy to apply the same set of operations to a number of images. We have got a lot of questions on the mailing-lists on how to use the batch mode and this small page tries to explain the basics to you. GIMP can be started with a number of command-line options. Let's have a closer look at the output of gimp --help: GIMP version 2.4.1 Usage: gimp [option ... ] [file ... ] Options: -?, --help Show help options -v, --version Show version information and exit --verbose Be more verbose -d, --no-data Do not load brushes, gradients, palettes, patterns, ... -f, --no-fonts Do not load any fonts -i, --no-interface Run without a user interface --batch-interpreter= The procedure to process batch commands with -b, --batch= Batch command to run (can be used multiple times) **************** 19Apr2015 Start up again on the project It's hard to remember anything! Want to : 1. do animations for voice parts, Part I of the film - mostly maps, but some portraits etc 2. change Intro slide - re-title I changed subtitle to "We should have lost World War II" Menu -> File -> Export -> check selection, format & file extension jpg Done... 3. Dad's sketch- transformed via gimp & added : /home/bill/Projects/Stalin supported Hitler/images/150213 Howell, Dad - Stalin picture.jpg **************** 22Jan2015 Image display during "voice" periods Want several moving pictures - resize, translate, rotate, flip, etc canvas size for synfig = 770w * 570h (same as Slide window **************** 20Jan2015 ~13:00 First test run with new system >> ~01:20:00 record time . ~13:20 finished - wasn't there to get the time (maybe log file . 14:48 140 Mb 21% complete . 15:59 372 Mb 70% complete . <16:45 538 Mb 100% complete . Encode times are probably strongly influed by "voice & music" periods for which the video doesn't change (costs nothing). >> Results of Part1 vidFilm : . Leftover windows : 3 references, 5 or 6 section, 0 Slides, 0 videos >> Play with vlc . couldn't zoon in - so I stopped it, but the audio just continued . Linux "ps" doesn't display, pidof vlc shows 17 or 18 PIDs! >> kill each >> Run video with "Movie Player" - lost sound! . Run with vlc - sound slippage! Why isn't sound "nailed" to video? **************** 20Jan2015 - Usage of "sox" audio program to capture vidProd audio modify 0_vidExtract - common data, operators.ndf test in 0_vidFilm - screen capture of vidProd.ndf . with lots of fudging, I finally got sox to separately record the audio >> Get rid of need for "sox"!! Now, how to get recordmydesktop to capture audio!! . some screwing around, but now I get audio via rmd!! . For some reason, audio capture cut out early (before video cpature ended) >> Correct for the capture region of the screen .. . much better now, but one image is still "left hanging" - deal with this later rmd readjusts window size : deal with this later too (best to be too large) x y width height initial setting 0 32 868 679 adjusted 0 28 880 688 **************** 19Jan2014 recordmydesktop audio capture problem Try "Sound recorder" to feed audio mix to alsamixer+pavuc . Nyet - no commnand-line options >> audacity - I installed from "Software Manager" . not batch - it recommends sox or ecasound >> sox installed example recording : rec -c 2 radio.aiff trim 0 30:00 records half an hour of stereo audio rec -r 44100 -b 16 -s -p silence 1 0.50 0.1% 1 10:00 0.1% | \ sox -p song.ogg silence 1 0.50 0.1% 1 2.0 0.1% : \ newfile : restart records a stream of sudio such as LP/cassette and splits in to multiple audio files at points with 2 seconds of silence. Also, it does nopt start recording until it detects audio is playing and stops after it sees 109 minutes of silence. . >> try : rec -r 44100 "/home/bill/Projects/Stalin supported Hitler/music/Bee Gees/3 Bee Gees - Guilty.mp3" "/home/bill/test_rec.ogg" 3:00 sox -c 2 "/home/bill/Projects/Stalin supported Hitler/music/Bee Gees/3 Bee Gees - Guilty.mp3" "/home/bill/test_rec.ogg" 3:00 rec "/home/bill/Projects/Stalin supported Hitler/music/Bee Gees/3 Bee Gees - Guilty.mp3" play "/home/bill/Projects/Stalin supported Hitler/music/Rodriguez/Rodriguez - 01 - Sugar Man.wav" Pipe to rec : play "/home/bill/Projects/Stalin supported Hitler/music/Rodriguez/Rodriguez - 01 - Sugar Man.wav" | rec "/home/bill/rec)_test.wav" >> Testing via script file : /home/bill/bin/rec_test.sh . OK - I got it working eventually with audio file output capture ******************** 19Jan2015 Provide volume setting for each [voice, music] segment! Start by editing spreadsheet! (Otherwise the work is throw-away) This means changing the filenames in 0_vidProdn Stalin supported Hitler.ods as well (oops - that was throw-away!). I don't need this for vidProd, only for vidFilm : >> Run rmd with --no-sound option OK, run test & debug . NO AUDIO?!?!? - problem in coding changes isn't obvious . After many stupid mistakes & fixes, this now works ******************* # 18Jan2015 recordmydesktop - have to use Lenovo to get audio capture in file? **************** 18Jan2015 First pass on code changes to facilitate screen capture by vidFilm of vidProd ERROR - I mistook "t_snip" for "t_duration" : t_snip - time for video formatting conversion to take place t_duration - run time of DVD or vidProd segment Nuts, I'll have to correct that in 0_vidExtract - HitlerLost.ods etc. First test errors : 1. 0_vidExtract - start_2ndDrive is a check on the 500 Gbyte drive of the Lenovo computer, to make sure that it is mounted. this is not needed for now, so I commented it out 2. fixed up simple code errors - OK 3. Now the proble is that vidFilm isn't recording a window of the complex screen - alsamixer not launched - instead TWO pavucontrols? - start these independently! NUTS!! I can't capture digital sound on Toshiba??? - perhaps for now I can "shunt" the analogue out to analogue mic? - I think I did this back in Ottawa? OOPS! I hadn't installed recordmydesktop yet! Continue testing/ debugging : 4. after record starts, then error comes up : . "... Windowe size specification out of bounds! (vurrent resolution 1366x768) ..." . P I D _ r e c o r d M y D s k : ?eof . so there is a problem of getting the PID? . 0_vidFilm - basec on 0_vidProd coding, I changed to : rec_size_DVD := 870 690 ; rec_posn_DVD := 0 0 ; >> Now, window frame for capture OK, but recordmydesktop complains about compositing window manager, . and decides to capture full screen. Your window manager appears to be Mutter (Muffin) Detected compositing window manager. Reverting to full screen capture at every frame. To disable this check run with --no-wm-check (though this is not advised, since it will probably produce faulty results). >> Additionally, rmd complains about audio : Couldn't open PCM device hw:0,0 Error while opening/configuring soundcard hw:0,0 Try running with the --no-sound or specify a correct device P I D _ r e c M y D s k : ?eof >> Check directory : /home/bill/Projects/Stalin supported Hitler/Film/ . rmd did not write output, so capture totally failed! >> Check z_PID_recMyDsk.txt for rmd PID : . the file had been "touched" today, but there was no content, so the rmd PID was not found!?!?? . Maybe it never properly started? >> Test - set run time 00:02:00 and use linus : ps l . no signs of rmd !? - as per previous notes above >> Run with --no-sound . not it works (no sound, I guess), but can't write the output file!! . /home/bill/Projects/Stalin supported Hitler/Film//home/... . ie duplicated the dir_video_out! (oops) >> Looks good - doesn't just capture the full screen!! >> Try with "Test2" vidProd - two minutes of "Opening conterxt" with windows opening etc . Great video quality, works for short sequences at least. >> Now try shunting the audio with a cable from line out back to mic : >> First test alsamixer when vidCam recording with sound is playing . SATURATED!!! - try line out to SOony boom box line in, . then Sony headphone to computer mic . OK!! much better! doesn't saturate "Input devices" on Pavuc >> Save program files, and run Test2 for 2 minutes - see if I can capture audio . I removed ' --no-sound ' flag of rmd . Doesn't work - rmd won't launch. . What did I do last spring? . Can audio be recorded separately, and mixed back later? Or just run separately . (pausing/playback, moving around will be a problem). >> alsamixer F6 specified "0 HDA Intel MID" - I now get 4 verticle bars instead of . just two (Master, PCM, Beep, Capture, Analog Mic Boost) Give up for now - just use vidCam for film development, and wait for final production quality before fixing the problem. eg - Move capture to Lenovo desktop that has a proper digital audio card!!! **************** 17Jan2015 recordmydesktop of film computer := 'Lenovo' ; % Choices : 'Lenovo' - has 500Gb 2nd drive, 'Toshiba' - only has main drive ; mode := 'film produce, not DVD capture' ; % Choices : 'DVD capture, not film produce' 'film produce, not DVD capture' ; I installed through Software Manager : pavucontrol (PulseAudio Volume Control) alsamixer recordmydesktop (forgot - I did this the next day) ********************** 16Jan2015 converting .MTS video format to DVD format installed avconv - could get thorugh Software manager not Synaptic? /home/bill/Projects/Stalin supported Hitler/Film/avconv_MTS_to_DVD.sh I didn't actually try that script, as I hadn't installed avconv winff - slow and crapped out (would have taken 60 hours for 6 Gbytes!) Brasero - blank the DVD -> can't use my DVD+RW? http://www.rastersoft.com/programas/devede.html -> I didn't install/try I probably need new DVD+RW I give up on the DVD 17Jan2015 20:28 - bought new DVD-R - still get same message from Brasero : "... Please replace the disc with a supported CD or DVD. ..." Can't see how one could format it from Linux Mint tried Menu -> Accesories -> Disks What does "Create disk image" do? It seems to want to copy DVD contents to hard disk, and I cannot format the DVD (whu?) ********************* 16Jan2015 Reformat USB backjyp drive for Toshiba detailed name : 68d814f4-deb0-40cf-a960-1a77c436568a /media/bill/68d814f4-deb0-40cf-a960-1a77c436568a/ renamed : gnome-disk-utility -> installed but not recognized when I try to run it?!?? did it through GParted? - make sure you select the USB drive and not the internal HDD!!! *********************** 14Jan2015 Readjust window size/location for "pqiv" image viewer A lot of work! But it doesn't behave well in terms of the window sizing and positioning, so best to go back to sxiv... *********************** 12Jan2015 Restart work on project Obvious setup problems : 1. music doesn't play - are the files there? I copied my music directories/files to project subDir music/ That solved that 2. videos don't play - I changed "Stalin supported Hitler" dir/file permissions to read for group and others! - Also, the filenames all changed due to re-recording, so I renamed the ones for the test segment in the HL_lost dir. All must change, though. 3. windows of the "banners" are too large and have extraneous icons - change setting or viewer! try other image viewers : "sxiv -b " - compact, but has title bar and ctrl+q doesn't kill window b option removes bottom bar s option scales image to window, but won't resize! "pqiv -i --window-title=" " " - still leaves upper bar for window-closing, - but gets rid of distracting title! - oops - when title removed, file can't be found to move/resize - windows won't close (maybe this problem is general with Linux Mint?) qiv - original program, doesn't resize image, - useless 4. New command to kill a window : xdotool windowkill [window_id] - Works great!!!! 5. banners and windows must be repositioned for [pqiv, sxiv] image viewers? pqiv - requires this sxiv - is fine for now, but not as good in the end as pqiv as images leave big borders in window 6. QNial gets stuck at some process near the end However, when I waited ?20 minutes?, then the process continued and all windows closed!!?!?! Why does media_start "\Qnial"???? - occurs before media_start "ICEBREAKER corner" - I commented out "ID_Qnial := first winID_get 'Qnial' ; " >> Result : STILL hangs up after closing Rodriguez music - the music is stopped, by the "Opening Context" slide stay open - window names include the full path for sxiv - maybe that is the problem - v_log.txt has nothing appended - not used for production (maybe extraction) - z_vidProdn_log.txt - does record appended stuff - this leaves open : media_kill ID_Theme ; media_kill ID_Howell ; %media_kill ID_music ; media_kill ID_corner ; media_kill ID_Title ; - man sxiv explains that the window title can be set - this could be set to the filename! uses ~/.sxiv/exec/image-info - try commenting out music kill? Take out "%" %media_kill musicID ; % dont need with audiopreview ; >> Result : didn't help - but "HitlerLost refband.png WAS closed! what's next? -> 14Jan2015 - reverse commentout %media_kill musicID ; % dont need with audiopreview ; - debugging would be greatly improved if the window short names were saved for use with "media_kill" !! - lower-right band "A year of stunnin" window is killed twice? That is because it is invoked twice in a row (voice & video) and only "pops up" once, probably because the first kill is too late to prevent overlap of timing? OR - because a .wav file and the png file have the same name? - two windows!! OR - music/audio don't have windows!?! - I still can't find the problem, which seems to be a lock-up : after killing "A year of stunning victories.png" before killing "Opening_Context.png" - give up for nopw - later... . *********************** 04Oct2014 Additional programs to PERHGAPS (?) download noticed as hidden directories from Lenovo -> Toshiba HD transfer avidemux kino (?no use?) mozilla - bookmarks! ocrfeeder scilab *********************** 03Oct2014 Test vidProdn QNial - check profile.ndf, quips.ndf seem OK bin - not searched missing /home/bill/bin ! copied from Lenove desktop setting as path for scripts http://stackoverflow.com/questions/9368099/how-do-i-modify-my-user-profile-file-to-append-a-scripts-folder-i-created-to-the I edited the file /home/bill/.profile : It was already there! but perhaps I have to reboot as I just copied it over... After reboot : GREAT! It works .. loaddefs "profile -> OK lq (loaddefs "quips") -> OK As a scary test, try to run video production : pv Result : missing xdotool my voice played, but not music (I had not transferred music!) vlc only played some videos when I was doing Ctrl-C to terminate each step Actions : shorten the part played for setup on Toshiba!!! download xdotool xdotool - shutting down a window+application via "ctrl+q" doesn't work! ********************* 03Oct2014 Setup software for vidProdn, download with LinuxMintDeb Software Manager first : kwrite (downloaded using Synaptic Package Manager) list of programs used pgm_delays := 'eog' 1 already installed, OK, this works 'gpicview' 1 I installed this 'audiopreview' 1 I installed this 'amarok' 2 I installed this 'audacious' 2 I installed this 'totem' 2 already installed, OK, this works 'vlc' 2 already installed 'cvlc' 2 no search results - not installed (ghost application anyways?) ; ******************** enddoc