Skip to content

Commit

Permalink
making ffmp executable
Browse files Browse the repository at this point in the history
  • Loading branch information
smellslikeml committed Jan 11, 2024
1 parent 63b4fa4 commit 7284bd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ffmperative/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def download_ffmp():
for chunk in response.iter_content(chunk_size=8192):
f.write(chunk)
print("Download complete.")
else:
pass

# Check if the file is executable, and make it executable if it's not
if not os.access(ffmp_path, os.X_OK):
print("Making ffmp executable...")
os.chmod(ffmp_path, 0o755) # Sets the file to be readable and executable by everyone, and writable by the owner.
print("ffmp is now executable.")

def extract_and_encode_frame(video_path):
# Get the duration of the video
Expand Down

0 comments on commit 7284bd7

Please sign in to comment.