Closed hEarthkore closed 1 month ago
Hey @hEarthkore, thanks for letting me know.
Seems i did not account for multiple lines in the subtitle file. thanks to you i was able to patch the script.
make sure to delete the old output folder before running the script again, also if you want to keep using 2 lines per subtitle instead of one long line use about 28 max characters.
Let me know how it goes.
Great! Thank you Gro-og! it works perfectly. One thing I was wondering, if the script can also implement the EOL (end of line) from the srt file. So the two lines from srt file will be respected in the title file as well. That would be awesome!
Great suggestion ! I have made it so that the number of lines in srt file is kept by default.
Perfect! Now it works like a charm!! I was just wondering (:D) if there is possibility to add to the script custom position of the titles, the height. But it's just curiosity, because as is it its very useful tool.
Thank you Gr-og for your work!! You brought another dimension to kdenlive!
Thank you for the kind words. I added vertical position support but i don't know if people would find this useful as most would probably just set the template to bottom and rarely change position between projects. Either way i hope this isn't too cluttered.
Hey Gro-og! Thanks for hearing out my cries :smiley: You are right! I did not realized, that the height is taken from the template! I just missed that part completely. Thank you for setting my mind back to track! You are maybe right, that it can clutter the whole experience of your script.
Thanks, for this great idea/scrip!!
Unfortunately I was not able to make kdenlive titles from kdenlive srt file. It makes into titles some srt title number, sometimes srt timing. What I did wrong?
Thank you!!
srt and title files are here (renamed to txt files): VF-test.kdenlive.srt.txt VF_titles.kdenlivetitle.txt
Here is the output of my terminal:
./kdensubs.sh Converting "VF-test.kdenlive.srt" ... Using "VF_titles.kdenlivetitle" as template
frame rate: 29.97
Change font color? (Empty: No / 1 Color: font color / 2 Colors: gradient) Color 1 (hex): #
Set max characters per line ? (Empty: None) max characters:
... date: invalid date ‘ery place ’ date: invalid date ‘For Forgiven’ date: invalid date ‘very hour;’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error ./kdensubs.sh: line 84: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘To all life ’ date: invalid date ‘ery place ’ date: invalid date ‘very hour;’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error ./kdensubs.sh: line 84: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘ery place ’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘For Forgiven’ date: invalid date ‘very hour;’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error ./kdensubs.sh: line 84: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘To all life ’ date: invalid date ‘ery place ’ date: invalid date ‘very hour;’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error ./kdensubs.sh: line 84: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘ery place ’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘For Forgiven’ date: invalid date ‘very hour;’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error ./kdensubs.sh: line 84: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected date: invalid date ‘To all life ’ date: invalid date ‘ery place ’ date: invalid date ‘very hour;’ (standard_in) 1: syntax error ./kdensubs.sh: line 83: [: : integer expression expected (standard_in) 1: syntax error ./kdensubs.sh: line 84: [: : integer expression expected (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error ./kdensubs.sh: line 90: [: : integer expression expected Titles in /home/morya/kdensubs/"VF-test.kdenlive_Titles" press Enter to exit