Author Topic: [solved] Gtk-recordmydesktop audio & video sync problem.  (Read 2133 times)

Offline preecher

  • Jr. Member
  • **
  • Posts: 18
[solved] Gtk-recordmydesktop audio & video sync problem.
« on: July 27, 2011, 01:32:43 AM »
installed record my desktop from the synaptic package manager- the audio & video were badly out of sync with each other-
searched the forums- found a post that advised to place --v_bitrate 2000000 in the extra options area under advanced/misc---did that and that corrected the audio/video syncing---but on a 8 minute recording while it was doing the encoding before it allows you to save the file my laptop got hotter than it has ever gotten--even the keys were so warm i could feel the heat before i touched anything---
has something changed with record my desktop? ive never had the syncing problem before.

does anyone know of another work around to get the audio & video synced? i am afraid that this will eventually cause me some serious problems.

pclinuxos 2011.6kde


any help with this will be greatly appreciated



preecher
« Last Edit: July 30, 2011, 02:37:10 AM by preecher »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: record my desktop gtk
« Reply #1 on: July 27, 2011, 05:06:52 AM »
Hi Preecher.

It's a known and very common issue. I know that Rolf from meetthegimp.org had to move to a commercial software to record his podcast videos in sync... I never record anything with voice over. I am adding the music later when editing the video (if at all). Not sure how to help You but hold on - maybe someone will be able to sort You out.

Andy

Offline preecher

  • Jr. Member
  • **
  • Posts: 18
Re: record my desktop gtk
« Reply #2 on: July 27, 2011, 11:15:24 PM »
Andy- I believe you are right as I did install another distro today trying to figure out another issue and went ahead and did 3-4 screencasts while in the other distro & had the same problem.

i'm not very familiar with the forums as far as should i go ahead and just mark this issue solved? i know its not really solved but the more i look for solutions it looks like its just one of those things that is what it is.

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: record my desktop gtk
« Reply #3 on: July 28, 2011, 04:16:21 AM »
You can add [ANSWERED] instead as the issue is not solved but the question has been answered :). Click modify in Your first post in this thread and add this to the beginning of the topic subject line followed by space. You could also modify the topic itself to reflect more on the content of the topic itself.

Quote
[ANSWERED] Gtk-recordmydesktop audio & video sync problem.

or something similar would be more informative.

Hope this helps.

Regards.

Andy
« Last Edit: July 28, 2011, 04:19:16 AM by AndrzejL »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: [ANSWERED] Gtk-recordmydesktop audio & video sync problem.
« Reply #4 on: July 28, 2011, 07:31:26 PM »
Well done.

Andy

Offline Jaws

  • Sr. Member
  • ****
  • Posts: 445
Re: [ANSWERED] Gtk-recordmydesktop audio & video sync problem.
« Reply #5 on: July 29, 2011, 04:10:16 PM »
I built a new computer last year (Sept.) and since that time never reinstalled RMD. I saw your post, and since I never had problems before with out of sync audio and video, figured I test RMD for you.

I wrote this simple 2 part tutorial back in 2009 for Linux Graphics Users forum:
http://linuxgraphicsusers.com/forum/index.php?topic=626.0
which also has some extra info on mencoder and the equipment I used for RMD, if you’re interested. I use a terminal for RMD and it’s really very easy. I’m not a terminal guy by any means but I do go back to the DOS days. Even though I’m using a fairly recent build, I upgraded from a circa 2001 computer and RMD and mencoder worked fine but slow.

Be aware that you will need to install:
recordmydesktop - the plain jane version, not the gtk or qt versions.
mencoder - or if you have mplayer installed I believe mencoder gets installed too.
xwininfo - if you want to record a specific window and not the whole desktop.


The command I use to start a recording session is...

