ThioJoe / Auto-Synced-Translated-Dubs

Automatically translates the text of a video based on a subtitle file, and also uses AI voice to dub the video, and synced using the subtitle's timings
GNU General Public License v3.0
1.53k stars 152 forks source link

Subprocess.CalledProcessError #32

Open AdnielSsj opened 1 year ago

AdnielSsj commented 1 year ago

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 commented 1 year ago

Hmm do you have ffmpeg installed?

AdnielSsj commented 1 year ago

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