Line 4: Line 4:
 
{{#ev:youtube|Bz5LcW0ZKPE|left}}
 
{{#ev:youtube|Bz5LcW0ZKPE|left}}
  
<nowiki>Videoediting with Subtitles and How it works:
+
=Videoediting with Subtitles and how it works:=
  
Download video from Youtube and the subtitles as a srt-file for same video (user for ex. loader.to)
+
- Download video from Youtube and the subtitles as a srt-file for same video (user for ex. loader.to)
Create file in ShotCut (edit one cut, save and close)
+
- Create file in ShotCut (edit one cut, save and close)
Use .srt file of subtiles with 'findword' python script to generate a .xml file with information on timecodes
+
- Use .srt file of subtiles with 'findword' python script to generate a .xml file with information on timecodes
Open powershell on windows  
+
- Open powershell on windows  
use command python find_word.py [-h] [-i INPUTFILE] [-o OUTPUTFILE] [-w WORD] [-c] [-v] e.g. python3 find_word.py -i “galilleo.srt” -o “galilleo.xml” -w versinken -c -v
+
- use command python find_word.py [-h] [-i INPUTFILE] [-o OUTPUTFILE] [-w WORD] [-c] [-v] e.g. python3
Insert generated .xml into the full code of the ShotCut file by opening the file via Visual Studio Code
+
- find_word.py -i “galilleo.srt” -o “galilleo.xml” -w versinken -c -v
Insert xml-file from the powershell; under playlist id=playlist0 replace entry producer="chain1"
+
- Insert generated .xml into the full code of the ShotCut file by opening the file via Visual Studio Code
Open ShotCut in program to see edited video</nowiki><nowiki><nowiki>Insert non-formatted text here</nowiki><nowiki>Insert non-formatted text here</nowiki></nowiki>
+
- Insert xml-file from the powershell; under playlist id=playlist0 replace entry producer="chain1"
 +
- Open ShotCut in program to see edited video
  
 
== Listen through the tube: ==
 
== Listen through the tube: ==

Revision as of 10:12, 24 February 2022

About ships that sink and airplanes that disappear:

Videoediting with Subtitles and how it works:

- Download video from Youtube and the subtitles as a srt-file for same video (user for ex. loader.to) - Create file in ShotCut (edit one cut, save and close) - Use .srt file of subtiles with 'findword' python script to generate a .xml file with information on timecodes - Open powershell on windows - use command python find_word.py [-h] [-i INPUTFILE] [-o OUTPUTFILE] [-w WORD] [-c] [-v] e.g. python3 - find_word.py -i “galilleo.srt” -o “galilleo.xml” -w versinken -c -v - Insert generated .xml into the full code of the ShotCut file by opening the file via Visual Studio Code - Insert xml-file from the powershell; under playlist id=playlist0 replace entry producer="chain1" - Open ShotCut in program to see edited video

Listen through the tube:

The thing that make me happy: