TomWhitwell / SlowMovie

MIT License
351 stars 69 forks source link

Using the -f --file command #146

Open simonjowett opened 1 year ago

simonjowett commented 1 year ago

Hi, Firstly thanks for this Github, I'm really enjoying the results of your hard work. I just had one (for me) tricky issue. However, I have managed to work it out so take the below as a comment and something that might help other users.

I have a few .mp4 files in the Videos directory and they work if I specify the FILE full (or partial) path in the command, but fails to find the file if I only specify the FILE name.

pi@veryslowmovie:~/SlowMovie $ python3 slowmovie.py --file '/home/pi/SlowMovie/Videos/Citizen Kane.mp4'
INFO:slowmovie:Update interval: 120
INFO:slowmovie:Playing 'Citizen Kane.mp4'
INFO:slowmovie:Video info: 171686 frames, 23.979fps, duration: 01:59:19
pi@veryslowmovie:~/SlowMovie $ python3 slowmovie.py --file 'Citizen Kane.mp4'
ERROR:slowmovie:argument -f/--file: File 'Citizen Kane.mp4' does not exist

The instructions in the README seem to suggest just putting the filename will play, perhaps a line explaining the path is required (or an example) might help less experienced Linux users like myself!

missionfloyd commented 1 year ago

pi@veryslowmovie:~/SlowMovie $ python3 slowmovie.py --file 'Citizen Kane.mp4'

You're using a relative path, so it's looking for ~/SlowMovie/Citizen Kane.mp4, which doesn't exist. It's in Videos, so that should be Videos/Citizen Kane.mp4.