autosub icon indicating copy to clipboard operation
autosub copied to clipboard

Maybe this is a good solution for the problem about producing empty .srt file (0 kb)

Open meisa233 opened this issue 5 years ago • 5 comments

Having gotten help from this project, I feel very excited. I know that the problem may troubled many people.

After I came across thi problem, I try to use a audio software (Adobe Audition CC 2018) to convert the audio of my video to a mono file. However, a problem developed. I found the mono file is almost a "No Sound File". You can look at my picture. theproblemaboutautosub

So I'm guessing if something like this happened during the conversion to mono( it doesn't have any thing), so that Google couldn't translate the text.( Maybe it's because the two channels of the sound are opposite) Consequently, I use another software (iZotope RX, you can use other software) to get one mono file and replaced the original sound of my video. Finally, autosub successful get the subtitle ( it is not a empty file) with the new video. It is amazing.. The above is my personal opinion, I hope to help everyone.

meisa233 avatar Sep 09 '18 17:09 meisa233

Thanks you helped me a lot, it was driving me crazy all this time to have a blank file lol. I used ffmpeg to extract the sound and converting it to mono, then doing the autosub from there. It works :) Many thanks also to A. Germanidis for this great script !

ikki75 avatar Jan 08 '19 19:01 ikki75

Thank you very much. Could you tell me how to get one mono file by iZotope RX and and use it for autosub?

ajxz avatar Feb 16 '19 03:02 ajxz

Thank you very much. Could you tell me how to get one mono file by iZotope RX and and use it for autosub?

I recorded a video for you to help you to know about how to convert stereo file to mono file using iZotope RX7.( I remembered that iZotope RX4, RX5, ... have had this feature) https://www.youtube.com/watch?v=EKDi__KlEsE

I believe that so many tools can do it.

Maybe you want to know how to address this problem exactly. Here are the steps I summarized:

1.Get audio file from your video file. (There are many software have the ability to accomplish this task) such as

ffmpeg -i input_video.mp4 -vn -acodec mp3 output_audio.mp3

2.Convert stereo file extracted from video to mono file As you can see in my video, just do it from these simple steps.

3.Replace audio in video This is just a command I tried.

ffmpeg -i video.mp4 -i monoaudio.wav -strict -2 -c:v copy -map 0:v -map 1:a:0 new_video.mp4

The "new_video.mp4" is new video that have been replaced a mono audio file.

meisa233 avatar Feb 16 '19 16:02 meisa233

@meisa233 Thank you sir for such a clear explanation, it is so easy to follow. I solved the problem in this way .

ajxz avatar Feb 17 '19 09:02 ajxz

No need to use any third-party software externally. I add audio pre-processing function into the autosub. Now it can normalize the audio which means its volume will be up after this procedure. More info on my repo's readme.

BingLingGroup avatar Jul 30 '19 12:07 BingLingGroup