Filter
Exclude
Time range
-
Near
2\2 Guide to Getting Translated Subtitles in Italian from a Video Without Subtitles Step 1: Verify and Configure Python Open the "Command Prompt" and type python --version and press Enter. If Python is installed, you will see a version. If nothing happens or it says it can't find Python, then we need to install it: Go to python.org , download and install Python, selecting "Add Python to PATH" during installation. If Python is already installed but not in your PATH: find the folder where Python is installed (usually something like C:\Python3x where x is the version). Right-click on "This PC" or "Computer" and select "Properties". Go to "Advanced system settings". Click on "Environment Variables" (bottom right). In the "System Variables" section, find "Path" and click "Edit". Add Python folder path (e.g. C:\Python3x and C:\Python3x\Scripts) by clicking "New" and entering them. Then click "OK" on everything. Step 2: Install Git Go to git-scm.com , download and install Git for Windows, selecting "Use Git from the Windows Command Prompt". Step 3: Install FFmpeg Download FFmpeg from ffmpeg.org , extract the files to %SystemDrive%\ffmpeg, and add %SystemDrive%\ffmpeg\bin to your system PATH via "Properties" > "Advanced system settings" > "Environment variables". Step 4: Install Whisper In the Command Prompt, type pip install git github.com/openai/whisper.gi…… and press Enter. Step 5: Extract Audio from Video with Foobar2000 First of all, download and install Foobar2000 from the official website if you don't have it already. It's free and very easy to use. Open Foobar2000. Go to File > Open Audio File and select your video file (.mp4). Once opened, right-click the video file in the Foobar2000 playlist, select Convert > Quick Convert. In the dialog that appears, choose the output format as WAV or FLAC (WAV is uncompressed so better for quality). Choose the destination folder and file name (e.g. audio_extract.wav) and click Convert. Note: There are many other methods to extract audio, both through desktop software and online services. Foobar2000 is just one of them, chosen for its simplicity and free nature. Step 6: Generate English Subtitles In the same folder as audio_extract.wav, run: python -c "import whisper; model = whisper.load_model ('base'); result = model.transcribe ('audio_extract.wav'); with open ('subtitles_eng.srt', 'w', encoding='utf-8') as srt_file: for segment in result['segments' ]: srt_file.write (f\"{segment['id']}\n{segment['start']:02.0f }:{ segment['start'] % 60:06.3f } --> {segment['end']:02.0f }:{ segment['end'] % 60:06.3f}\n{segment['text']}\n\n\ ")" . Step 7: Translate Subtitles into Italian Go to syedgakbar.com , load subtitles_eng.srt, select English as source language and Italian as target, then download the translated file as subtitles_ita.srt. Step 8: Import and Sync Subtitles into DaVinci Resolve Open DaVinci Resolve, import video_original.mp4 into Media, add to timeline in Edit, create a subtitle track, import and drag subtitle_ita.srt into the track. Wait a few moments for syncing. Step 9: Fix Translation Errors Open subtitles_ita.srt with a text editor, correct the errors while maintaining the .srt structure, then save. This step can also be performed when the video is open in DaVinci Resolve and the subtitle has been imported into the timeline, using the program's editing tools. Step 10: Customize Subtitle Color in DaVinci Resolve In the Edit or Fairlight timeline, select the subtitle track, go to Workspace > Subtitles, change the color to red or yellow for better readability, and save your changes. Step 11: Embed Subtitles into Final Video In the Deliver tab, go to Render Settings, find Subtitle Settings and select Embed in Video. Proceed with the rendering settings and start the process. For videos on X the allowed video format is .mp4 with H264 codec and I suggest a quality limited to 30,000 kb/s This guide was created with the help of GROK, a curious AI built by xAI.

