You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b52b520
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: projects/EasyVideoPlayer/EasyVideoPlayer.py
+21-15Lines changed: 21 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,42 +1,49 @@
1
-
importcv2## Used for the video.
1
+
importcv2
2
2
importos
3
3
frompathlibimportPath
4
-
importnumpyasnp
5
-
fromffpyplayer.playerimportMediaPlayer## Used for the audio.
4
+
fromffpyplayer.playerimportMediaPlayer
6
5
7
6
7
+
# User input for the name of the image file.
8
+
video_name=input("Name of the video file that you want to play: ")
8
9
9
-
video_name=input("Please enter the name of the video file that you want to play: ") ## User input for the name of the image file.
10
-
video_directory_guess=input("Please enter the directory that may contain the video: ")## User input for the path of the image file.
10
+
# User input for the path of the image file.
11
+
video_directory_guess=input("Directory that may contain the video: ")
11
12
12
-
## This function looks for and finds the desired file. You can specify a parent directory for the fundtion to look for, however if you have no idea where a file is; this functio will find it for you, just slower. If you have no idea where a file is, just type "/".
13
+
14
+
# This function finds your file. If you don't know the directory just type '/'
0 commit comments