VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. 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
    Image
    [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
    Image Attached Files
    Last edited by rrats; 27th Jul 2022 at 12:54.
    Quote Quote  
  2. 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
    Quote Quote  
  3. And the point of this double post is...................?
    Quote Quote  
  4. Because it was obsolete in many terms.
    Quote Quote  
  5. 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
    Quote Quote  
  6. Originally Posted by s-mp View Post
    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
    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"
    Quote Quote  
  7. 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 channel
    discord=notaghost9997
    Quote Quote  
  8. Thank you for these links and info. Will check them out
    Quote Quote  
  9. Originally Posted by codehound View Post
    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
    Thread, not yt-dlp
    Quote Quote  
  10. Originally Posted by ElCap View Post
    Originally Posted by s-mp View Post
    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
    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"
    it does work, and it outputs the exact thing put into it, now how do i automate it
    Quote Quote  
  11. Didn't even have to modify it. It works with FFmpeg.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!