Convert a pptx file to a video.
***** Only for english input. But you can change some code for other input language ******
The audios are made from note of slides. If one slide have no note, the slide will play 2 seconds silently. It alse generate subtitle file. And you can change the english subtitle to another language using function in make_srt.py
Some settings isues: .ImageMagic may have some permission isue, google it. .The googletrans old version is not working, install the new one. ie. pip install googletrans==4.0.0-rc1
Usage:
- Make sure your pptx have note in the slides, the output audio is made from these notes. If a slide has no note, the slide will play 2 seconds in the output video
- Make video with "python cmd-pptx-to-video.py pptx_file_name output_video_mp4_name", the subtitle file will have the same name with ouput video.
- Play the output video with VLC player, and you can watch the video with subtitle
Usage : python cmd-trans-srt.py source_file.srt output_directory
By default input language is english, and the target languages is "zh,es,en,pt,ru,ja,de,ko,fr,tr,vi,th,id". You can use -tl to specify the target languages. The "auto" detection is no supported.