2
55
2\2 Guida per Ottenere Sottotitoli Tradotti in Italiano da un Video Senza Sottotitoli Step 1: Verificare e Configurare Python Apri il "Prompt dei comandi" e scrivi python --version e dai Invio. Se Python è installato, vedrai una versione. Se non succede niente o dice che non trova Python, allora dobbiamo installarlo: Vai su python.org, scarica e installa Python, selezionando "Add Python to PATH" durante l'installazione. Se Python è già installato ma non è nel PATH: trova la cartella dove Python è installato (di solito qualcosa come C:\Python3x dove x è la versione). Clicca con il tasto destro su "Questo PC" o "Computer" e seleziona "Proprietà". Vai su "Impostazioni di sistema avanzate". Clicca su "Variabili d'ambiente" (in basso a destra). Nella sezione "Variabili di sistema", trova "Path" e clicca "Modifica". Aggiungi il percorso della cartella di Python (ad esempio C:\Python3x e C:\Python3x\Scripts) cliccando "Nuovo" e inserendoli. Poi clicca "OK" su tutto. Step 2: Installare Git Vai su git-scm.com, scarica e installa Git per Windows, selezionando "Use Git from the Windows Command Prompt". Step 3: Installare FFmpeg Scarica FFmpeg da ffmpeg.org, estrai i file in %SystemDrive%\ffmpeg, e aggiungi %SystemDrive%\ffmpeg\bin al PATH del sistema tramite "Proprietà" > "Impostazioni di sistema avanzate" > "Variabili d'ambiente". Step 4: Installare Whisper Nel Prompt dei comandi, scrivi pip install git github.com/openai/whisper.gi… e premi Invio. Step 5: Estrarre l'Audio dal Video con Foobar2000 Prima di tutto, scarica e installa Foobar2000 dal sito ufficiale se non lo hai già. È gratuito e molto semplice da usare. Apri Foobar2000. Vai su File > Open Audio File e seleziona il tuo file video (.mp4). Una volta aperto, clicca con il tasto destro sul file video nella playlist di Foobar2000, seleziona Convert > Quick Convert. Nella finestra di dialogo che appare, scegli il formato di output come WAV o FLAC (WAV è senza compressione quindi migliore per la qualità). Scegli la cartella di destinazione e nome del file (ad esempio audio_estratto.wav) e clicca su Convert. Nota: Ci sono molti altri metodi per estrarre l'audio, sia tramite software desktop che servizi online. Foobar2000 è solo uno di questi, scelto per la sua semplicità e gratuità. Step 6: Generare Sottotitoli in Inglese Nella stessa cartella di audio_estratto.wav, esegui: python -c "import whisper; model = whisper.load_model('base'); result = model.transcribe('audio_estratto.wav'); with open('sottotitoli_eng.srt', 'w', encoding='utf-8') as srt_file: for segment in result['segments']: srt_file.write(f\"{segment['id']}\n{segment['start']:02.0f}:{segment['start'] % 60:06.3f} --> {segment['end']:02.0f}:{segment['end'] % 60:06.3f}\n{segment['text']}\n\n\")". Step 7: Tradurre i Sottotitoli in Italiano Vai su syedgakbar.com, carica sottotitoli_eng.srt, seleziona inglese come lingua di origine e italiano come destinazione, poi scarica il file tradotto come sottotitoli_ita.srt. Step 8: Importare e Sincronizzare i Sottotitoli in DaVinci Resolve Apri DaVinci Resolve, importa video_originale.mp4 in Media, aggiungi alla timeline in Modifica, crea una traccia sottotitoli, importa e trascina sottotitoli_ita.srt nella traccia. Aspetta qualche momento per la sincronizzazione. Step 9: Correggere Errori di Traduzione Apri sottotitoli_ita.srt con un editor di testo, correggi gli errori mantenendo la struttura .srt, poi salva. Questo passaggio potrà essere effettuato anche quando il video è aperto in DaVinci Resolve e il sottotitolo è stato importato nella timeline, operando con gli strumenti di editing del programma medesimo. Step 10: Personalizzare il Colore dei Sottotitoli in DaVinci Resolve Nella timeline di Edit o Fairlight, seleziona la traccia dei sottotitoli, vai su Workspace > Subtitles, cambia il colore in rosso o giallo per migliorare la leggibilità, e salva le modifiche. Step 11: Incorporare i Sottotitoli nel Video Finale Nella scheda Deliver, vai su Render Settings, trova Impostazioni Sottotitoli e seleziona Incorpora nel video. Procedi con le impostazioni di rendering e avvia il processo. Per i video su X il formato video consentito è .mp4 con codec H264 e suggerisco una qualità limitata a 30.000 kb/s Questa guida è stata creata con l'aiuto di GROK, un AI curioso costruito da xAI.

1
2
63
#gamedev #indiedev #indiegame #programmer #Software I made a doom clone/raycasting engine in python3x for research purposes. and with that I'm going on christmas break seeya around!
2
58
5 Nov 2024
Replying to @tekbog
just install multiple versions, depending on your distro executables will be named either python3X or python3.X where X is minor python 3 version
2
106
10いいね! | python3x: returnとyieldの違い bit.ly/3myKAHq

2
744
How to use .split() to extract HH,MM,SS separately from a 1970-1-1T00:00:00Z and get "00" instead of "0" stackoverflow.com/questions/… #datetime #python #split #python3x
2
48
why 'not(True) * True' does not give me an invalid syntax error, just like 'True * not(True)' stackoverflow.com/q/73313926… #python #coding #programming #developer #python3x #pythonprogramming #pythoncoding #learnpython
3
2
Use PyQt5 to display multiple images choosed from file but failed stackoverflow.com/questions/… #userinterface #pyqt5 #python #sys #python3x
1
2
How to convert Amazon Ion file to JSON format using Python? stackoverflow.com/questions/… #amazonion #python3x #python #json #amazons3
1
2
HOW TO PRINT COLUMN AND ROW NAME IF CELL IN TABLE IS GREATER THAN 1 USING PYTHON PANDAS stackoverflow.com/questions/… #python3x #pandas #dataframe #python
1
1
How to Build a Cloud Computing Storage Service? stackoverflow.com/questions/… #python3x #cloudstorage #cryptography
1
2
Drop the rows till we reach certain string as column name and append with another dataframe after doing the same in pandas stackoverflow.com/questions/… #python3x #pandas #dataframe #python
1
Program to read a file and output number of character, words & lines stackoverflow.com/questions/… #python3x #python
1
1
How to lump repeated values into the same interval? stackoverflow.com/questions/… #dataframe #pandasgroupby #python3x #pandas #python
1
Dictionary difference similar to set difference stackoverflow.com/questions/… #python3x #dictionary #python
1
How to count the number of commas within a string column (Python) stackoverflow.com/questions/… #python #dictionary #python3x #dataframe #pandas
1
2
Why pandas cannot read correctly a csv file? stackoverflow.com/questions/… #python #python3x #dataframe #pandas
1
Flatten Nested JSON to Create a DataFrame stackoverflow.com/questions/… #python #json #python3x #dataframe #pandas
1
Python - Importing Libraries Properly stackoverflow.com/questions/… #python #python3x