Created
September 29, 2023 11:20
-
-
Save ostermine/2ee2b499f57f5949961ab0fdcb95dc8e to your computer and use it in GitHub Desktop.
play_video_python_fullscreen.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import moviepy.editor | |
file = r"\\share\video.mp4" | |
screen_info = pygame.display.Info() | |
pygame.init() | |
video = moviepy.editor.VideoFileClip(file, target_resolution=(screen_info.current_h,screen_info.current_w),fps_source=25) | |
video.preview() | |
video | |
pygame.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment