ScreenCaptureStream and Resize

165 views
Skip to first unread message

vinnik.e...@gmail.com

unread,
May 17, 2018, 5:11:17 AM5/17/18
to Bonsai Users
Dear all, 
I am optimizing a screen capture to have a video of good quality, and it works great with Bonsai except the dimensions of my video file (1280x768 pixels) do not correspond to my screen's dimensions (1920x1080 pixels) which produces some distorsions in the video 

I've tried changing the Parameters in Resize but I get frames rolling one over another

I really don't mind having a  smaller resolution in the output video, but I can't quite figure out how to do it.. I would greatly appreciate any tips and tricks
thank you in advance!
Katya


30716339_1865226190162681_5699424535254663168_n_2_2_2.jpg
pipingFFMPEG_webinars_resize.bonsai
pipingFFMPEG_webinars_resize.bonsai.layout

Gonçalo Lopes

unread,
May 23, 2018, 7:34:26 PM5/23/18
to vinnik.e...@gmail.com, Bonsai Users
Hi Katya and welcome to the forums!

Looking into the workflow I can see that you need to change both the Resize parameters and the code inside the PythonTransform (double-click on the node). That code is the one actually calling FFmpeg and it specifies the video resolution. Both sets of numbers need to match for the compression to make sense.

Hope this helps!

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/36027f75-a18e-43c3-87cf-72f733f01266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ekaterina Vinnik

unread,
May 24, 2018, 4:47:45 AM5/24/18
to Gonçalo Lopes, Bonsai Users
Awesome, thank you!!!!

On Thu, 24 May 2018 at 00:34, Gonçalo Lopes <goncal...@gmail.com> wrote:
Hi Katya and welcome to the forums!

Looking into the workflow I can see that you need to change both the Resize parameters and the code inside the PythonTransform (double-click on the node). That code is the one actually calling FFmpeg and it specifies the video resolution. Both sets of numbers need to match for the compression to make sense.

Hope this helps!

On 17 May 2018 at 10:11, <vinnik.e...@gmail.com> wrote:
Dear all, 
I am optimizing a screen capture to have a video of good quality, and it works great with Bonsai except the dimensions of my video file (1280x768 pixels) do not correspond to my screen's dimensions (1920x1080 pixels) which produces some distorsions in the video 

I've tried changing the Parameters in Resize but I get frames rolling one over another

I really don't mind having a  smaller resolution in the output video, but I can't quite figure out how to do it.. I would greatly appreciate any tips and tricks
thank you in advance!
Katya


--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
--
________________________________

Ekaterina Vinnik, M.D., Ph.D.

Cognitive engineer 
@Human behavioral technologies
WhatsApp, phone: +351918951392

Tom Earnest

unread,
Nov 6, 2019, 1:39:37 PM11/6/19
to Bonsai Users
Quick question on this - which package is the ScreenCaptureStream part of?  I can't seem to find it and would like to use : )

Best, 
Tom

Gonçalo Lopes

unread,
Nov 6, 2019, 4:16:27 PM11/6/19
to Tom Earnest, Bonsai Users
Hi Tom,

That would be the Bonsai Video package.

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages