Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subprocess.CalledProcessError #32

Open
AdnielSsj opened this issue Jan 5, 2023 · 2 comments
Open

Subprocess.CalledProcessError #32

AdnielSsj opened this issue Jan 5, 2023 · 2 comments

Comments

@AdnielSsj
Copy link

AdnielSsj commented Jan 5, 2023

Good morning!

Sorry for the question that surely is simple.

I would like to know what is wrong here? I think I have a problem in "totalAudioLength = get_duration(originalVideoFile)"

So, I assume that I inserted the wrong path to the file.

I tried in these ways:
original_video_file_path = E:\VideosTranslation\video.mp4
srt_file_path = E:\VideosTranslation\subtitles.srt

original_video_file_path = "E:\VideosTranslation\video.mp4"
srt_file_path = "E:\VideosTranslation\subtitles.srt"

or even leaving it in the same file as main.py and putting simply :

original_video_file_path = video.mp4
srt_file_path = subtitles.srt

But I always have the same error. Is it a problem with some other configuration?

image
image
image

Just to mention that I don't know anything about programming or Github either. Possibly I am thinking that it is an "X" error and in reality it has nothing to do

@ThioJoe
Copy link
Owner

ThioJoe commented Jan 5, 2023

Hmm do you have ffmpeg installed?

@AdnielSsj
Copy link
Author

AdnielSsj commented Jan 5, 2023

Yeah!

At least that should be the case.

I put the "Ffmpeg" files in my "PATH" in my system variables.
image

image

And also, directly in the files where the "main.py" program is.

image

I also double clicked on "ffmpeg.exe" just in case.

That said, I still don't think it's a problem with ffmpeg directly. I have other programs that also use ffmpeg and they work fine.

Maybe the video files or the python code doesn't detect it? What other things should I confirm that I am possibly doing wrong?

I'm going to try reinstalling ffmpeg or try it on a different device too. Although I don't know if installing it on another friend's device can help me understand the problem of what is happening on my PC.

Edit : i tried to type "ffmpeg" on cmd and it gave me this :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants