Closed Jokertion closed 4 years ago
The log indicates no issues.
The log indicates no issues.
The log ensure no problem, but process didn't exit, just stop there!!!
When I download the youtube url without embed, it's OK, exit normally.
You must provide clear evidence of that.
This is the code, you should run it, then you'll believe me.
url1 = 'https://www.youtube.com/embed/wtTk6KzmhDM?feature=oembed&hd=1'
url2 = 'https://www.youtube.com/embed/W-b2n5cUVYU?feature=oembed&hd=1'
url3 = 'https://www.youtube.com/embed/NjhSgxsOOlU?feature=oembed&hd=1'
url11 = 'https://www.youtube.com/watch?v=wtTk6KzmhDM'
url22 = 'https://www.youtube.com/watch?v=W-b2n5cUVYU'
url33 = 'https://www.youtube.com/watch?v=NjhSgxsOOlU'
import os
url = url1
cmd = f"""youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" --write-auto-sub --write-info-json --sub-lang en --convert-subs srt {url}"""
msg = f"cmd1: {cmd1}"
print(msg)
os.system(cmd)
No one cares about your code.
> py -3.7 .\youtube_dl\__main__.py -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" --write-auto-sub --write-info-json --sub-lang en --convert-subs srt "https://www.youtube.com/embed/wtTk6KzmhDM?feature=oembed&hd=1"
[youtube] wtTk6KzmhDM: Downloading webpage
[youtube] wtTk6KzmhDM: Looking for automatic captions
[youtube] wtTk6KzmhDM: Downloading MPD manifest
[info] Writing video subtitles to: Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.en.vtt
[info] Writing video description metadata as JSON to: Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.info.json
[dashsegments] Total fragments: 175
[download] Destination: Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.f137.mp4
[download] 100% of 283.86MiB in 03:05
[dashsegments] Total fragments: 187
[download] Destination: Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.f140.m4a
[download] 100% of 14.09MiB in 00:12
[ffmpeg] Merging formats into "Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.mp4"
Deleting original file Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.f137.mp4 (pass -k to keep)
Deleting original file Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.f140.m4a (pass -k to keep)
[ffmpeg] Converting subtitles
Deleting original file Q&A - Bioweapons... for Dummies Evaluating the Threat of Rogue Biohacking-wtTk6KzmhDM.en.vtt (pass -k to keep)
>echo %ERRORLEVEL%
0
that proves youtube-dl exits normally.
Checklist
Verbose log
Description
The url1 to url3 are youtube embedded links, which crawled from
Looking forward to your reply.