Changes

Jump to navigation Jump to search
261 bytes removed ,  13:57, 28 April 2025
Line 118: Line 118:  
For specific applications (e.g., PsychoPy), under "Graphics Performance Preference," set them to "High Performance" to ensure they use the dedicated GPU.
 
For specific applications (e.g., PsychoPy), under "Graphics Performance Preference," set them to "High Performance" to ensure they use the dedicated GPU.
 
==Playback==
 
==Playback==
 +
 
=== PsychoPy ===
 
=== PsychoPy ===
This is an example of a Python script that plays a .mp4 video file with high time accuracy. <syntaxhighlight lang="python" line> from psychopy import visual, core, prefs prefs.hardware['videoLib'] = ['avbin', 'ffpyplayer'] # Choose based on installed libraries
  −
   
#!/usr/bin/env python3.10
 
#!/usr/bin/env python3.10
 
# -*- coding: utf-8 -*-
 
# -*- coding: utf-8 -*-

Navigation menu