Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Downloading past first ad break on TBS/Adult Swim/other Turner sites #16083
Comments
|
It seems all the data is downloaded, but the duration is wrong. Workaround: run Edit: Okay, that doesn't work, but the data is definitely there. |
|
Try using this flag: --hls-prefer-native |
|
@HyperPlaneSubSpacePilot That log I provided is with It seems that no matter what I do, the wrong time is recorded. The full video will still be there, but nothing can play past the first ad break. |
|
Using 2018.04.25, I downloaded this TBS video using the |
|
I am running into this issue downloading from Cartoon Network, another Tuner site. It only downloads the first 11 min until the first commercial break, but the file is 2GB, which makes me think it's all there. I've tried --hls-prefer-natiive, --include-ads, --hls-use-mpegts, --keep-fragments Fyi, this is the video I'm trying to download: https://www.cartoonnetwork.com/video/ben-10/innervasion-episode.html I have this over and over in the event log: Anyone ever figure it out? |
|
If you're able to stick with
[edit:] additional details here |
|
Is there anything we can do to get this working? Or Provide the developers with anything? |
|
you can start by providing a publically accessible URL(does not require an account) that has this problem. |
|
This one doesn't require an account, but it is US only, so you may need a VPN. https://www.tbs.com/shows/the-misery-index/season-1/episode-1/that-milk-must-have-turned-by-now |
|
testing with HLS native downloader(with
|
|
and even with the latest version of FFmpeg(4.2.1) the downloaded file is fully playable. |
|
youtube-dl https://www.tbs.com/shows/the-misery-index/season-1/episode-1/that-milk-must-have-turned-by-now --hls-prefer-native -vvv I ran it on 4.2.1 with hls-prefer-native, and i got a 8m video from it. A few other people are having the same issue. Might just have to wait and see if anyone can figure it out. |
|
you didn't post the part when the download process is done(just to verify that the HLS Native Downloader is the one used to download the file).
other differences such as the OS(Linux vs Window) and Python version(3.8.0 vs 2.7.16) should not be relevant. |
|
I don't know if this helps, but I was able to get this working after reading these linked issues, including subtitles after running CCExtractor as well.
This downloads the file correctly. Then I ran CCExtractor (GUI, I'm lazy) to dump an SRT conversion of the embedded EIA_608 captions. With iTunes files, ffmpeg can read them because they're a separate stream, but Turner has them embedded in the video stream. Here's the input/output if you're interested?
The above step isn't really necessary, but I use mkv and want the thumbnail. The "cover.jpg" referenced below is just the iTunes Season 4 cover. So if you were so inclined you could drop
Not sure if This gives me an MKV with:
There isn't a way to have youtube-dl do the last two steps, is there? With or without the thumbs. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Attempting to download from TBS because their site is garbage and takes forever to get working. It used to work fine. Now I'm having trouble getting it to download past the first commercial. If I use ffmpeg, I'm guaranteed to only get up to the first commercial. Other issues suggest using
--hls-prefer-native, so I switched to that. I still end up with just the first segment (764.22MiB), but now I getERROR: av_interleaved_write_frame(): Invalid argumenton top of that. The only solution I can find for that issue is to use--prefer-ffmpeg(#15010, #9631), which won't work since I'll only get the first segment (up until the ads).Someone else seems to be encountering the same issue: #15395 (comment) I get a very similar (enormous) log if I use ffmpeg. For
seg-0URLs, it works fine. Forseg-1and beyond:The end of the ffmpeg log, in case it's of any use:
I tried
--include-ads, as well; no luck.The URL I provided as an example doesn't require MSO auth. For URLs in the same series that require MSO auth, I'm encountering #16084 as well, which should be easier to fix.