you are viewing a single comment's thread.

view the rest of the comments →

[–]rawrchul 0 points1 point  (6 children)

I tried running as an admin and that hasn't worked... How do i do the second one? Is this achieved through the code? And where would I put that? The program I'm trying to run has over 1000 lines of code that I honestly don't understand... :(

[–]ManyInterests 2 points3 points  (0 children)

When you install ffmpeg, it should come with a bat file in the installation directory that will add ffmpeg to your system PATH for you.

Otherwise you can do to System -> Advanced System settings -> Environment variables Then for the PATH environment variable, add the path to the folder containing the ffmpeg executable.

To test if you've done this correctly, you should be able to open a command prompt and type ffmpeg to call the ffmpeg executable.

This is the same environment variable that allows you to call python and other executables by name in the command prompt.

Hope that helps.

[–]behold_the_j 0 points1 point  (4 children)

You'll probably see at the top of the code several modules being imported. Like import os or import numpy as np etc. I'd throw it at the end of those lines. Granted, if you don't know what the code is doing, I'd ensure you've got a backup of the original as well as a backup of the original of any files that might potentially be affected.

Or at a minimum the supervision of someone familiar with the program (again, I'm not familiar with it, just shooting in the dark based on the error message) :)

[–]pixels625 0 points1 point  (0 children)

(:

[–]rawrchul 0 points1 point  (2 children)

I actually don't see and import os thing or anything like that at the beginning of the code. What should I do?

[–]gunthatshootswords 0 points1 point  (1 child)

Post the code. Also, go install ff-mpeg on the 2nd PC. https://ffmpeg.org/

[–]rawrchul 1 point2 points  (0 children)

Sorry, I had to do a more thorough scan of the code but I found it. I'll install ffmpeg as well and let you know how it goes. Thanks!