Pscreenrecorder-1.4 - gtkdialog & yad gui programs to record your screen

Moderator: Forum moderators

Post Reply
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Pscreenrecorder-1.4 - gtkdialog & yad gui programs to record your screen

Post by plinej »

gtkdialog & yad gui to record your screen. This program requires xdotool, ffmpeg, gtkdialog and/or yad.

1.0
Added option to offset the audio when recording. It seems my screen recordings are around a half of second out of sync. I usually fix this afterwards but the offset option seems to work for me in the quick tests I've done. I use "0.5"...
Added support for pipewire since finding the device you want to record is different than pulse.

1.1
Added support to get screen size using wlr-randr when running wayland in case xrandr isn't installed.

1.2
minor updates & modified the yad gui a bit

1.3
improved some code, minor improvements

1.4
updates to the yad gui

pscreenrecorder-1.4.pet
(11.31 KiB) Downloaded 49 times
Last edited by plinej on Fri Sep 15, 2023 8:45 pm, edited 10 times in total.
You can download my packages at https://archive.org/download/plinej-packages
User avatar
greengeek
Posts: 1549
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 652 times
Been thanked: 228 times

Re: Pscreenrecorder-0.8 - gtkdialog & yad gui programs to record your screen

Post by greengeek »

Very good thanks plinej!

I tested it on my daily driver which is an old but reliable Slacko 5.6 derivative and it works just fine. (Only managed to test the video recording option so far as my machine has no audio loopback function so I will test again later with audio loopback software set up).

Up till now i have had to use SimpleScreenRecorder which is much bigger, so I am very happy to have this utility available.
cheers!
User avatar
greengeek
Posts: 1549
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 652 times
Been thanked: 228 times

Re: Pscreenrecorder-0.8 - gtkdialog & yad gui programs to record your screen

Post by greengeek »

Hi plinej - i am trying to record a portion of my screen that is 800x400 but the output always seems to be 640x480 resolution.

Am i using this wrong? Is the "window size" the actual measurement of the part of the screen to be recorded - and should i be able to type any value that i like in there or there specific values that are accepted?

I have also tried selecting a specific window but still the recording is 640x480 (unless i select full screen which is 1280x800 and does work).

(Using pscreenrecorder gtk version on a Slacko 5.6 derivative)

cheers!

EDIT: i had a look at the syntax in /tmp/root-pscreenrecorder/pscreen_record and it looks to me as if it is missing a -video_size parameter and maybe this script needs the addition of something like:

-video_size 480x320
or similar...
(taking the resolution parameters from the "window size" field)
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-0.8 - gtkdialog & yad gui programs to record your screen

Post by plinej »

If you select the window to record it will record that specific window as long as you don't move the application you are trying to record. Otherwise it is just looking for a screen size to record. If I put 1280x600 in the window, the following command gets executed...

ffmpeg -y -video_size 1280x600 -framerate 30 -f x11grab -draw_mouse 0 -i :0.0 -f pulse -i 0 -acodec libmp3lame -b:a 320k -vsync 2 -ar 44100 -channel_layout 'stereo' -sample_fmt s16p -c:v libx264 -crf 29 -preset ultrafast -threads 8 "pscreenrecorder-2020-07-31-1596225412".mkv
You can download my packages at https://archive.org/download/plinej-packages
User avatar
greengeek
Posts: 1549
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 652 times
Been thanked: 228 times

Re: Pscreenrecorder-0.8 - gtkdialog & yad gui programs to record your screen

Post by greengeek »

Thanks for the reply - i think my problem is occurring when i try to select both an x,y value and a window_size.

Everything works great if I specify a window_size on it's own. and let pscreenrecorder default to the 0,0 home position.

(This is gtk gui on Slacko 5.6 derivative on 12 year old laptop)

Unfortunately i can't just select a window to record as the window is much bigger than the video component i want to record. If i record the whole window the filesizes will be much bigger - hence the desire to specify both window_size and x,y if that is possible.
Last edited by greengeek on Sat Aug 01, 2020 2:47 am, edited 1 time in total.
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-0.8 - gtkdialog & yad gui programs to record your screen

Post by plinej »

I will look into that this weekend.
You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-0.8a - gtkdialog & yad gui programs to record your screen

Post by plinej »

Alright, should work in 0.8a posted above...
You can download my packages at https://archive.org/download/plinej-packages
User avatar
greengeek
Posts: 1549
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 652 times
Been thanked: 228 times

Re: Pscreenrecorder-0.8a - gtkdialog & yad gui programs to record your screen

Post by greengeek »

Brilliant !!
Thank you very much - that works perfectly now !

I hope you don't mind if i post here a version of the 0.8a pet that is gz compressed rather than xz. (My Slacko5.6 based pup can't unpack xz pets so i have to convert to gz). Let me know if you would prefer me to remove this pet.

Cheers!
Attachments
pscreenrecorder-0.8a_gz_slacko56_gg-0.0.pet
(11.07 KiB) Downloaded 73 times
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-0.8a - gtkdialog & yad gui programs to record your screen

Post by plinej »

That's fine with me.
You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-0.9 - gtkdialog & yad gui programs to record your screen

Post by plinej »

updated to 0.9

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-1.0 - gtkdialog & yad gui programs to record your screen

Post by plinej »

updated to 1.0

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-1.1 - gtkdialog & yad gui programs to record your screen

Post by plinej »

updated to 1.1

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-1.2 - gtkdialog & yad gui programs to record your screen

Post by plinej »

updated to 1.2

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-1.3 - gtkdialog & yad gui programs to record your screen

Post by plinej »

updated to 1.3

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 246
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 106 times

Re: Pscreenrecorder-1.4 - gtkdialog & yad gui programs to record your screen

Post by plinej »

updated to 1.4

You can download my packages at https://archive.org/download/plinej-packages
Post Reply

Return to “Multimedia”