12,297
edits
Line 7: | Line 7: | ||
# Create file in Aegisub ( simply with video is loaded into, save and close) | # Create file in Aegisub ( simply with video is loaded into, save and close) | ||
# Use .srt file of subtiles with 'findword' python script to generate a .xml file with information on timecodes of certain, selected word | # Use .srt file of subtiles with 'findword' python script to generate a .xml file with information on timecodes of certain, selected word | ||
## Open Mac terminal > change to 'findword' directory > command 'cd' and manually pull in find word folder into Terminal > ( easiest if both subtile file and video are in the 'findword' folder, otherwise full path must be given > use command | ## Open Mac terminal > change to 'findword' directory > command 'cd' and manually pull in find word folder into Terminal > ( easiest if both subtile file and video are in the 'findword' folder, otherwise full path must be given > use command <tt>python3 find_word.py [-h] [-i INPUTFILE] [-o OUTPUTFILE] [-w WORD] [-c] [-v]</tt> e.g. <tt>python3 find_word.py -i “Life.srt” -o “Life.xml” -w work -c -v</tt> | ||
# Insert generated .xml into full code of Aegisub file by opening the file via e.g. Visual Studio Code | # Insert generated .xml into full code of Aegisub file by opening the file via e.g. Visual Studio Code | ||
## Insert generated .xml; under playlist id=playlist0 | ## Insert generated .xml; under <tt>playlist id=playlist0</tt> replace entry <tt>producer="chain1"</tt> (*"chain1" needs to be adapted/named as such in the generated .xml file for successful insertion) | ||
# Open Aegisub in program to see edited video | # Open Aegisub in program to see edited video | ||