5 Members
Expyriment - A Python library for cognitive and neuroscientific experiments | www.expyriment.org1 Servers

Load older messages

Timestamp Message
11 Sep 2018
12:19:02@freenode_gjcooper:matrix.org@freenode_gjcooper:matrix.org joined the room.
12:19:27@freenode_gjcooper:matrix.org@freenode_gjcooper:matrix.org left the room.
19 Sep 2018
08:38:24@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.org joined the room.
08:39:38@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgHello, i have a question about the expyriment library
08:40:58@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgis it possible to play two videos next to each other at the same time?
08:56:22@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgi already succeeded in showing two videos next to eachother, but since the resulution is high the second video is mostly offscreen. And it seems that the second video is constantly flickering
08:59:39@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.org unfortunatly the Video class has no scale or resize method to see both video's on one screen. I was thinking to use two Rectangle's and then some how play one video in each Rectangle, but i can not find in the docs if/how this can be done.
09:34:51@fladd:matrix.orgFlorianhi Lynn_
09:35:21@fladd:matrix.orgFlorianExpyriment does not allow for scaling the video. You could use moviepy or some external programm e to do that beforehand.
09:36:47@fladd:matrix.orgFlorianConcerning the simultaneous presentation of two videos, while it is possible, it will potentially (or most probably actually) lead to issues with timing accuracies. One approach could be to grab the current frame of each of the videos and then plot them onto a canvas, which you then consequenlty present. This, however, takes time, and you will most likely drop frames.
09:37:15@fladd:matrix.orgFlorianAgain, the most easy solution here might be to just create a video with an external programme, that shows the two videos next to each other.
09:39:37@fladd:matrix.orgFlorian Instead of presenting both on a canvas, btw, you could also present the frame from the first video with present(update=False) and the second one with present(clear=False). However, if you have a double buffer, you would need to do this twice of course.
09:40:34@fladd:matrix.orgFlorianIf timing is absolutely crucial for your design, and if creating a single video beforehand is not an option, then the only solution I see is to have all of your video frames prepared as single images (and hence Expyriment Picture stimuli), which you can then present in any way you want, and be in control of your timing. This, however, will use a lot of memory (when preloading all those stimuli), or requires you to cleverly preload only the necessary parts somewhere in your design, where there is space to do that.
09:40:42@fladd:matrix.orgFlorianI hope this helped
09:50:48@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgOkay, I will see what I can do. Thank you for your response!
09:51:12@fladd:matrix.orgFloriansure, always glad to help. good luck
11:21:26@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.org left the room.
12:27:25@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.org joined the room.
12:30:14@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgI tried with `present(update=False)` and `present(clear=False)` but the `present()` method of the `Video` class does not allow arguments, or do you mean that i use an other class?
12:35:59@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgi also tried to use `Canvas` but i did not succeed in showing a video on it. `my_canvas.plot(my_video)` gives an error of `Video` not having a `_get_surface()` method.
12:38:35@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgI also tried `my_video.preload() my_canvas.set_surface(my_video) my_canvas.present()` but the screen stays blank, no error though.
12:51:10@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.orgI think I will go with making composed videos for every combination of videos then
16:47:01@freenode_Lynn_:matrix.org@freenode_Lynn_:matrix.org left the room.
4 Oct 2018
10:40:53@lindemann09:matrix.orgOliver joined the room.
10 Oct 2018
02:10:44@freenode_ChanServ:matrix.orgChanServ joined the room.
12 Oct 2018
18:03:17@appservice-irc:matrix.org@appservice-irc:matrix.orgchanged room power levels.
25 Oct 2018
15:26:44@malte_:matrix.org@malte_:matrix.org joined the room.
15:29:22@malte_:matrix.org@malte_:matrix.org left the room.
15:30:04@malte_:matrix.org@malte_:matrix.org joined the room.
29 Oct 2018
21:27:36@fladd:matrix.orgFlorian changed their profile picture.

Show newer messages

Back to Room List