Code: [Select]
recordmydesktop -windowid $(xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ // ;s/\ .*//") -fps 15 -device hw:1,0
Where...

-windowid $(xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ // ;s/\ .*//")

is the window you what to record. If you what to record your whole desktop just drop this portion of the command.

-fps 15 = frames per second

-device hw:1,0 = microphone location, in my case a USB mic.

When first launching the command a cross-hair will appear and you use it to select the window you want to record. Clicking on a window will start a recording session.

Some handy key combos...

Ctrl + Alt + p = pause the screencast.
Ctrl + c = ends the session. There is a slight pause before the video starts encoding. Tapping Ctrl + c a second time and you'll lose whatever is left that wasn't encoded before it finished.

The default output is an out.ogv file sitting in your /home. You can watch what you recorded by clicking on the file. Kaffeine plays them fine. For some reason VLC doesn't play the sound on my system. Also the .ogv file sound volume is very, very low, which we'll fix with mencoder.
___________________________________________________________________


Part two: the mencoder command.

Code: [Select]
mencoder  -ovc lavc -ofps 30 -oac mp3lame -af volnorm=1:0.5 out.ogv -o output.avi
Where...

out.ogv --- input file

-af volnorm=1:0.5 --- increases voice volume in playback.

-o output.avi --- output file name.

-ofps 30 --- output at 30 fps

Some handy commands:

mencoder -ovc help

mencoder -oac help


And finally proof that it works properly. BTW, my preferred video player is smplayer.

http://dl.dropbox.com/u/21736880/output.avi

Hope this helps.

Ed

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: [ANSWERED] Gtk-recordmydesktop audio & video sync problem.
« Reply #6 on: July 29, 2011, 07:38:10 PM »
Uhhh will check it tomorrow :)

Thanks

Andy

Offline preecher

  • Jr. Member
  • **
  • Posts: 18
Re: [ANSWERED] Gtk-recordmydesktop audio & video sync problem.
« Reply #7 on: July 30, 2011, 02:36:41 AM »
Jaws- i tried rmd thru terminal recording the whole screen----everything was perfect-)


thanks

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: [solved] Gtk-recordmydesktop audio & video sync problem.
« Reply #8 on: July 30, 2011, 06:58:02 AM »
Jaws- i tried rmd thru terminal recording the whole screen----everything was perfect-)


thanks

That's so cool :)! Thanks!

Andy

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10605
  • MLUs Forever!
Re: [solved] Gtk-recordmydesktop audio & video sync problem.
« Reply #9 on: July 30, 2011, 08:06:07 AM »
What were the command options you used?

Thanks
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline preecher

  • Jr. Member
  • **
  • Posts: 18
Re: [solved] Gtk-recordmydesktop audio & video sync problem.
« Reply #10 on: July 30, 2011, 08:47:27 AM »
Just19
the commands i used were about as simple as i could get/use

recordmydesktop hw:0,0     that is the command i used to start the capture of the entire screen with sound- i just used the built in mic on my laptop & it worked perfect

ctrl + c     is the command i used to stop the capture & the encoding took place immediately & file was placed in my home folder--one thing to note is that since i didnt give the file a name it just threw it in my home folder with the default name out.ogv- which is pretty much what it would do in gui mode if you dont specify a name & thats only because i didnt take the time to read the commands for naming  the file



preecher


just a note fwiw--just did with the command of
recordmydesktop
and sound worked  so maybe i dont have to add the hw:0,0 when using a built in mic
« Last Edit: July 30, 2011, 08:55:00 AM by preecher »

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10605
  • MLUs Forever!
Re: [solved] Gtk-recordmydesktop audio & video sync problem.
« Reply #11 on: July 30, 2011, 08:58:37 AM »
Thanks .....  just wanted to know if I was missing anything .....  the command I used .....


recordmydesktop --channels 1 --device hw:2,0

it uses my USB camera for the sound ....  so only records one channel as its mono and it is hw:2  device.

I *think* I continued to have sync problems until I limited the sound to one channel ......  no problems on my last recording ....  all rather strange really  ....
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT