# /home/bill/Projects/Nazis saved Norwegians video/0_Howell problems - Nazis saved Norwegians.txt Don't forgets : 29Feb2012 Convert ogv to avi : mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o "$2" $ pgrep totem to get windowID ***** 25Feb2014 16:35 Capture full film snippet Full film - didn't kill recordMyDesktop properly (?) - I can do this manually, but a solution is needed long term. Convert from ogv to avi : script /home/bill/Projects/Nazis saved Norwegians video/convert video from ogv to avi.sh : mencoder "/home/bill/Projects/Nazis saved Norwegians video/Nazis saved Norwegian lives.ogv" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o "/home/bill/Projects/Nazis saved Norwegians video/Nazis saved Norwegian lives.avi" +-----+ http://www.omgubuntu.co.uk/2011/09/how-to-convert-ogv-avi-ubuntu Ouch - audio in converted file is completely delayed from video! Kushal Sharma • 2 years ago Wow, you guys came in 1 week too late for me. I struggled with this very issue for over a year. I knew using ffmpeg on the command line would help me directly grab screencasts in avi or whatever format YouTube likes, but it was too complicated. But I realized that I could just use the following command after generating that .ogv file: ffmpeg -i input.ogv output.avi. This seems to work perfectly. (please confirm the syntax before using it, but I think that's pretty much what it is). +-----+ I'll try that! NOPE!! ffmpeg is replaced by avconv Muon update of avconv supported types via $avconv -formats (tons of them) youtube format? -> dunno AVI (Audio Video Interleave) FLV (Flash Video Format) -> This is second - all browsers support! WMV (Windows Media Video) -> nyet MOV (Apple QuickTime Movie) -> nyet ** MP4 (Moving Pictures Expert Group 4) -> THIS IS IT! - ?most? browsers support! high quality & compression SMPTE MXF - is a container developed as an industry standard by SMPTE. I must use terminal and bash - doesn't run by clicking? (common misunderstanding I have on how to get click-scripts to work) It looks like the ogv to mp4 conversion is still experimental -> go through flv mp4 format still doesn't work - skip it flv qaulity sucks! - set higher level in command line of script file... -qcomp 0.9 also 0.1 & 0.0 tried -> no differnece, ahlf the file size & crappy! Ah Hazh! bitrate refers to speed of processing, not film - so slow down to get better quality : -qscale 1 (best quality) -> this DIDN'T give lower bitrate/ higher quality -qscale 31 (lowest quality) -> NUTS!! still the same shitty quality!?!?! try : -maxrate 4000k -bufsize 1835k http://www.roxlu.com/2013/002/converting-video-audio-using-avconv examples with avconv to mix audio & video etc ***** 25Feb2014 15:25 getting audio with the film rerun 10 second text with audio stereo jack from line-out to mic on Lenovo, volumes at 1/2 no audio - although perhaps levels are too low? (I doubt it - I should hear something) so I need jackd? use Kubuntu launcher -> multimedia -> Qjackctl Connections : Audio (not MIDI or ALA) Tue Feb 25 15:32:04 2014: Connecting 'system:capture_1' to 'system:playback_1' try this -> The video is now corrupted!! (must have accidently copied over?) No - video is OK, but sound was too low, and presumably it was jackd that cut out the sound - presumably the capture above is wrong? rerun 10 second text with audio stereo jack from line-out to mic on Lenovo, volumes at 10/10 No - no sound, again I think the "recordmydesktop" command must set jackd, if I remember correctly? jack_lsp - lists ports for jackd !! (man jack_lsp) : system:capture_1 system:capture_2 system:playback_1 system:playback_2 system:playback_3 system:playback_4 system:playback_5 system:playback_6 I added "--use-jack system:capture_1 to the QNial line : cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --use-jack system:capture_1 -o "' dirBase fname '" & ' ; This seemed to screw up the video capture/play? Alternate : " --device hw:0 " (ALSA device default) to the QNial line : cmd1 := link 'recordmydesktop -x ' x ' -y ' y ' --width ' width ' --height ' height ' --device hw:0 -o "' dirBase fname '" & ' ; THIS WORKED!!! ***** 25Feb2014 14:00 computer Lenovo audio not working now !!! I forget what I did yesterday, but there is now no audio!?!?!? Kubuntu launcher -> Multimedia -> QjackCtrl http://qjackctl.sourceforge.net/ gives details about program can't find it's directories!?!? - OK, program path is /usr/bin/qjackctl dolphin search qjackctrl from root / NO items found??!! but the program runs! Oops - no "r" in qjackctl ... Muon reinstall of qjackctl - but NOT same as shown on http://qjackctl.sourceforge.net/ ? most functionality missing in my version 0.3.8! (... but shown on website is 0.2.20) maybe uninstall then install? Settings from qjackctl I took from http://qjackctl.sourceforge.net/qjackctl-ss1.html qjackctl setup -> Options -> Activate Patchbay persistence : /home/rncbc/tmp/patchbay4.xml this directory / file don't exist on my system ? it was disabled... by the program when exiting setup After changes in setup, I closed, the restarted qjackctl Session -> status looks OK? Did I blow-up my internal audio card (line out to mic) ? http://askubuntu.com/questions/251643/sound-wont-play-in-kubuntu-12-04 john hill blog uses : $ lspci test $ speaker-test -> this gave the white noise sound in line out (to my Sony getto blaster), so that's OK $ I redirected stdout to files to capture the results in /home/bill/System_maintenance/jackd_audio/ /home/bill/System_maintenance/jackd_audio/ February 5th, 2013 #3 SeijiSensei, Join Date Nov 2008, Location Metro Boston, Beans 7,732, Distro Kubuntu Development Release Re: Can't play sound in Kubuntu 12.04 Sometimes the playback device is muted by default. (I never understand why that would be, but it does seem to happen sometimes on Kubuntu.) To fix this problem, you need to run "sudo apt-get install pavucontrol" then run the pavucontrol program from a terminal or by pressing Alt-F2 and typing "pavucontrol" in the box that appears. Look through the tabs and see if either the input or output device is muted. You can tell by whether the little mute icon appears depressed or not. Hope that helps. So from a terminal I ran pavucontrol : As per ?? in the above blog, "... That worked! I went to the "playback" tab, and changed the ALSA plug setting from Built-in Audio Analog Stereo to SB Audigy Analog Stereo. Thanks! " ... only I switched from HDMI to "Built-in Analog Steroe" for Playback Ah Hah! This worked! .... I copied the above to : /home/bill/System_maintenance/jackd_audio/0_Howell notes and problems with audio.txt Now - back to the "Nazis saved Norweigians" ttest video construction with recordmydesktop ... Alsa, PulseAudio - I didn't need to look into these. ***** 25Feb2014 sending keystrokes to a window http://ubuntuforums.org/showthread.php?t=1685370 February 14th, 2011 #4 Krytarik's Avatar Join Date Nov 2010 Location Berlin, Germany Beans 4,527 Distro Xubuntu 12.04 Precise Pangolin Re: How to send keyboard input to a window I suppose you don't need the if/then conditions at all, I just had it in there because I switched between plain MPlayer and SMPlayer that time, I just now removed it as well, it's faster without the xwininfo query. This should be sufficient for you: Code: #! /bin/bash function Move { wmctrl -a PCSX; xdotool key "$1"; sleep 0.05; } OK - I used man xdotools to get window controls right to close the recording, must ACTIVATE qnial window first, then send ctrl+c both with xdotool ***** 24Feb2014 won't close windows, hangs, crashes when Ctrl-C invoked Things I did : 1. provide 3 seconds for "recordMyDesktop" to be ready - but still the video window wasn't ID's!?!? (I put it to 6 s!!!) 2. "media_kill" now uses "host (link 'xdotool windowkill ' winID) ; " which is specific to a window! but put back "host 'sleep 1s' ; " just in case? 3. Increased delays (again!) : pgm_delays := 3 2 reshape 'eog' 3 'totem' 3 'audacious' 3 ************************************* 29Feb2012 Convert ogv to avi http://ubuntuforums.org/showthread.php?t=806125 mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o "$2" see script /home/bill/bin/convert_ogv_2_avi.sh enddoc