29 april 2023

12 april 2023

3 april 2023

Creating subtitles from a movie using openAI whisper application

Install openai whisper on macos using homebrew (more info at https://brew.sh/ ) :

>brew install openai-whisper

#create subtitle from a .mp4 movie and save the result in a .srt file e.g movie.mp4

> whisper -f srt "movie.mp4"

#whisper -h for more command line options
#Rename .srt to same filename as the .mp4 file e.g movie.mp4 and movie.srt


Open movie.mp4 in e.g VLC.app (videolan app) and select Subtitles->Subtitles Track menu

To burn in the subtitle in the movie use handbrake.app

Open movie.mp4 in handbrake.app

Click in Subtitles button

Click in Tracks popup menu and select Add External Subtitles Track…

Select the movie.srt file

Click on Burned In button and select Language that movie.srt file contains e.g English

Click Start to encode and burn in the text.

Regeringen miljardsatsar på digitalisering – "Sverige har halkat efter" - Computer Sweden

>
> https://computersweden.idg.se/2.2683/1.777946/regeringen-miljardsatsar-pa-digitalisering--borjar-se-andra-lander-springa-forbi