12,297
edits
No edit summary |
(→Xinyue) |
||
Line 57: | Line 57: | ||
== Xinyue== | == Xinyue== | ||
=== My top three supercuts === | |||
* [https://www.bilibili.com/video/av41584737?from=search&seid=5457943024822514468 Tom and Jerry] | |||
* [https://www.bilibili.com/video/av48808524?from=search&seid=11240816333249503890 Trick] | |||
* [https://www.bilibili.com/video/av54908220/?spm_id_from=333.788.videocard.0 Symphony] | |||
=== My own supercut === | === My own supercut === | ||
[[File:see.mp4|Super Cut see U]] | [[File:see.mp4|Super Cut see U]] | ||
=== | === Auto_detecting_words_in_srt === | ||
[[File:guichu.txt]] | |||
Copy the txt file to a empty .py file :D (.py file can't be uploaded, I wonder why @_@) | |||
#library srt link: https://github.com/cdown/srt | |||
#pip install -U srt | |||
#copy paste srt file as in the code (focus on the format at head and tail) | |||
#it returns a sequence of subtitle classes object, contains index,time, content, etc. | |||
#using for loop searching desired word in every object.content. | |||
#it returns the time interval at the start and the end | |||
#use srt.timedelta_to_srt_timestamp convert the time to normal one |