VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Im trying to download from this website that gives m4s segments but not a mpd file
    init_video and init_audio file is there but ffmepg doesnt capture it

    https://prnt.sc/WKCQlV9aeA4l

    Any help,THank you
    Quote Quote  
  2. Originally Posted by RKO4321 View Post
    Im trying to download from this website that gives m4s segments but not a mpd file
    init_video and init_audio file is there but ffmepg doesnt capture it

    https://prnt.sc/WKCQlV9aeA4l

    Any help,THank you
    URL?

    in F12 DevTools Network Search: m3u8

    You can download the m3u8 file using N_m3u8dl-re.
    Quote Quote  
  3. Originally Posted by sesamap159 View Post
    Originally Posted by RKO4321 View Post
    Im trying to download from this website that gives m4s segments but not a mpd file
    init_video and init_audio file is there but ffmepg doesnt capture it

    https://prnt.sc/WKCQlV9aeA4l

    Any help,THank you
    URL?

    in F12 DevTools Network Search: m3u8

    You can download the m3u8 file using N_m3u8dl-re.
    no m3u8, since the live stream is done,url doesnt work, dvtools under network only m4s segments are available seperate ,4s for video and ausio, plus init_video and init_audio, thats all
    Quote Quote  
  4. Originally Posted by RKO4321 View Post
    Originally Posted by sesamap159 View Post
    Originally Posted by RKO4321 View Post
    Im trying to download from this website that gives m4s segments but not a mpd file
    init_video and init_audio file is there but ffmepg doesnt capture it

    https://prnt.sc/WKCQlV9aeA4l

    Any help,THank you
    URL?

    in F12 DevTools Network Search: m3u8

    You can download the m3u8 file using N_m3u8dl-re.
    no m3u8, since the live stream is done,url doesnt work, dvtools under network only m4s segments are available seperate ,4s for video and ausio, plus init_video and init_audio, thats all
    Download video files in m4s format and audio files.
    Code:
    import os
    import requests
    from concurrent.futures import ThreadPoolExecutor
    
    BASE_VIDEO_URL = "https://example.com/video/"
    BASE_AUDIO_URL = "https://example.com/audio/"
    
    VIDEO_DIR = "video_segments"
    AUDIO_DIR = "audio_segments"
    
    os.makedirs(VIDEO_DIR, exist_ok=True)
    os.makedirs(AUDIO_DIR, exist_ok=True)
    
    headers = {
        "User-Agent": "Mozilla/5.0"
    }
    
    MAX_SEGMENTS = 1000
    
    
    def download_file(url, output_path):
        try:
            r = requests.get(url, headers=headers, timeout=15)
    
            if r.status_code == 200:
                with open(output_path, "wb") as f:
                    f.write(r.content)
    
                print(f"OK  {output_path}")
                return True
    
            else:
                print(f"404 {url}")
                return False
    
        except Exception as e:
            print(f"ERR {url} -> {e}")
            return False
    
    
    def download_video_segment(i):
        name = f"chunk_{i:05d}.m4s"
        url = BASE_VIDEO_URL + name
        path = os.path.join(VIDEO_DIR, name)
    
        return download_file(url, path)
    
    
    def download_audio_segment(i):
        name = f"chunk_{i:05d}.m4s"
        url = BASE_AUDIO_URL + name
        path = os.path.join(AUDIO_DIR, name)
    
        return download_file(url, path)
    
    
    # Télécharger init segments
    download_file(
        BASE_VIDEO_URL + "init_video.m4s",
        os.path.join(VIDEO_DIR, "init_video.m4s")
    )
    
    download_file(
        BASE_AUDIO_URL + "init_audio.m4s",
        os.path.join(AUDIO_DIR, "init_audio.m4s")
    )
    
    # Télécharger audio + vidéo simultanément
    with ThreadPoolExecutor(max_workers=16) as executor:
    
        futures = []
    
        for i in range(1, MAX_SEGMENTS + 1):
    
            futures.append(executor.submit(download_video_segment, i))
            futures.append(executor.submit(download_audio_segment, i))
    
        for future in futures:
            future.result()
    
    print("Téléchargement terminé")
    Automatic concat:
    Code:
    def concat_segments(input_dir, init_name, output_file):
    
        with open(output_file, "wb") as outfile:
    
            # init segment
            with open(os.path.join(input_dir, init_name), "rb") as f:
                outfile.write(f.read())
    
            # chunks
            files = sorted(
                f for f in os.listdir(input_dir)
                if f.endswith(".m4s") and f != init_name
            )
    
            for file in files:
    
                with open(os.path.join(input_dir, file), "rb") as f:
                    outfile.write(f.read())
    
        print(f"Created {output_file}")
    
    
    concat_segments(VIDEO_DIR, "init_video.m4s", "video.mp4")
    concat_segments(AUDIO_DIR, "init_audio.m4s", "audio.m4a")
    Final merger:
    Code:
    ffmpeg -i video.mp4 -i audio.m4a -c copy final.mp4
    If you can share the URL, we can download and share the video for you.
    Last edited by sesamap159; 10th May 2026 at 02:29.
    Quote Quote  
  5. Give the URL of any live stream.
    Quote Quote  
  6. Problem is live stream isnt valid anymore,its from fightpass ppv, 10mins after the live stream it was chaged/deleted.
    Quote Quote  
  7. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Image
    [Attachment 92312 - Click to enlarge]

    why did you message me for?
    did you message all members til you get your video
    Quote Quote  
  8. Originally Posted by iamghost View Post
    Image
    [Attachment 92312 - Click to enlarge]

    why did you message me for?
    did you message all members til you get your video
    I didnt ,must be a mistake
    Quote Quote  
  9. Originally Posted by sesamap159 View Post
    Originally Posted by RKO4321 View Post
    Originally Posted by sesamap159 View Post
    Originally Posted by RKO4321 View Post
    Im trying to download from this website that gives m4s segments but not a mpd file
    init_video and init_audio file is there but ffmepg doesnt capture it

    https://prnt.sc/WKCQlV9aeA4l

    Any help,THank you
    URL?

    in F12 DevTools Network Search: m3u8

    You can download the m3u8 file using N_m3u8dl-re.
    no m3u8, since the live stream is done,url doesnt work, dvtools under network only m4s segments are available seperate ,4s for video and ausio, plus init_video and init_audio, thats all
    Download video files in m4s format and audio files.
    Code:
    import os
    import requests
    from concurrent.futures import ThreadPoolExecutor
    
    BASE_VIDEO_URL = "https://example.com/video/"
    BASE_AUDIO_URL = "https://example.com/audio/"
    
    VIDEO_DIR = "video_segments"
    AUDIO_DIR = "audio_segments"
    
    os.makedirs(VIDEO_DIR, exist_ok=True)
    os.makedirs(AUDIO_DIR, exist_ok=True)
    
    headers = {
        "User-Agent": "Mozilla/5.0"
    }
    
    MAX_SEGMENTS = 1000
    
    
    def download_file(url, output_path):
        try:
            r = requests.get(url, headers=headers, timeout=15)
    
            if r.status_code == 200:
                with open(output_path, "wb") as f:
                    f.write(r.content)
    
                print(f"OK  {output_path}")
                return True
    
            else:
                print(f"404 {url}")
                return False
    
        except Exception as e:
            print(f"ERR {url} -> {e}")
            return False
    
    
    def download_video_segment(i):
        name = f"chunk_{i:05d}.m4s"
        url = BASE_VIDEO_URL + name
        path = os.path.join(VIDEO_DIR, name)
    
        return download_file(url, path)
    
    
    def download_audio_segment(i):
        name = f"chunk_{i:05d}.m4s"
        url = BASE_AUDIO_URL + name
        path = os.path.join(AUDIO_DIR, name)
    
        return download_file(url, path)
    
    
    # Télécharger init segments
    download_file(
        BASE_VIDEO_URL + "init_video.m4s",
        os.path.join(VIDEO_DIR, "init_video.m4s")
    )
    
    download_file(
        BASE_AUDIO_URL + "init_audio.m4s",
        os.path.join(AUDIO_DIR, "init_audio.m4s")
    )
    
    # Télécharger audio + vidéo simultanément
    with ThreadPoolExecutor(max_workers=16) as executor:
    
        futures = []
    
        for i in range(1, MAX_SEGMENTS + 1):
    
            futures.append(executor.submit(download_video_segment, i))
            futures.append(executor.submit(download_audio_segment, i))
    
        for future in futures:
            future.result()
    
    print("Téléchargement terminé")
    Automatic concat:
    Code:
    def concat_segments(input_dir, init_name, output_file):
    
        with open(output_file, "wb") as outfile:
    
            # init segment
            with open(os.path.join(input_dir, init_name), "rb") as f:
                outfile.write(f.read())
    
            # chunks
            files = sorted(
                f for f in os.listdir(input_dir)
                if f.endswith(".m4s") and f != init_name
            )
    
            for file in files:
    
                with open(os.path.join(input_dir, file), "rb") as f:
                    outfile.write(f.read())
    
        print(f"Created {output_file}")
    
    
    concat_segments(VIDEO_DIR, "init_video.m4s", "video.mp4")
    concat_segments(AUDIO_DIR, "init_audio.m4s", "audio.m4a")
    Final merger:
    Code:
    ffmpeg -i video.mp4 -i audio.m4a -c copy final.mp4
    If you can share the URL, we can download and share the video for you.

    can you please explain more how to download all the segments, please. because with ffmpeg even the init,video file not working
    Quote Quote  
  10. Here is a smaple file of live stream
    https://ufcfightpass.com/live/129428
    if toy go you can clearly see the init video and audio file, how can I grab them?
    Quote Quote  
  11. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Originally Posted by RKO4321 View Post
    Here is a smaple file of live stream
    https://ufcfightpass.com/live/129428
    if toy go you can clearly see the init video and audio file, how can I grab them?
    It not free...
    Image
    [Attachment 92390 - Click to enlarge]
    Quote Quote  
  12. Hi I got the mdp

    <?xml version="1.0" encoding="utf-8" ?>
    <!--Endeavor Streaming Server 6.6.0.20260109.40 -->
    <MPD profiles="urn:mpeg:dashrofile:isoff-live:2011" type="dynamic" availabilityStartTime="1970-01-01T00:00:00Z" publishTime="2026-05-16T23:53:09Z" minimumUpdatePeriod="PT6.006S" minBufferTime="PT6.006S" timeShiftBufferDepth="PT6H" suggestedPresentationDelay="PT18.018S" maxSegmentDuration="PT12.012S" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dashchema:mpd:2011" xmlnscte35="urnctecte35:2014ml+bin" xmlnslink="http://www.w3.org/1999/xlink" xmlns:cenc="urn:mpeg:cenc:2013" xsichemaLocation="urn:mpegASHchema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd">
    <Period id="264AB3563B9046E5872FD726254FE334" start="PT494156H30M28.617S">
    <AdaptationSet mimeType="video/mp4" id="0" contentType="video" minBandwidth="400000" maxBandwidth="8000000" minWidth="512" maxWidth="1920" minHeight="288" maxHeight="1080" minFrameRate="30000/1001" maxFrameRate="60000/1001" segmentAlignment="true" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" />
    <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="cenc" />
    <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" value="cenc" />
    <InbandEventStream schemeIdUri="urnctecte35:2013ml" value="1" />
    <Accessibility schemeIdUri="urncte:dash:cc:cea-608:2015" value="CC1=eng" />
    <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
    <SegmentTemplate timescale="1000000" presentationTimeOffset="1778963428617677" duration="6006000" startNumber="296197707" media="media_$RepresentationID$-$Number$.m4s" initialization="init_$RepresentationID$.m4s" />
    <Representation width="960" height="540" sar="1:1" frameRate="30000/1001" codecs="avc1.4D401F" id="video_1600" bandwidth="1600000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_1600/ijjOn2wNJ/</BaseURL>
    </Representation>
    <Representation width="512" height="288" sar="1:1" frameRate="30000/1001" codecs="avc1.4D4015" id="video_400" bandwidth="400000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_400/ijjOn2wNJ/</BaseURL>
    </Representation>
    <Representation width="640" height="360" sar="1:1" frameRate="30000/1001" codecs="avc1.4D401E" id="video_800" bandwidth="800000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_800/ijjOn2wNJ/</BaseURL>
    </Representation>
    <Representation width="1280" height="720" sar="1:1" frameRate="30000/1001" codecs="avc1.4D401F" id="video_3000" bandwidth="3000000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_3000/ijjOn2wNJ/</BaseURL>
    </Representation>
    <Representation width="1280" height="720" sar="1:1" frameRate="30000/1001" codecs="avc1.4D401F" id="video_4500" bandwidth="4500000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_4500/ijjOn2wNJ/</BaseURL>
    </Representation>
    <Representation width="1280" height="720" sar="1:1" frameRate="60000/1001" codecs="avc1.4D4020" id="video_6000" bandwidth="6000000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_6000/ijjOn2wNJ/</BaseURL>
    </Representation>
    <Representation width="1920" height="1080" sar="1:1" frameRate="60000/1001" codecs="avc1.4D402A" id="video_8000" bandwidth="8000000">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_8000/ijjOn2wNJ/</BaseURL>
    </Representation>
    </AdaptationSet>
    <AdaptationSet mimeType="audio/mp4" id="1" lang="eng" contentType="audio" segmentAlignment="true" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" />
    <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="cenc" />
    <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" value="cenc" />
    <Label>English</Label>
    <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
    <SegmentTemplate timescale="1000000" presentationTimeOffset="1778963428617677" duration="6006000" startNumber="296197707" media="media_$RepresentationID$-$Number$.m4s" initialization="init_$RepresentationID$.m4s" />
    <Representation audioSamplingRate="48000" codecs="mp4a.40.2" id="audio_3000" bandwidth="128000">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_c onfiguration:2011" value="2" />
    <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="CE9446D3-8118-44EE-8907-B964830E2168" />
    <BaseURL>exchange300830pmprt_300830_3000/ijjOn2wNJ/</BaseURL>
    </Representation>
    </AdaptationSet>
    </Period>
    <UTCTiming schemeIdUri="urn:mpeg:dash:utc:direct:2014" value="2026-05-16T23:53:04.761677Z" />
    </MPD>
    how can i get the 70p version of this, becase it always download the lowest qiality version with ffmpeg,

    Links example
    https://dice-live-us.cdnfastly.endeavorstreaming.net/1779062731_a7rtKKkGbCGepfsI_1f1b5...manifest-d.mpd
    Last edited by RKO4321; 16th May 2026 at 19:31.
    Quote Quote  
  13. Vid *CENC 1920x1080 | 8000 Kbps | video_8000 | 59.94 | avc1.4D402A |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 1280x720 | 6000 Kbps | video_6000 | 59.94 | avc1.4D4020 |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 1280x720 | 4500 Kbps | video_4500 | 29.97 | avc1.4D401F |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 1280x720 | 3000 Kbps | video_3000 | 29.97 | avc1.4D401F |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 960x540 | 1600 Kbps | video_1600 | 29.97 | avc1.4D401F | 3596
    Segments | Main | ~05h59m57s
    *CENC 640x360 | 800 Kbps | video_800 | 29.97 | avc1.4D401E | 3596
    Segments | Main | ~05h59m57s
    Vid *CENC 512x288 | 400 Kbps | video_400 | 29.97 | avc1.4D4015 | 3596
    Segments | Main | ~05h59m57s

    70p?
    Quote Quote  
  14. Originally Posted by LZAA View Post
    Vid *CENC 1920x1080 | 8000 Kbps | video_8000 | 59.94 | avc1.4D402A |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 1280x720 | 6000 Kbps | video_6000 | 59.94 | avc1.4D4020 |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 1280x720 | 4500 Kbps | video_4500 | 29.97 | avc1.4D401F |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 1280x720 | 3000 Kbps | video_3000 | 29.97 | avc1.4D401F |
    3596 Segments | Main | ~05h59m57s
    Vid *CENC 960x540 | 1600 Kbps | video_1600 | 29.97 | avc1.4D401F | 3596
    Segments | Main | ~05h59m57s
    *CENC 640x360 | 800 Kbps | video_800 | 29.97 | avc1.4D401E | 3596
    Segments | Main | ~05h59m57s
    Vid *CENC 512x288 | 400 Kbps | video_400 | 29.97 | avc1.4D4015 | 3596
    Segments | Main | ~05h59m57s

    70p?
    720p, and how the commad will look like
    ffmpeg -i "LINK YOU GET" -c copy -bsf:a aac_adtstoasc im using this command, but it downloads only the lowest quality

    Below is the mpd link,
    https://dice-live-us.cdnfastly.endeavorstreaming.net/1779062731_a7rtKKkGbCGepfsI_1f1b5...manifest-d.mpd
    Quote Quote  



Similar Threads

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