bindestriche / srt_fix

yt-autosub-srt-fix a yt-dlp plugin to fix double lines of youtube subtitles converted to srt via ffmpeg
The Unlicense
22 stars 5 forks source link

Can you support the clip function of yt-dlp? #13

Open bk111 opened 3 months ago

bk111 commented 3 months ago

yt-dlp https://youtu.be/p2c6ioGbXCs --download-sections "1:26:46-1:43:56" -f 137+140 --merge-output-format mp4 yt-dlp -f 140 --download-sections "4:30-5:30" https://youtu.be/p2c6ioGbXCs yt-dlp -f 140 --download-sections "*00:04:30-00:05:10" https://youtu.be/p2c6ioGbXCs

the command above will only download the specific during of content. Can you add the "download-sections" to your code? like, yt-dlp --write-subs --sub-langs en --convert-subs=srt --restrict-filenames --no-check-certificates --use-postprocessor srt_fix https://www.youtube.com/watch?v=EJ-DLRP8JUA -f 140 --download-sections "*00:04:30-00:06:30"

thanks

bindestriche commented 3 months ago

If you can figure out how to get the argument parameters, I'll do it. filtering the srt for timecodes is simple enough

bk111 @.***> schrieb am Fr., 22. März 2024, 09:54:

yt-dlp https://youtu.be/p2c6ioGbXCs --download-sections "1:26:46-1:43:56" -f 137+140 --merge-output-format mp4 yt-dlp -f 140 --download-sections "4:30-5:30" https://youtu.be/p2c6ioGbXCs yt-dlp -f 140 --download-sections "*00:04:30-00:05:10" https://youtu.be/p2c6ioGbXCs

the command above will only download the specific during of content. Can you add the "download-sections" to your code? like, yt-dlp --write-subs --sub-langs en --convert-subs=srt --restrict-filenames --no-check-certificates --use-postprocessor srt_fix https://www.youtube.com/watch?v=EJ-DLRP8JUA -f 140 --download-sections "*00:04:30-00:06:30"

thanks

— Reply to this email directly, view it on GitHub https://github.com/bindestriche/srt_fix/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZWN6UF6L6BLNOF3EYKUSDYZPWU5AVCNFSM6AAAAABFC5UDKOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDEMBQGY4TQNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>