/home/bill/System_maintenance/jackd/0_jackd notes - setup, problems.txt ***************************************** 02Apr2014 From /home/bill/Projects/Stalin supported Hitler/vidExtract - Soviet Story snippets.ndf +-----+ # Warning jackd must be setup & running to capture audio # see for background /home/bill/System maintenance/gtk-record notes.txt # recordMyDesktop : Advanced -> Sound Tab -> click "Use jack for audio capture" -> select system capture & playback 1 # "Recording is finished. recordMyDesktop has exited with status: 2816 # "Description: Improper window specification" # http://recordmydesktop.sourceforge.net/faq.php # recordMyDesktop is based on extensive usage of the Xdamage extension. Instead of capturing whole screenshots, the program marks the areas that have changed and updates them. This approach fails on two occasions. Video played throught the Xv extension and hardware accelerated glx context. This generally means 3d games and video windows. To record video you can configure your player to not use the Xv extension but rather go with X11/Xshm. This is a simple task on most video players and you should consult their documentation on how to do this. #Errors # 256 : Error while parsing the arguments # Use the command line version of recordmydesktop - not the GUI!!! "Run : jackd --silent -ddummy" # 26Mar2014 I used a terminal for "jackd --silent -ddummy" # run audio stereo jack from middle green plugin at back of Lenovo desktop computer to mic jack at front +-----+ # wait '0:00:00' ; %host 'echo SIGINT' ; % send Ctrl-C to terminate recordmydesktop session ; %host 'jackd -V &' ; % what a mess - start this from a separate terminal to avoid "feedback pollution"! ; #*********************** 27Mar2014 recordmydesktop video capture I simply COULD NOT get jackd to work with recordmydesktop May be due to not having a clue about device names, port codes, links etc Anyways, the decision was to go with SEPARATE video capture (by recordmydesktop) and audio capture (pulseAudio to gnome-sound-recorder to mp3 files) See : /home/bill/System_maintenance/jackd/0_jackd notes - setup, problems.txt /home/bill/System_maintenance/PulseAudio Volume Control (pavuctrl)/0_PulseAudio Ctrl notes - setup, problems.txt /home/bill/System_maintenance/recordmydesktop/0_recordmydesktop notes - setup, problems.txt /home/bill/Projects/Stalin supported Hitler/vidExtract - Soviet Story snippets.ndf # 27Mar2014 Audio and jackd : # run QjackCtrl, not command line # QjackCtrl -> Connections -> Audio -> Connect capture_1 to playback_1 & playback_2 # Start button - for server # Start button (blue) - to roll # terminal command : "normal" options MUST be put BEFORE the -d, backend options AFTER!!! jackd --driver=alsa -d hw:0 --duplex --period=32 --rate=22050 --nperiods=2 --shorts=true # Wonderful reference, description of setups! http://www.penguinproducer.com/Blog/2011/09/setting-up-jack/ ; see snapshot of default settings /home/bill/System_maintenance/jackd/140327 jackd - initial default connection settings.jpg #Command-line way to send keystrokes to a window open on a different X-session # http://superuser.com/questions/518907/command-line-way-to-send-keystrokes-to-a-window-open-on-a-different-x-session # from from http://thelinuxexperiment.com/tag/audio/ JACK is running in realtime mode, but you are not allowed to use realtime scheduling. Please check your /etc/security/limits.conf for the following lines and correct/add them: @audio - rtprio 100 @audio - nice -10 After applying these changes, please re-login in order for them to take effect. You don't appear to have a sane system configuration. It is very likely that you encounter xruns. Please apply all the above mentioned changes and start jack again! >> "rtprio 100" was already in the file, I TRIED to add "nice" line, but no do (would need superuser?) # /etc/modprobe.d/alsa-base.conf Maybe this can be used to specify ports? # Problems, failed statements : # host 'pgrep qnial' ; %ID_record := host 'pgrep recordmydesktop' ; %cmd2 := link 'xdotool search >"' pname_ID_recrd '" "' fname '"' ; %cmd2 := link 'xdotool search >"' pname_ID_recrd '" gtk-recordmydesktop ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' -o "' sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --use-jack system:capture_1 -o "' dirBase fname '" & ' ; %cmd2 := link 'xdotool search >"' pname_ID_recrd '" gtk-recordmydesktop' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --device hw:0 -o "' dirBase sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --use-jack system:capture_1 system:playback_1 -o "' dirBase sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --use-jack capture_1 playback_1 -o "' dirBase sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' -o "' dirBase sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --use-jack system:capture_1 -o "' dirBase sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --use-jack playback_1 -o "' dirBase sub_path fname '" & ' ; %cmd1 := link 'recordmydesktop --use-jack system:capture_1 -x ' x ' -y ' y ' --width ' width ' --height ' height ' -o "' dirBase sub_path fname '" & ' ; enddoc