I've made this thread a few months ago. Curiously, I've decided to look at yt-dlp's source code, and it seems that workflow for extracting video material out of every website supported is written as a python script.
I have knowledge of programming languages such as C and C++, but not python, however it's not that hard to understand certain pieces of code by searching the internet so i might be able to modify one of the scripts in order to use it with the service I want to use. Now does anyone in here know a service that works the similar way.
Basically it divides every stream into 4 second 1,45/2 MB clips in h264 format. All of these could be found on the network page. Fragments
[Attachment 66135 - Click to enlarge]
I've also uploaded a sample. It doesn't have a file extension but it works with mp4
also here are some link samples:
https://sbb-bg-pd-s3-2.ug-be.cdn.united.cloud/stream/fragment/ts/live/?i=CEH3Ip_P65ILJ...21&player=m3u8
https://sbb-bg-pd-s3-1.ug-be.cdn.united.cloud/stream/fragment/ts/live/?i=FikQwYiIOw0-o...11&player=m3u8
+ Reply to Thread
Results 1 to 11 of 11
-
Last edited by rrats; 27th Jul 2022 at 12:54.
-
mediainfo:
Code:General ID : 1 (0x1) Complete name : C:\Users\######\Downloads\unknownFileName\unknownFileName.mp4 Format : MPEG-TS File size : 2.06 MiB Duration : 4 s 760 ms Overall bit rate mode : Variable Overall bit rate : 3 604 kb/s FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty Video ID : 256 (0x100) Menu ID : 100 (0x64) Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L4.1 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 4 frames Codec ID : 27 Duration : 4 s 800 ms Width : 960 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Audio ID : 257 (0x101) Menu ID : 100 (0x64) Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Format version : Version 4 Muxing mode : ADTS Codec ID : 15-2 Duration : 4 s 480 ms Bit rate mode : Variable Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -327 ms Language : English Menu ID : 4096 (0x1000) Menu ID : 100 (0x64) Duration : 4 s 760 ms List : 256 (0x100) (AVC) / 257 (0x101) (AAC, English) Language : / English Service name : TVService Service provider : OIV Service type : digital television
-
yt-dlp is obsolete ? I dont think pukkandan would agree.
Perhaps you should offer your services to become part of the development team.
https://discord.gg/Y5SBdjjS -
you should do some reading up on hls or on adapative bitrate streaming.
i assume you are trying to download all the fragment files and join them as one, right?
the file that you should be looking at is the manifest file, normally with the extension m3u8.
it is in your screenshot "/stream/playlist/hls/?....."
this file contains the information about all the fragmented files (or if its live streaming it will contain the information on the next couple of fragments)
the fragmented file links have an expiry, so get a fresh link to the playlist/manifest file and put it into yt-dlp or any m3u8 downloader
ie.Code:yt-dlp "url"
-
m3u8 is explained here
https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/downloader/hls.py
So is mpd dash
https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/downloader/dash.py
You might want to print(info_dict) for more details about parsing parameters
Better if you ask these questions on the yt-dlp discord server. You'll get more help there than in here. Youtube-dl also has irc channeldiscord=notaghost9997 -
Similar Threads
-
Modifying .mpd query parameters
By joasis in forum Video Streaming DownloadingReplies: 0Last Post: 28th May 2022, 12:50 -
I need help in changing and modifying font in Handbrake
By Lsh72 in forum Video ConversionReplies: 2Last Post: 22nd Sep 2021, 07:13 -
help modifying this extension
By filipino in forum Video Streaming DownloadingReplies: 0Last Post: 21st Sep 2021, 17:24 -
Modifying VCR tape motors with variable speed?
By BenKlesc in forum Capturing and VCRReplies: 20Last Post: 24th May 2021, 13:27 -
Modifying AviSynth/FFMPEG Workflow for DV Files
By Christina in forum EditingReplies: 4Last Post: 1st Mar 2021, 17:00