VideoHelp Forum





Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 61 to 63 of 63
  1. Originally Posted by Karoolus View Post
    Originally Posted by dwayne13 View Post
    the file from karoolus throws the same error as I was getting at a certain point:
    Traceback (most recent call last):
    File "fix_mpd_mergevtt.py", line 212, in <module>
    fix_go_play_mpd(sys.argv[1])
    File "fix_mpd_mergevtt.py", line 159, in fix_go_play_mpd
    vtt_texts = [fetch_vtt(base_url, p) for p, _ in paths]
    ^^^^^^^^^^^^^^^^^^^^^^
    File "fix_mpd_mergevtt.py", line 24, in fetch_vtt
    response.raise_for_status()
    File "C:\Program Files\Python312\Lib\site-packages\requests\models.py", line 1026, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
    requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pubads.g.doubleclick.net/ondemand/dash/content/2720842/vid/10154143751940314/G...erlands_P0.vtt

    Reason I think of the error:
    The subtitle path is relative like subtitles/Nederlands_P0.vtt but the script resolves it against the MPD's request URL while the real subtitle location is relative to the XML <BaseURL> inside the MPD
    Which episode is it failing on for you? It works here? I'll have another look.

    I've updated the file I linked, give that a go.
    Strange, I'm getting the same error as dwayne13. Are you sure you updated the file?
    Quote Quote  
  2. Originally Posted by dwayne13 View Post
    Also had a try and with help from chatGPT I got it to work.
    From what I understood, there were 2 things that needed fixing:
    * the subs are full .vtt files per period, not segmentTimelin so they need a real merge
    * the mpd duration metadata was not updated resulting in the subs taking that partial length in stead of the full length.

    I'm not fluent in Python, but this worked for me for De Mol to get the full subs. Feel free to use it and/or improve on it (remove the .txt extension, that was purely for upload reasons)
    Thanks a lot mate this worked for me
    Quote Quote  
  3. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Originally Posted by dwayne13 View Post
    Still getting the error.
    command i'm using:
    python fix_mpd_mergevtt.py https://pubads.g.doubleclick.net/ondemand/dash/content/2720842/vid/10154143751940314/G...0/manifest.mpd

    throws the same error still
    mmhm weird, I'm getting a different MPD url.
    Code:
    https://stream3-vod.cdn1.sbs.prd.telenet-ops.be/geo/SSAI/DE_MOL/S14/E1/033cdacf-63af-4de1-8f81-ed28d602d324/F0352286_T888.mpd
    And it works just fine on that. I'll check the doubleclick url setup and adjust the script to match both
    Quote Quote  



Similar Threads

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