segalion
December 12th, 2007, 10:39 AM
I´m searching a command to discover the process PID that is using the XV overlay.
Sometimes firefox or rythmbox are using the XV videorender (that it is known to be used only by one program at a time), and when I run my favorite videoplayer it isnt able to get the XV overlay. I would like a script (myplayer) to kill all process using XV before running the player.
I have this script in order to:
>disable compiz - for better videoplaying support (OSD, changing overlay monitor and resize while playing, etc.).
>kill process running XV ?( thats what I need to ensure XV for my player)
>run player "$*"
>and then enable compiz again at exiting...
Please help me, I cant find anything (xvattr?, xvinfo? or something similar).
Sometimes firefox or rythmbox are using the XV videorender (that it is known to be used only by one program at a time), and when I run my favorite videoplayer it isnt able to get the XV overlay. I would like a script (myplayer) to kill all process using XV before running the player.
I have this script in order to:
>disable compiz - for better videoplaying support (OSD, changing overlay monitor and resize while playing, etc.).
>kill process running XV ?( thats what I need to ensure XV for my player)
>run player "$*"
>and then enable compiz again at exiting...
Please help me, I cant find anything (xvattr?, xvinfo? or something similar).