[Attachment 74137 - Click to enlarge]
[Attachment 74138 - Click to enlarge]
[Attachment 74139 - Click to enlarge]
[Attachment 74141 - Click to enlarge]
[Attachment 74142 - Click to enlarge]
[Attachment 74143 - Click to enlarge]
This is al all-in-one Channel 4 (All4) downloader. Much of the grunt work is from Diazole's code.
The decryptor is Pywidevine using an awd. I also choose to give shaka-packager to N_m3u8DL-RE as the method to decrypt and merge. See the script if you do not wish to use shaka.
As usual there are two files. chan4_loader.py and C4.py. C4.py will work on its own as a single episode downloader.
All4 are a real pain when it comes to curation of their output. Titles have no common standard. The first audio track is sometimes the commentary track - and there is no way of knowing which a the time of downloading. So two audio tracks are downloaded. You can choose in your player.
Programme file names: I assume your downloads are for personal use; they are named accordingly.
https://files.videohelp.com/u/301890/channel4.zip
+ Reply to Thread
Results 1 to 24 of 24
-
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
I like to download the audio described track but as you say you never know in which order they will be. Half way through a series, they change it.
First two episodes of Celebrity SAS, the default audio track is AD. This is one of the reasons I use mkv as it's easy to sort this out.
Thanks for the script, I'll give it a thump. -
Works great. I like the ability to download a specific episode by URL.
For some reason, it didn't download subs?
Code:"id='subtitles-0':for=all",
-
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
Nice work! That search function is a great addition.
A quick tip regarding the track selection, you can do it by specifying the id in N_m3u8DL-RE:
Code:# standard audio track -sa id="audio_eng=128000" # audio descriptive track -sa id="audio_eng_1=128000"
-
Thanks. I like how a user interface can grow over a few iteration into something useful. And this current iteration sort of works fairly intuitively. Escaping out of sections mainly works but room for improvement.
Re audio tracks. You should tell All4. Sometimes the audio-description track is labelled as the prime audio. Calling tracks by id does not work for all downloads on All4 unfortunately.Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
Really? I genuinely did not know that. I've must have had some serious luck so far
That makes things more difficult indeed. Having multiple tracks isn't a big deal anyway, but stuff like this just bugs me. It's almost as if they don't care about the hard work we go through to illegally download their content. -
-
Script works excelent!
But i cannot get 1080p video from this URL: https://www.channel4.com/programmes/best-of-the-word/on-demand/27631-001
The script appears to get żincorrect? MPD, that only has 768x576 max video resolution:
[Attachment 74262 - Click to enlarge]
In developer tools in Google Chrome i can see current MPD, different from what the script finds:
[Attachment 74263 - Click to enlarge]
And this MDP has 1440x1080 max video resolution:
[Attachment 74264 - Click to enlarge]
Its there a way to change MPD before download? -
I have two All4 scripts, one private and one in this release, and each use different end-points from which to get the mpd. Both script return the the same 768 x 576 offer. I noted in another forum that the script you have actually finds TWO 1080p offers from its mpd normally. One being at a bit rate of over 5000 kbps. So what if happening here, and why you see 1440, I have no idea.
So if you have an mpd offering better then, the only quick and easy way for this abnormal download would be to change your script temporarily, You could try changing the User Agent string at line 55 and 62 in the pre-formatted headers. If you can locate it in developer tools change it to what your browser uses.
Or if that fails - add the line a 322 or thereabouts
[Attachment 74267 - Click to enlarge] by addingCode:mpd = input("Enter your MPD ")
[edit] Just tried using a browser to see what its mpd offers and I get this:
[Attachment 74269 - Click to enlarge]
Still only 576.
If you like this style of script then see https://forum.videohelp.com/threads/411884-UK-Free-to-Air-Downloader for some more (and an updated C4.p (but still finds 576. )
Last edited by A_n_g_e_l_a; 9th Oct 2023 at 05:20.
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
I think its more complex than code difference. Why would my browser provide an mpd that doesn't have the stream? I am in the UK and don't see it. You appear to be in Croatia and do? Server differences? Who knows?
Unfortunately, I can only code to download what I can see.Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
the old diazole script has consistently given me 1080p versions of these old shows while the new script gives me 576p versions
maybe he found a different url while trawling with http toolkit or a similar sniffer? -
-
-
this should be it:
https://mega.nz/file/43ZQRapb#m9ALiFENkOgIrXn3v3jgP4ZN7gyQaydx_WyNOchwCNU -
Thanks ampersand,
Definitely with the previous version of the script I was able to obtain and download the 1080p version
I don't have enough knowledge to understand why one script gets an MPD and another a different MPD. But with this script I got the MPD shown in Developer Tools in Chrome:
[Attachment 74354 - Click to enlarge]
[Attachment 74355 - Click to enlarge] -
Isn't this series from the 1990s? Did they even have 1080p 30 years ago?
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
-
Channel 4 have several endpoints with different output. You get the high quality streams (1080p @ 5000 kb/s) by using the Android endpoint, and the normal 1080p is PC/web. Sometimes the android enpoint won't have the 1080p in any version while the web stream does. And it's not only old content either, several new American sitcoms have 576p max when using android version while offering 1080p in web. This is completely up to Channel4 and how they've decided to store everything.
The only way to get both versions is to either use something like Freevine that let's you choose endpoint in the settings, or have various versions of scripts lying around. -
That may have been the case but I am specifically NOT using an android endpoint and for most modern produced video from channel4 I get two offerings of 1080p. I am more than happy with that.
[Attachment 74365 - Click to enlarge]Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
Considering you're using Diazole's code, and judging by that uri, you are using the android version. If we look at the source xml:
Code:<videoProfile name="widevine-stream-4"><stream bitrate="0" filesize="9972"><uri>http://ak.dash01.stream.c4assets.com/wvmod-stream/CH4_33_05_42_73532008001001_003_HD.mpd?c3.ri=13502445647459337483</uri> <brand4oDAtomUrl>http://android-mod-dash01.channel4.com/pmlsd/grand-designs/4od.atom</brand4oDAtomUrl> <siteSectionId>android.channel4.com/4od</siteSectionId>
-
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
This is great. Thanks.
Last edited by IrishMarty; 31st Dec 2023 at 11:31.
Similar Threads
-
My5: paying a visit
By A_n_g_e_l_a in forum Video Streaming DownloadingReplies: 26Last Post: 14th Feb 2024, 17:57 -
Channel 5 help
By ac427 in forum Video Streaming DownloadingReplies: 2Last Post: 21st Sep 2022, 15:39 -
channel 5
By basedcel in forum Video Streaming DownloadingReplies: 15Last Post: 16th Sep 2022, 12:32 -
What other video related forums do you visit besides videohelp.com?
By johns0 in forum PollsReplies: 30Last Post: 26th Oct 2020, 23:22 -
Downloading From Channel 4 and Channel 5
By ChrisSherlock in forum Video Streaming DownloadingReplies: 15Last Post: 22nd Mar 2019, 08:36