/home/bill/System_maintenance/video notes.txt ********************** Video prototyping "Conductor" for a writeup consolidating [setup, instructions, problems] see : /media/bill/HOWELL_BASE/Qnial/MY_NDFS/video production/0_Conductor video prototyping instructions.odt 16Oct2016 haven't really started yet - just collecting points videos - need alsamixer & pavuc? no! vlc --help : BIG description of options vlc --longhelp --advanced : HUGE help!!!! (saved to file in "video production" directory) +-----+ frames per second (fps) 30 - for vidCam files (otherwise many dropped frames) 24 for Hollywood DVDs +-----+ .MTS file format no good for vlc player (won't resize) - convert to ogg edit & run : /media/bill/HOWELL_BASE/bin/avconv video to ogg.sh +-----+ 28Oct2016 win_siz_mov DOESN'T WORK if an application (eg gedit) is maximized! +-----+ # Alternate method - If you did not find your digital device with the above commands, keep reading. # Otherwise, skip to the Use Your Device section. # -> Alternative method $ cat /proc/asound/devices (this WORKED!!!) +-----+ 12Dec2016 Check the audio track information from the original file $ avconv -i original.mp4 +-----+ 18Dec2016 https://www.libav.org/avconv.html#asyncts "avconv Documentation" -> great info!! ************ *********************** 18Dec2016 avconv async option My current impression is that async is to "morph" the audio timing to fit the exact video times, but that this is NOT what I want to do!! Also, as per comemnts below, the audio & video must already have timestamps in the file data, which is probably not the case for my audio (captured via James Pemberton's computer) https://www.libav.org/avconv.html#asyncts "avconv Documentation" great info!! http://superuser.com/questions/681263/ffmpeg-avconv-async-is-not-working-unsync-audio#681358 ffmpeg/avconv async is not working - unsync audio ptQa, edited Nov 28 '13 at 10:15, answered Nov 27 '13 at 15:38 Option -async help only if you have timestamps in your audio and video streams. I doubt you have it. Tha's why you don't see any difference in output. So probably your problem is that video and audio have different duration and start time. If it's so you should trim your audio or video stream (it depends whether your audio or video is longer). Update: Ffmpeg does not have any information about which audio package is should be displayed at the same time as some video frame. You should use some container that have timestampts in streams like mpegts, not wav. shareimprove this answer *********************** 18Dec2016 taking snippets of audio & video https://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/ Top 5 Linux Video Editor Software by Vivek Gite on August 18, 2009 last updated December 23, 2014 OpenSHOT, Avidemux, Kdenlive, LiVES, http://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg Kalai, asked Aug 26 '13 at 12:34, edited Aug 27 '13 at 6:32 I tried to cut the video using the start and end time of the video by using the following command ffmpeg -ss 00:00:03 -t 00:00:08 -i movie.mp4 -acodec copy -vcodec copy -async 1 cut.mp4 mark4o, answered Aug 26 '13 at 17:27, edited Jul 22 '14 at 0:51 You probably do not have a keyframe at the 3 second mark. Because non-keyframes encode differences from other frames, they require all of the data starting with the previous keyframe. If you want to cut precisely starting at a non-keyframe and want it to play starting at the desired point on a player that does not support edit lists, or want to ensure that the cut portion is not actually in the output file (for example if it contains confidential information), then you can do that by re-encoding so that there will be a keyframe precisely at the desired start time. Re-encoding is the default if you do not specify copy. For example: ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4 ********************* 16Dec2016 Audio - - Totem videos works audio OK - VLC didn't work until I switch to [left, right, reverse stereo] - quality with both is OK!! (timing adjustment I'm not sure) Now, the issue is video quality **************** 16Dec2016 PB Tek Tascam DR-05V2 Portable Digital recorder Offices : - Aukland CBD 1st floor 105 Queen St (09)-304-0373 - Aukland -UNI Level 2, Kate Edger Info, 9 Symonds (09)-357-0882 - Manukau, only store with one, (9)-262-0561 FAR AWAY!! ************ 12Dec2016 Microsoft wma audio - doesn't get blended in https://www.linux.com/news/audio-conversion-tools-linux February 28, 2008 Audio conversion tools for Linux Author: Razvan T. Coloja In addition to these multi-format tools, there's a dedicated tool for converting almost every major audio format. OggConvert's http://oggconvert.tristanb.net/ purpose is to provide an easy-to-handle GUI for converting different file formats into Ogg. To use it, load a source folder, move the audio conversion bar to pick an audio quality, specify file names and destination folders, then click on Convert. >> This gave CRAPPY audio quality! keep in wma format... ******************** 12Dec2016 blend audio & video streams http://tuxdiary.com/2014/08/29/extract-merge-audio-video-tracks-avconv/ 1. Check the audio track information from the original file $ avconv -i original.mp4 ... Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 95 kb/s ... >> 1. avconv -i "/media/bill/VIDEO_PRODN/ACM Facility Safety presentation 01Sep2016/Howell - Big Data, Deep Learning, Safety nosound.ogv" Duration: 00:35:12.79, start 0.000000, bitraqte 848 kb/s Stream #0:0: Data: none Stream #0:1: Video: theora, yuv420p, 1248x672 [SAR 1:1 DAR 13:7], 24 tbr, 24 tbn, 24 tbc Metadata: RECORDMYDESKTP : 0.3.8.1 2. Copy audio and video tracks to the same directory and merge them. Let’s say that you need to add some delay to the audio as well. The following command does it all $ avconv -i video.mkv -itsoffset 00:00:00.2 -i audio96.aac -acodec copy -vcodec copy merged.mkv >> avcon -i "/media/bill/VIDEO_PRODN/ACM Facility Safety presentation 01Sep2016/161211 Howell - full ACM audio.wma" Metadata: WMFSDKNeeded : 0.0.0.0000 DeviceConformanceTemplate: L1 WMFSDKVersion : 12.0.7601.17514 IsVBR : 0 Duration: 00:34:57.41, start: 0.000000, bitrate: 96 kb/s Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 96 kb/s ********************* 25Nov2016 viCapture ACM video on Tosghiba to keep audio & video consistent ********************** 24Nov2016 add [Toshiba Lenovo] screen specifics of : 0_vidProdn - common data, operators.ndf >> OK, works ********************* 15Nov2016 Simply record audio directly when Sociology is running 24Nov2016 - do for whole film? ********************* 15Nov2016 Desperate attempt to record audio from music files!!! (Linux pain in the ass!!) Alsamixer : F6 Select sound card : 0 Xonar DG F3 Playback : Analogue Input ~100%, Analog out : Speakers, Digital In : ~100% (not used here) F4 Capture : Line 77<>77 Pulse Audio Volume Control : Configuration : - High Definition Audio Controller : Digital Stereo (HDMI) Output (not used) - Built-in Audio : Analog Stereo Output - CMI8786 (Xonar DG) : Analog Stereo input Input Devices : - CMI8786 (Xonar DG) Analog Stereo : Line In Output Devices : - High Definition Audio Controller Digital Stereo (HDMI) : HDMI / DisplayPort (all boxes checked) - Built-in Audio Stereo : Speakers Recording : - Cinnamon Volume Control Dialog : Peak detect from : CMI8786 (Xonar DG) Analog Stereo (I muted this) - when recording : - ALSA plug-in [aplay]: ALSA Capture from : Monitor of Built-in Audio Analog Stereo Note that having RESTRICTED the toles of the Xonar DG & Internal audio, far fewer options in other tabs! >> RESULT - still can't get the audio!! >> I'm out of time - I will save music separately!! (what a pile of crop - could use laptop during record) *********************** 14Nov2016 Can't capture sound with recordmydesktop ERROR from recordmydesktop : Couldn't open PCM device hw:0,0 Error while opening/configuring soundcard hw:0,0 Try runing with the --no-sound or specify a correct device # https://community.linuxmint.com/tutorial/view/628 rmkimathi Go : Applications (Howell - LinuxMint Menu) -> Preferences -> Sound There on the Hardware tab. Choose a profile that does NOT contain anything related to digital or IEC. I chose Analog Stereo Duplex. My theory is, that if you go digital there, pulse is blocking the digital output. The sound preferences window seems to be only related to pulse, not alsa at all. --- Now open up a terminal window and start: gstreamer-properties On the Audio tab, select ALSA - Advanced Linux Sound Architecture, for Default Output. As Device, choose the digital device, in my case: ALC889A (my sound chip) digital. I selected ALSA also for Default Input, though I don't think Input has any effect, as long as you don't use a mic or something. In XBMC, I got both devices for audio and passthrough set to IEC958. And voila :-) I am enjoying happy sound via Alsa in Ubuntu and XBMC, via HDMI and SPDIF, including passthrough in XBMC. Hope this can help others to avoid audio troubles in Linux. *********************** 04Nov2016 Installation of Xonar DG sound card on Lenovo (CMI8786) I can see this under Linux Menux -> Settings -> Sound, analogue works, but cannot get digital sound test to work Pulse audio volume control (pavuc) - Xonar shows up as CMI8786 (Xonar DG) Digital Stereo (IEC958)!! OK Try using recordmydesktop : -> /media/bill/VIDEO_PRODN/ACM Facility Safety presentation 01Sep2016/video capture/0_vidExtrn ACM.ndf -> screenCaptureACM >> ***************** 01Nov2016 Shawn the Sheep - MTS file not resizing -> 03Nov2016, now this works??? **************** 31Oct2016 IEC958 - can't find in alsamixer & pavuc 31Oct2016 Conclusion : previous recordmydesktop sessions were done with my Dell laptopo The Toshiba laptop Intel sound card doesn't have digital utput for capture by alsamixer >> drove to Calgary : neither Best Buy nor Memory Express carry the cards >> I ordered a 30$ card through amazon (170$ for SoundBlaster not worth it - buy a new computer! # from http://alsa.opensrc.org/DigitalOut - DigitalOut -> Find your device # -> Separate playback device $ aplay -l (don't need superuser mode) # -> Device aliases $ aplay -L # Alternate method - If you did not find your digital device with the above commands, keep reading. # Otherwise, skip to the Use Your Device section. # -> Alternative method $ cat /proc/asound/devices (this WORKED!!!) # ---> # -> Use your device # ---> Test your setup $ aplay -D iec958:CARD=M2496,DEV=0 Narrlanda.wav >> I tried this >> FIRST $ PATH=$PATH:/medial/bill/HOWELL_BASE/bin (must be done manually for now until I find the trick for non-interactive bash) >> THEN $ bash audio_device_find.sh Is this a problem with security blocking ports? from my notes 04Jun2016 in 0_security notes.txt http://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/ Great description of Iptables sudo -i iptables -L lists policies iptables -L -v verbose option lists activity since startup >> can't see any restrictive policies https://ubuntuforums.org/showthread.php?t=857898 No iec958 in Alsamixer >> 30Oct2016 Howell DID NOT add from https://ubuntuforums.org/showthread.php?t=857898 options snd-hda-intel model=6stack-digout https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/236372 SPDIF on hda-intel does not support more than two channels >> Might be handy one day... http://forums.debian.net/viewtopic.php?t=90479 Help getting IEC958 Listed in Alsamixer >> awesome tech spec details!! Re: Help getting IEC958 Listed in Alsamixer Postby oddworld » 2012-12-24 18:37 I have fixed the problem. Simple fix: Code: Select all aptitude install alsa-utils >> This is already installed on my system Re: Help getting IEC958 Listed in Alsamixer Postby oddworld » 2012-12-24 19:05 Well, to be honest, I installed a bunch of things by alsa, and I can't quite remember what I installed. So, one of the following fixed the problem: alsa-tools, alsa-oss, libmad0, libmad0-dev, libmadlib, alsa-utils >> I installed [alsa-tools, alsa-oss] but NOT [libmad0, libmad0-dev, libmadlib] https://www.mythtv.org/wiki/Configuring_Digital_Sound Configuring Digital Sound by MythTV >> great description!, not of immediate help http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ch10s03.html IEC958 (S/PDIF) Usually the controls for IEC958 devices are implemented via the control interface. There is a macro to compose a name string for IEC958 controls, SNDRV_CTL_NAME_IEC958() defined in . >> not much help here, but interesting https://ckirbach.wordpress.com/2015/02/21/how-to-enable-iec958-spdif-on-cmi8738-in-ubuntu-linux/ How to enable IEC958 (S/PDIF) on CMI8738 in Ubuntu Linux >> didn't help - doesn't explain how to find IEC958 **************** 30Oct2016 how to record screen when 0_vidProdACM is playing : /media/bill/VIDEO_PRODN/ACM Facility Safety presentation 01Sep2016/video production/0_vidExtrn ACM.ndf /media/bill/VIDEO_PRODN/video production/0_vidExtrn - common data, operators.ndf just run a second qnial in another terminal with loaded 0_vidExtrn - common data, operators.ndf start both qnial sessions when video has played its course - end screen capture 29Oct2016 wPosn_now wSize_now := wPosn_full wSize_full ; % this has NO effect on image_next!! ; 29Oct2016 winID_get/winID_getMany -> Kwrite, gedit, clvc return application name, not window name!! 29Oct2016 vlc audio volume setting : --volume-step Audio output volume step >>Actually - just pre-set vlc volume level by running a video before running vidProdn ***************** 28Oct2016 win_siz_mov DOESN'T WORK if an application (eg gedit) is maximized! # 28Oct2016? recordmydesktop - cannot run from Lenovo nor Toshiba as neither has # digital audio capability!! (sound card ordered - but is cheap) >> great service from amazon & Mike's Audio Shop Vancouver **************** 22Oct2016 catenate video files http://ulyssesonline.com/2009/12/03/concatenate-video-files-using-ffmpeg/ Concatenate Video Files Using FFMPEG Posted on December 3, 2009 by ulysses Cat is not enough. cat abc.mpg def.mpg > ghi.mpg What you need to do is use CAT and pipe the output using FFMPEG. The command: cat abc.mpg def.mpg | ffmpeg -f mpeg -i - -vcodec copy -acodec copy ghi.mpg You now have a file named ghi.mpg which is the combined output of abc.mpg and def.mpg. You can concatenate 3 or more files if you wish. FFMPEG is such a powerful video converter program capable of converting videos to any video format like avi, wmv, mov, etc. Earlier in the year, I wrote how to install FFMPEG and also another explaining the options. **************** 17Oct2016 vlc audio volume http://superuser.com/questions/100891/vlc-command-line-interface-on-windows --volume=[0...1024] I tried : bash /home/bin/vlc audio test.sh +-----+ #!/bin/sh # /home/bill/bin/vlc audio test.sh # www.BillHowell.ca 17Oct2016 # test audio volume preset for vle cvlc --play-and-exit --no-video-title-show --volume=600 "/media/bill/HOWELL_BASE/Projects/ACM Facility Safety presentation 01Sep2016/Scenes/Deep Checkers, Chess, Go/Kasparov versus Deep Blue.vob" >> This works, but volume is still too low! +-----+ #!/bin/sh # /home/bill/bin/avconv audio volume test.sh # www.BillHowell.ca 17Oct2016 # test audio volume adjustment via avconv avconv -i "/media/bill/HOWELL_BASE/Projects/ACM Facility Safety presentation 01Sep2016/Scenes/Deep Checkers, Chess, Go/Kasparov versus Deep Blue.vob" -vol 600 -o "/media/bill/HOWELL_BASE/Projects/ACM Facility Safety presentation 01Sep2016/Scenes/Deep Checkers, Chess, Go/Kasparov versus Deep Blue vol600.vob" *********** 16Oct2016 imageList operators - to improve "reference hiding" Lots of changes all over - big risk of bugs ********* 16Oct2016 copy from spreadsheet to 0_vidProdn.ndf - extra quotes are put in and strings are broken across lines for now - manually fix, but this is a pain in the ass! *************** 11Oct2016 image_test freezes at the end - why? (NEW problem) *************** 11Oct2016 xdoot windowraise not working from within qnial - what about wmctrl? +-----+ http://unix.stackexchange.com/questions/203715/how-can-i-automate-window-tiling-with-a-custom-width-cinnamon How can I automate window tiling with a custom width? (Cinnamon) asked May 15 '15 at 22:47, TuxForLife >> You can use wmctrl for this, as example from the old linux mint mate forum, I think you also can use it in cinnamon: wmctrl -r :ACTIVE: -e 0,0,0,width,height This should work. If your screen is fullscreen you should use: wmctrl -r :ACTIVE: -b remove,maximized_horz,maximized_vert wmctrl -r :ACTIVE: -e 0,0,0,width,height source: http://forums.linuxmint.com/viewtopic.php?f=90&t=109020 or use ctrl + numpad to get the desired location source: http://www.reddit.com/r/linux/comments/tbqky/window_snapping_pseudotiling_wm/ shareimprove this answer answered May 19 '15 at 12:10, CedianO +-----+ man wmctrl IT WORKED!!! (stupid - I should have thought of wmctrl long ago!!!) +----+ test on actual "Safety of CI itself" pv >> Have to revamp some code in spreadsheet!! *************** 07Oct2016 Problem now is that "image_raise" works in test mode, but not in "production" Why?? I could try window_activate? +-----+ winID_get '2 Preliminary' isn't executing - waits to end of "image_test" and hangs up there!?!?? >> oops - called after window doesn't appear in "image_test" *************** 03Oct2016 nice to set priority of program : http://www.thegeekstuff.com/2013/08/nice-renice-command-examples/?utm_source=tuicool uses single hyphen for >0 (lower priority), double hyphen for <0 (higher must be root user) Default is zero, can have higher priority unless superuser, so only thing to do is lower audio priority? *************** 30Sep2016 revamps winID_get IS OP winTitle - changed to be simpler 07Oct2016 This seems to have worked **************** 30Sep2016 win_size_move fails! This hadn't been a problem with gpicview in the past? (but occasionally) gthumb-eog,Image Viewer all seem to be intertwined. It seems that sizing one of them restricts the others. >> I added "--sync" to the operators, but this didn't work. However, maybe my revamp of winID_get will help? Try it : MUCH BETTER! still something wrong, though on-and-off **************** 30Sep2016 xdotool - signaling delays perhaps one way to improve response is to raise the priority of the qnial output to above normal, but less than [audio, video, etc]? -- sync option - THis REALLY improved everything!!!! **************** 27Sep2016 Process the rest of Kasparov snips I tested to calculate time factors, and re-adjusted manually. NOTE : VLC allows one to de-interlace Now - catenate the video files via bash file https://forums.linuxmint.com/viewtopic.php?t=56478 How do I join video files? by geezuslvr » Tue Sep 28, 2010 7:38 pm, by kabage » Wed Sep 29, 2010 5:24 am In a terminal at the .VOB directory Code: Select all cat VTS_01_[0-2].VOB > ~/all.vob #!/bin/sh cd '/media/bill/HOWELL_BASE/Projects/ACM Facility Safety presentation 01Sep2016/Scenes/Deep Checkers, Chess, Go/' cat 'Kasp_01_02 00h07m43s-00h08m10s Kasparov plans to confuse Deep Blue, gets in tough position 27s.vob' \ 'Kasp_01_02 00h08m24s-00h08m47s Deep Blue in deep think 23s.vob' \ 'Kasp_01_02 00h08m57s-00h09m10s Deep Blue plays Karpov-like move 13s.vob' \ 'Kasp_01_02 00h13m27s-00h13m36s Something not in the rules 9s.vob' \ > 'Kasparov versus Deep Blue.vob' **************** 27Sep2016 avconv - try "-pass n (n = 1 to 3) for better quality? Try : cmd := link 'avconv ' ' -ss ' (string sec_from_time ts_start) ' -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -pass 3 ' ' -f vob "' dir_video_out snip_fileName '" ' ; Error : Cannot read file 'ffmpeg2pass-0.log': No such file or directory >> Add -loglevel 3 to see if that works The program ran, but no output? Try again >> Nothing again. Leave this for a rainy day **************** 26Sep2016 18:34 for video snipping only (can't screen capture) try avconv instead of recoredmydesktop IMPORTANT!! - recordmydesktop ONLY works on Toshiba : pulseaudio needs the IEC958 audio card, which is on the Toshiba! flag_rmd := l ; % rmd = recordmydesktop, as opposed to avconv. This should be set in each 0_vidExtract DVD data file ; This was put as global just before "Kasparov" Oops - no avconv http://www.larshaendler.com/2016/04/13/install-avconv-on-linux-mint-or-ubuntu/ sudo apt install libav-tools >> done vidEx -> ERRORS : 1. [mpeg2video @ 0x9efec60] Invalid frame dimensions 0x0. 2. Codec AVoption bufsize (set ratecontrol buffer size (in bits)) specified for input file #0 (/media/bill/Lexar/Kasparov vid/VTS_01_2.VOB) is not a decoding option. Can't "man avconv" Search "Linux Mint and avconv and options" http://www.tecmint.com/avconv-command-examples/ 11 ‘Avconv’ Commands to Record, Convert and Extract Videos & Audios from Linux Terminal by Hanny Helal | Published: November 26, 2014 | Last Updated: January 2, 2015 To extract the audio only from any video file, and to output it to another file, you may run the following command. $ avconv -i Michael-Jackson-You-Rock-My-World-HD.mp4 -vn -f wav sound.wav -vn is an option that we use to remove the video from the multimedia file. -f wav is the format we want our output file to use it, you can switch to “mp3” or “webm” if you want. sound.wav is the name of the output file. $ avconv --help In snip_record I removed ' -bufsize 1835k ' from the following cmd := link 'avconv -timelimit ' (string t_snip) ' -bufsize 1835k ' ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -q 12 -strict experimental "' dir_video_out snip_fileName '" ' ; I don't know what to do about error : 1. [mpeg2video @ 0x9efec60] Invalid frame dimensions 0x0. just loaddefs & try again >> It processed input and produced 6Mb file output (should be ~15Mb?), but it can't be run? videos player ERROR : This file contains no playable streams. vlc player : no action or message... Now change : cmd := link 'avconv -timelimit ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -q 12 -strict experimental "' dir_video_out snip_fileName '" ' ; to : cmd := link 'avconv -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -f ogg "' dir_video_out snip_fileName '" ' ; >> Works, but SHITTY video resolution, choppy motion Now try : cmd := link 'avconv -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -s 625x300 ' ' -f ogg "' dir_video_out snip_fileName '" ' ; size = WxH -> full size 1251x600, half size 625x600 much smoother flow, but still a bit chppy & video resolution sucks! Now try : cmd := link 'avconv -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -s 1251x600 ' ' -f mp4 "' dir_video_out snip_fileName '" ' ; No output file - premature termination.. Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Now try : cmd := link 'avconv -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -s 1250x600 ' ' -f vob "' dir_video_out snip_fileName '" ' ; Good enough - could make it better later with 2 snip records, nothing output? even given "wait_recordmydesktop t_snip ; " snip_record '00:08:19' '00:08:44' 'Kasparov takes a chance' ; snip_record '00:13:26' '00:13:36' 'Something not in the rules' ; Now try : wait_recordmydesktop IS OP secs_duration { NONLOCAL t_factor_recordmydesktop_processing ; secs_wait := (secs_duration * t_factor_recordmydesktop_processing) ; host (link 'sleep ' (string secs_wait) 's') ; } cmd := link 'avconv -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -ss ' (string sec_from_time ts_start) ' -s 1250x600 ' ' -f mpeg "' dir_video_out snip_fileName '" ' ; STRANGE - now I can't get ANY output???? This sort of works (quality OK, but not great) : cmd := link 'avconv ' ' -ss ' (string sec_from_time ts_start) ' -t ' (string t_snip) ' -i "' dir_media_in fname_video_in '" ' ' -f vob "' dir_video_out snip_fileName '" ' ; There is a serious time offset from what is desired... will have to fudge around to get start & end right **************** 26Sep2016 Another vidEx attempt on Lenovo desktop computer This time, vlc didn't initially crap out output errors : These were "spread out" as well (space between each character) : PID_recMyDsk: ?eof record_kill : SIGTERM -15 sent to PID_recMyDsk ?eof Normal tight character outputs : Couldn't open device hw:0,0 Error while opening/configuring soundcard hw:0,0 Try running with the --no-sound or specify a correct device +-----+ 1. PID_recMyDsk: - is in operator recrd_start pname_PID_recMyDsk := link dirBase 'z_PID_recMyDsk.txt' ; >> This file is empty in operator recrd_start : host link 'pidof >"' pname_PID_recMyDsk '" recordmydesktop ' ; changed to host link 'pidof >"' pname_PID_recMyDsk ' recordmydesktop ' ; ... +-----+ 2. waitDVD for first snip : waitDVD: delta = 22 (seems too short!) ts_prestart := time_from_secs ((sec_from_time ts_start) - t_delay_video_onset) ; given as '00:08:25.5' which is OK! Actually, for 1st snip, it was waitDVD: delta = 498.5 ~ 00:08:18.5, also OK +----+ 3. Sound card - alsamixer switch back from "1 HDA Nvidia" to '0 HDA Intel' >> done (as specified in start_alsaMixer instructions!) +-----+ could use avconv instead of recordmydesktop by setting flag_rmd := o ; ... maybe try later now loaddefs Note : window manager appears to be Muffin **************** 26Sep2016 VLC media palyer (or something) crashes Ran "vidEx", Kasparov video starts up in vlc, then (probably from "snip_record") : Error message repeated 4 times : "Fontconfig warning: FcPattern object size does not accept value "0" " >> ?? don't know if this is important, not what it means Next error message : "[0x85ab270] main vout display error: Failed to resize display " ... "Defaulting to search window name, class, and classname" ... "WID_vlc: 90177553" ... "waitDVD: time_fmt = 0:00:00" ... Error message : "vlc: Fatal IO error 11 (Resource temporarily unavailable) on X server :0." ??? Try : switch alsamixer using F6 from sound card "1 HDA Nvidia" to "0 HDA Intel" Same error Search "Linux and vlc: Fatal IO error 11 (Resource temporarily unavailable) on X server" >> What a mess! many different types of problems, low-level fixes clearws, reload QNial, try again... >> nyet Ah Hah! pavucontrol is GUI for pulseaudio Software Manager -> pavucontrol -> install Not in menus -> run from terminal to get GUI? >> Ok, at least it runs! Look at Stalin,Hitler programming - was viEx run on Lenovo? /media/bill/ATA_WDC_500G/Stalin supported Hitler/z_old/vidExtract - Soviet Story snippets 140402.ndf It APPEARS that it was run on Lenovo, but not 100% sure. t_snip is missing!! used ONLY for avcon part of snip_record recordmydesktop - not installed?!?? >> DONE (sheesh!!) set_t_offset_DVDfile - 26Sep2016 I had commented out t_offset_DVDfile, but this is needed! **************** 25Sep2016 0_vidExACM.ndf - Can't run from Toshiba? (pavucontrol & alsamixer - no digital audio streams 26Sep2016 try on Lenovo >> Pulse Audio Video Control (pavuc) - not installed on Lenovo? (must have re-installed Linux Mint or something...) Software Manager "puclse audio" - couldn't connect to server Menu -> Edit -> Software Sources -> change main source (given that it's morning time!) : from http://packages/linuxmint.com to http://mirror.nexcess.net/linusmint/packages change Base (testing) server : from http://debian.linuxmint.com/latest to http://mirror.pw/linuxmint-debian/latest -> maybe there weren't any package list downloads?? Install pavuc : >>??Weird - now Software manager lists is installed, but no Menu logo/listing, can't run "pavuc" from command line >> can't get GUI interface!! >> but - It is RUNNING?? Try again "vidEx" >> No workee, "Ctrl-C" doesn't stop Qnial, had to close window Now look at System monitor : >> pulseaudio is running at very high priority Try switching audio cards? alsamixer Menu -> F6 -> from 0 HDA Intel -> this is ANALOG! to 0 HDA NVidia -> this card has NO capture controls??!! Look at "/media/bill/HOWELL_BASE/System_maintenance/PulseAudio Volume Control (pavictrl)/0_PulseAudio Ctrl notes - setup, problems.txt :" >> can't see any hints of use AGAIN, Try switching audio cards? alsamixer Menu -> F6 -> from 0 HDA Intel -> this is ANALOG! to 0 HDA NVidia -> this card has NO capture controls??!! >> still get error messages from vidEx execution re-load QNial & lq_vidExACM type "start_PulseAudio" to see what happens >> OOPS!!! xdotool not found!? (stupid me for not seeing!!) >> Sotware Manager - can't see xdotool? Software Manager -> Menu -> Edit -> Software sources -> change from http://mirror.pw/linuxmint-debian/latest to http://mirror.internode.on.net/pub/linuxmint-debian/latest then update cache -> this time there wer NO missing package notices (unlike previous) >> Oops - it's "xdotool", not "xdotools"!! >> OK, now it downloads... AGAIN : re-load QNial & lq_vidExACM type "start_PulseAudio" to see what happens >> OK now it works now do "vidEx" from QNial >> OK, now it runs, but it quits after 1 to 2seconds. Why? >> Error message : "vlc: Fatal IO error 11 (Resource temporarily unavailable) on X seerver :0." >> Also "set_t_offset_DVDfile -> offset (s) = 0" >> This is because t_offset was set to '00:00:00' in Startup! ******************* 21Sep2016 dump kate, back to gedit for heads 7 refs 21Sep2016 gedit & kate - I had a semi-colon withing a comment line!! SHIT!!! tests of headings and references -> kate & gedit work fine test of pv for CI Introduction only >> kate (like all kde stuff) pollutes QNial terminal with endless messages - not much use >> maybe if I post headings & references BEFORE posting an image it will help? (image_start) *************** 21Sep2016 gedit - typing into when "pv" (playing video) This is very hit & miss. One window for headings.txt, the other for references.txt Both work well "stand-alone" I could only get references.txt working for some time, then after substantive changes, it doesn't work either? I could use LibreOffice write - but it's too big (size & menus etc) After solving Software Manager download problem by changing repositories, I installed the kate text editor Am trying it for headings in the 0_vidProdn - common data, operators.ndf **************** 11Sep2016 Editor command line for vidProdns I don't want to use kwrite, as configurations will change how it [appears, works] for my normal work http://www.thegeekstuff.com/2009/07/top-5-best-linux-text-editors/vim by far, overgedit, nano, gVim, emacs http://www.yolinux.com/TUTORIALS/LinuxTextEditors.html nano, vi - useless gedit - OK, but tabs takes space, use this for now nedit - Selected font for headings : Gentium book basic bold, size 16 I NEED A DIFFERENT TEXT EDITOR FOR REFERENCES - gedit changes font across all open files! http://wideaperture.net/blog/?p=4264 word processors abiword, Calligr - seem best !!!!CAN'T download with "Software Manager", nor with Synaptic?!!! **************** 10Sep2016 List of keysyms http://wiki.linuxquestions.org/wiki/List_of_keysyms nul 0x0000 Control_a through g 0x0001 through 0x0008 BackSpace 0x0008 Remove the character to the left. Delete does the same thing, but it works at the login prompt as well. To remove the character under the cursor, use the string "\033[3~" (mapped to Remove by default). Control_h is a synonym. Tab 0x0009 Moves one tabwidth to the right. Control_i is a synonym. Linefeed 0x000a Starts a new line. Control_j is a synonym. Control_k through z 0x000b through 0x001a Escape 0x001b Control_backslash 0x001c Control_bracketright 0x001d Control_asciicircum 0x001e Control_underscore 0x001f **************** 17Jun2014 Voice recording problems arecord -t wav -r 19200 "/home/bill/Projects/Stalin supported Hitler/Opening_context/test.wav" device : /proc/asound/Intel/pcm0c/ device : AD1986A microphone built into laptop is decent - plug-ins suck for some reason! xx. Try : Result : Work : enddoc