LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2009, 02:57 PM   #1
Accinson
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 6
Problem with recordmydesktop


Hi everybody,
i am pretty new to programming in linux,and i'm having a problem which is driving me crazy

I am writing an application which uses recordmydesktop to capture the screen.That program outputs a file encoded in ogg-theora format,and offers two alternative ways of encoding:
1)on the fly, i.e. it encodes while it's capturing
2)after the capture

Now,i need to use the 2nd way,but here my problem rises:when i stop the recording (and the encoding starts) the pc hangs,until the encoding is finished: i can't even move the mouse pointer....
What is weird is that if i start a shell,while my program is active,and run recordmydesktop with the same parameters i use in my program,that hang doesn't occur...

Looking at the processes with top,i found out that when i run recordmydesktop from my program,it "inherits" the priority from my program (it has a -2 priority).Otherwise,when running from another shell,it has a lower priority,which seems to explain why the hang happens.
So i tried to launch recordmydesktop using something like:
Code:
system("nice 19 recordmydesktop &");
but nothing seems to change...

So i ask you:
1) Do you have any advice?
2) Can i explicitly start a process with a given priority? I ask this cause by using nice i can set the niceness (the NI column of the "top" command output),but not the priority (which is the PR column).

Thanks in advance!
 
Old 02-19-2009, 06:55 AM   #2
Accinson
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 6
Anyone?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recordMyDesktop - non-root user installation problem viettrung Linux - Newbie 6 08-05-2008 03:56 AM
LXer: Tutorial: Record Your Desktop With recordMyDesktop, Part 2 LXer Syndicated Linux News 0 06-12-2008 06:50 AM
LXer: Tutorial: Record Your Desktop With recordMyDesktop LXer Syndicated Linux News 0 06-05-2008 03:40 PM
Is there a as good as gtk-recordMyDesktop, that possibly records the sound only? frenchn00b Linux - General 0 05-28-2008 03:36 PM
Screencast Problems (RecordMyDesktop - Demorecorder) AGazzaz Linux - Software 2 10-21-2007 05:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration