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
+ Reply to Thread
Results 1 to 13 of 13
-
-
-
-
Download video files in m4s format and audio files.
Automatic concat: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é")
Final merger: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")
If you can share the URL, we can download and share the video for you.Code:ffmpeg -i video.mp4 -i audio.m4a -c copy final.mp4
Last edited by sesamap159; 10th May 2026 at 02:29.
-
Problem is live stream isnt valid anymore,its from fightpass ppv, 10mins after the live stream it was chaged/deleted.
-
[Attachment 92312 - Click to enlarge]
why did you message me for?
did you message all members til you get your video -
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...
[Attachment 92390 - Click to enlarge] -
Hi I got the mdp
how can i get the 70p version of this, becase it always download the lowest qiality version with ffmpeg,<?xml version="1.0" encoding="utf-8" ?>
<!--Endeavor Streaming Server 6.6.0.20260109.40 -->
<MPD profiles="urn:mpeg:dash
rofile: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" xmlns
si="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash
chema:mpd:2011" xmlns
cte35="urn
cte
cte35:2014
ml+bin" xmlns
link="http://www.w3.org/1999/xlink" xmlns:cenc="urn:mpeg:cenc:2013" xsi
chemaLocation="urn:mpeg
ASH
chema: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="urn
cte
cte35:2013
ml" value="1" />
<Accessibility schemeIdUri="urn
cte: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>
Links example
https://dice-live-us.cdnfastly.endeavorstreaming.net/1779062731_a7rtKKkGbCGepfsI_1f1b5...manifest-d.mpdLast edited by RKO4321; 16th May 2026 at 19:31.
Similar Threads
-
Download live sports stream
By TheLeito in forum Video Streaming DownloadingReplies: 1Last Post: 25th Mar 2026, 12:48 -
Trying to download a live stream from Vimeo
By razametal in forum Video Streaming DownloadingReplies: 6Last Post: 16th Oct 2024, 11:44 -
Streaming decrypted live stream - live pipe buffering problem
By Kalisto in forum Video Streaming DownloadingReplies: 0Last Post: 25th Apr 2024, 12:19 -
How to download LIVE stream (.mpd)
By andrewzhong in forum Video Streaming DownloadingReplies: 7Last Post: 16th Jun 2021, 22:42


Quote
