Skip to content

SionLing/pptx-to-video

Repository files navigation

pptx-to-video

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:

  1. 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
  2. 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.
  3. Play the output video with VLC player, and you can watch the video with subtitle

translate srt

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages