11 Sep 2018 |
| @freenode_gjcooper:matrix.org joined the room. | 12:19:02 |
| @freenode_gjcooper:matrix.org left the room. | 12:19:27 |
19 Sep 2018 |
| @freenode_Lynn_:matrix.org joined the room. | 08:38:24 |
@freenode_Lynn_:matrix.org | Hello, i have a question about the expyriment library | 08:39:38 |
@freenode_Lynn_:matrix.org | is it possible to play two videos next to each other at the same time? | 08:40:58 |
@freenode_Lynn_:matrix.org | i 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:56:22 |
@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. | 08:59:39 |
Florian Krause | hi Lynn_ | 09:34:51 |
Florian Krause | Expyriment does not allow for scaling the video. You could use moviepy or some external programm e to do that beforehand. | 09:35:21 |
Florian Krause | Concerning 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:36:47 |
Florian Krause | Again, 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:37:15 |
Florian Krause | 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:39:37 |
Florian Krause | If 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:34 |
Florian Krause | I hope this helped | 09:40:42 |
@freenode_Lynn_:matrix.org | Okay, I will see what I can do. Thank you for your response! | 09:50:48 |
Florian Krause | sure, always glad to help. good luck | 09:51:12 |
| @freenode_Lynn_:matrix.org left the room. | 11:21:26 |
| @freenode_Lynn_:matrix.org joined the room. | 12:27:25 |
@freenode_Lynn_:matrix.org | I 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:30:14 |
@freenode_Lynn_:matrix.org | i 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:35:59 |
@freenode_Lynn_:matrix.org | I also tried `my_video.preload() my_canvas.set_surface(my_video) my_canvas.present()` but the screen stays blank, no error though. | 12:38:35 |
@freenode_Lynn_:matrix.org | I think I will go with making composed videos for every combination of videos then | 12:51:10 |
| @freenode_Lynn_:matrix.org left the room. | 16:47:01 |
4 Oct 2018 |
| @lindemann09:matrix.org joined the room. | 10:40:53 |
10 Oct 2018 |
| @freenode_ChanServ:matrix.org joined the room. | 02:10:44 |
12 Oct 2018 |
| @appservice-irc:matrix.orgchanged room power levels. | 18:03:17 |
25 Oct 2018 |
| @malte_:matrix.org joined the room. | 15:26:44 |
| @malte_:matrix.org left the room. | 15:29:22 |
| @malte_:matrix.org joined the room. | 15:30:04 |
29 Oct 2018 |
| Florian Krause changed their profile picture. | 21:27:36 |