Skip to content

Instantly share code, notes, and snippets.

@ostermine
Created September 29, 2023 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ostermine/2ee2b499f57f5949961ab0fdcb95dc8e to your computer and use it in GitHub Desktop.
Save ostermine/2ee2b499f57f5949961ab0fdcb95dc8e to your computer and use it in GitHub Desktop.
play_video_python_fullscreen.py
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