VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Feb 2022
    Location
    Hong Kong
    Search Comp PM
    The .mpd: https://ewcdn108.nowe.com/session/15-5-f583-0001000156347512676398/Content/DASH_VOS3/V...799_1645016051
    Code:
    yt-dlp --write-subs --skip-download --external-downloader aria2c --allow-u "https://ewcdn108.nowe.com/session/15-5-3baa-0001000156347512676398/Content/DASH_VOS3/VOD/14450/6735/2ef99f4c-4f76-4194-91e8-b440e534c882/f677841a-9d8f-2ff5-3517-674ba49ef192/manifest.mpd" --all-subs --output sub.vtt
    This is the command that I used to download the subtitles. While it successfully combined all the segments into one subtitle file, it doesn't have the correct timestamps. I believe that the subtitles should be in segments of 8 seconds. Is there a way to rip them with the correct timestamps?

    The mpd's content:
    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <MPD profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT48M48.835S" minBufferTime="PT8.0S" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:cenc="urn:mpeg:cenc:2013" xmlns:mspr="urn:microsoft:playready" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd">
    	<Period>
    		<AdaptationSet mimeType="video/mp4" startWithSAP="1" segmentAlignment="true" par="16:9">
    			<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"></ContentProtection>
    			<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"><mspr:pro xmlns:mspr="urn:microsoft:playready">YAMAAAEAAQBWAzwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AMgB4AHIATQBiAEsAbQBxAHUAVABpAE0AagBOAFUAQwBsAEMAbgBJAHgAdwA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgBpAGcAeQAxACsAWQBkADIARwBvAFUAPQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBwAHIAbwBmAGYAaQBjAGkAYQBsAHMAaQB0AGUALgBrAGUAeQBkAGUAbABpAHYAZQByAHkALgBtAGUAZABpAGEAcwBlAHIAdgBpAGMAZQBzAC4AdwBpAG4AZABvAHcAcwAuAG4AZQB0AC8AUABsAGEAeQBSAGUAYQBkAHkALwA8AC8ATABBAF8AVQBSAEwAPgA8AEMAVQBTAFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AEkASQBTAF8ARABSAE0AXwBWAEUAUgBTAEkATwBOAD4AOAAuADAALgAxADYAMQAxAC4AMQAwADAAMQA8AC8ASQBJAFMAXwBEAFIATQBfAFYARQBSAFMASQBPAE4APgA8AC8AQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A</mspr:pro></ContentProtection>
    			<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></ContentProtection>
    			<SegmentTemplate timescale="10000000" presentationTimeOffset="11650000" media="$RepresentationID$/Segment-$Time$.m4v" initialization="$RepresentationID$/init.m4i">
    				<SegmentTimeline>
    					<S t="11650000" d="80000000" r="365" />
    					<S t="29291650000" d="7200000" />
    				</SegmentTimeline>
    			</SegmentTemplate>
    			<Representation width="426" height="240" frameRate="25" codecs="avc3.4d4029" scanType="progressive" sar="639:640" id="stream_0" bandwidth="204000" />
    			<Representation width="854" height="480" frameRate="25" codecs="avc3.4d4029" scanType="progressive" sar="1281:1280" id="stream_1" bandwidth="704000" />
    			<Representation width="1280" height="720" frameRate="25" codecs="avc3.4d4029" scanType="progressive" sar="1:1" id="stream_2" bandwidth="1472000" />
    			<Representation width="1920" height="1080" frameRate="25" codecs="avc3.4d4029" scanType="progressive" sar="1:1" id="stream_3" bandwidth="2808000" />
    			<Representation width="1920" height="1080" frameRate="25" codecs="avc3.640029" scanType="progressive" sar="1:1" id="stream_4" bandwidth="4808000" />
    		</AdaptationSet>
    		<AdaptationSet mimeType="audio/mp4" startWithSAP="1" lang="spa" segmentAlignment="true">
    			<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"></ContentProtection>
    			<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"><mspr:pro xmlns:mspr="urn:microsoft:playready">YAMAAAEAAQBWAzwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AMgB4AHIATQBiAEsAbQBxAHUAVABpAE0AagBOAFUAQwBsAEMAbgBJAHgAdwA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgBpAGcAeQAxACsAWQBkADIARwBvAFUAPQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBwAHIAbwBmAGYAaQBjAGkAYQBsAHMAaQB0AGUALgBrAGUAeQBkAGUAbABpAHYAZQByAHkALgBtAGUAZABpAGEAcwBlAHIAdgBpAGMAZQBzAC4AdwBpAG4AZABvAHcAcwAuAG4AZQB0AC8AUABsAGEAeQBSAGUAYQBkAHkALwA8AC8ATABBAF8AVQBSAEwAPgA8AEMAVQBTAFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AEkASQBTAF8ARABSAE0AXwBWAEUAUgBTAEkATwBOAD4AOAAuADAALgAxADYAMQAxAC4AMQAwADAAMQA8AC8ASQBJAFMAXwBEAFIATQBfAFYARQBSAFMASQBPAE4APgA8AC8AQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A</mspr:pro></ContentProtection>
    			<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></ContentProtection>
    			<SegmentTemplate timescale="10000000" presentationTimeOffset="11650000" media="$RepresentationID$/Segment-$Time$.m4a" initialization="$RepresentationID$/init.m4i">
    				<SegmentTimeline>
    					<S t="11803333" d="80000000" r="365" />
    					<S t="29291803333" d="6400000" />
    				</SegmentTimeline>
    			</SegmentTemplate>
    			<Representation audioSamplingRate="48000" codecs="mp4a.40.2" id="stream_6" bandwidth="96000" />
    		</AdaptationSet>
    		<AdaptationSet mimeType="audio/mp4" startWithSAP="1" lang="yue" segmentAlignment="true">
    			<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"></ContentProtection>
    			<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"><mspr:pro xmlns:mspr="urn:microsoft:playready">YAMAAAEAAQBWAzwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AMgB4AHIATQBiAEsAbQBxAHUAVABpAE0AagBOAFUAQwBsAEMAbgBJAHgAdwA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgBpAGcAeQAxACsAWQBkADIARwBvAFUAPQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBwAHIAbwBmAGYAaQBjAGkAYQBsAHMAaQB0AGUALgBrAGUAeQBkAGUAbABpAHYAZQByAHkALgBtAGUAZABpAGEAcwBlAHIAdgBpAGMAZQBzAC4AdwBpAG4AZABvAHcAcwAuAG4AZQB0AC8AUABsAGEAeQBSAGUAYQBkAHkALwA8AC8ATABBAF8AVQBSAEwAPgA8AEMAVQBTAFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AEkASQBTAF8ARABSAE0AXwBWAEUAUgBTAEkATwBOAD4AOAAuADAALgAxADYAMQAxAC4AMQAwADAAMQA8AC8ASQBJAFMAXwBEAFIATQBfAFYARQBSAFMASQBPAE4APgA8AC8AQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A</mspr:pro></ContentProtection>
    			<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></ContentProtection>
    			<SegmentTemplate timescale="10000000" presentationTimeOffset="11650000" media="$RepresentationID$/Segment-$Time$.m4a" initialization="$RepresentationID$/init.m4i">
    				<SegmentTimeline>
    					<S t="11803333" d="80000000" r="365" />
    					<S t="29291803333" d="6400000" />
    				</SegmentTimeline>
    			</SegmentTemplate>
    			<Representation audioSamplingRate="48000" codecs="mp4a.40.2" id="stream_5" bandwidth="96000" />
    		</AdaptationSet>
    		<AdaptationSet mimeType="text/vtt" startWithSAP="1" lang="eng" segmentAlignment="true">
    			<SegmentTemplate timescale="10000000" presentationTimeOffset="11650000" media="$RepresentationID$/Segment-$Time$.vtt">
    				<SegmentTimeline>
    					<S t="11650000" d="80000000" r="365" />
    					<S t="29291650000" d="8350000" />
    				</SegmentTimeline>
    			</SegmentTemplate>
    			<Representation codecs="vtt" id="stream_7" bandwidth="15000" />
    		</AdaptationSet>
    		<AdaptationSet mimeType="text/vtt" startWithSAP="1" lang="yue" segmentAlignment="true">
    			<SegmentTemplate timescale="10000000" presentationTimeOffset="11650000" media="$RepresentationID$/Segment-$Time$.vtt">
    				<SegmentTimeline>
    					<S t="11650000" d="80000000" r="365" />
    					<S t="29291650000" d="8350000" />
    				</SegmentTimeline>
    			</SegmentTemplate>
    			<Representation codecs="vtt" id="stream_8" bandwidth="15000" />
    		</AdaptationSet>
    	</Period>
    </MPD>
    Last edited by kkycble; 16th Feb 2022 at 23:14.
    Quote Quote  
  2. The mpd doesn't open in the browser. Is it geo/time restricted?
    Can you post a short example of the timestaps/subs you get, and the timestamps you think they should be?
    Try removing --external-downloader aria2c
    click click2
    If I/my posts ever helped you, and you want to give back, send me a private message!
    Quote Quote  
  3. Member
    Join Date
    Feb 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by [ss]vegeta View Post
    The mpd doesn't open in the browser. Is it geo/time restricted?
    Can you post a short example of the timestaps/subs you get, and the timestamps you think they should be?
    Try removing --external-downloader aria2c
    The mpd is from a site that I'm a member of, but the content itself is free. So this means it probably requires login credentials for you to actually get access to the mpd (which I am willing to give in pm). I've also edited the link to attach a token to the mpd, maybe you can view it this time?

    Here provides a portion of the download subtitles:
    Code:
    WEBVTT
    
    WEBVTT
    
    00:00:02.440 --> 00:00:04.120
    You say they fell asleep at 11?
    
    00:00:04.200 --> 00:00:07.919
    Yep. I played on the PlayStation
    with Benja.
    
    WEBVTT
    
    00:00:00.000 --> 00:00:03.240
    We finished at 23:30
    and he told me 'I wanna sleep, Dad'.
    
    00:00:03.320 --> 00:00:04.320
    And he fell asleep in 2 minutes.
    
    00:00:05.400 --> 00:00:07.479
    Yes, mine also fell after a sec.
    
    WEBVTT
    
    00:00:00.920 --> 00:00:03.800
    Whether you like it or not,
    when they're alone with us...
    
    00:00:04.680 --> 00:00:07.160
    Plus, Mateo is not having
    his nap anymore at school.
    
    00:00:07.240 --> 00:00:07.999
    -Arrives exhausted!
    -So he's exhausted when he arrives.
    I've removed the --external-downloader part and the result is the same.
    Quote Quote  
  4. It doesn't open even with the token.
    Ask nTb how they do it
    Matchday-Inside.FC.Barcelona.S01E01.A.Football.Classic.1080p.RKTN.WEB-DL.DDP5.1.x264-NTb.srt
    click click2
    If I/my posts ever helped you, and you want to give back, send me a private message!
    Quote Quote  
  5. Member
    Join Date
    Feb 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by [ss]vegeta View Post
    It doesn't open even with the token.
    Ask nTb how they do it
    Image
    [Attachment 63410 - Click to enlarge]
    The thing is there are Traditional Chinese subtitles on this website that I want to rip lol! Appreciate your help tho
    Last edited by kkycble; 16th Feb 2022 at 03:02.
    Quote Quote  
  6. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by [ss]vegeta View Post
    It doesn't open even with the token.
    Ask nTb how they do it
    Image
    [Attachment 63410 - Click to enlarge]
    Sir, may I ask that who is nTb that you mentioned.
    And I also met the same problem as the OP, I wonder if there are any solution to download these independent subtitle fragments, because their timestamps are calculated separately.
    Quote Quote  
  7. Originally Posted by CrymanChen View Post
    Sir, may I ask that who is nTb that you mentioned.
    It was a joke. They are a scene group.
    Originally Posted by CrymanChen View Post
    And I also met the same problem as the OP, I wonder if there are any solution to download these independent subtitle fragments, because their timestamps are calculated separately.
    I don't quite remember... but there must be.
    click click2
    If I/my posts ever helped you, and you want to give back, send me a private message!
    Quote Quote  
  8. @kkycble Try this tool, I don't know if it will work https://github.com/nilaoda/N_m3u8DL-RE/
    Quote Quote  
  9. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by [ss]vegeta View Post
    Originally Posted by CrymanChen View Post
    Sir, may I ask that who is nTb that you mentioned.
    It was a joke. They are a scene group.
    Originally Posted by CrymanChen View Post
    And I also met the same problem as the OP, I wonder if there are any solution to download these independent subtitle fragments, because their timestamps are calculated separately.
    I don't quite remember... but there must be.
    Thank you sir.
    Quote Quote  
  10. Each iteration of the subtitle starts at timestamp 0.

    What is happening is that the timestamp of the second and subsequent vtt iterations starts exactly where the previous iteration ends. It is an offset.


    Start with the first vtt call time = t0 to t1
    Second iteration time = t1 to t2 (time at completion of first call is the the time of initiation of second call [time offset])


    Keep on going to the last.


    (Subtitle Edit allows you do do time offsets)
    Quote Quote  
  11. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by jack_666 View Post
    Each iteration of the subtitle starts at timestamp 0.

    What is happening is that the timestamp of the second and subsequent vtt iterations starts exactly where the previous iteration ends. It is an offset.


    Start with the first vtt call time = t0 to t1
    Second iteration time = t1 to t2 (time at completion of first call is the the time of initiation of second call [time offset])


    Keep on going to the last.


    (Subtitle Edit allows you do do time offsets)
    Thanks, maybe I still couldn't use SubtitleEdit well.
    m3u8DL-RE could autofix the timestamps
    Quote Quote  
  12. Getting subtitles

    For MPD, use yt-dlp

    To list available subtitles:
    yt-dlp --list-subs --allow-unplayable-formats LINK

    To download a selected subtitle (English here):
    yt-dlp --skip-download --write-subs --sub-langs "en," --allow-unplayable-formats LINK

    To download all subtitles:
    yt-dlp --skip-download --write-subs --all-subs --allow-unplayable-formats LINK


    For M3U8, use ffmpeg
    ffmpeg.exe -i "https://xxx.vtt.m3u8" subtitle.srt

    Replace it with your m3u8 link. You will find it Dev Tools > Network (For each subtitle track, there will be a separate M3U8 file)

    After downloads, check the subtitles with SubtitleEdit.

    I've never encountered a problem.
    Quote Quote  



Similar Threads

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