Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download video from local manifest.mpd #25326

Closed
davispuh opened this issue May 20, 2020 · 1 comment
Closed

Download video from local manifest.mpd #25326

davispuh opened this issue May 20, 2020 · 1 comment

Comments

@davispuh
Copy link

@davispuh davispuh commented May 20, 2020

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2020.05.08
  • I've searched the bugtracker for similar feature requests including closed ones

Description

It seems that currently you can't download video from local manifest.mpd file.

For example I have locally this manifest.mpd file with content:

<?xml version="1.0"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H0M3.515S" maxSegmentDuration="PT0H0M2.248S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011,http://dashif.org/guidelines/dash264">
    <Period duration="PT0H0M3.515S">
        <AdaptationSet segmentAlignment="true" maxWidth="368" maxHeight="640" maxFrameRate="19200/681" par="276:480" lang="und" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
            <Representation id="174356317284970v" mimeType="video/mp4" codecs="avc1.4D401E" width="276" height="480" frameRate="19200/608" sar="1:1" startWithSAP="1" bandwidth="251438">
                <BaseURL>https://example.org/video_low.mp4</BaseURL>
                <SegmentBase indexRangeExact="true" indexRange="953-1008">
                    <Initialization range="0-952" />
                </SegmentBase>
            </Representation>
            <Representation id="277572850281398v" mimeType="video/mp4" codecs="avc1.4D0029" width="368" height="640" frameRate="19200/608" sar="1:1" startWithSAP="1" bandwidth="679305">
                <BaseURL>https://example.org/video_good.mp4</BaseURL>
                <SegmentBase indexRangeExact="true" indexRange="940-995">
                    <Initialization range="0-939" />
                </SegmentBase>
            </Representation>
        </AdaptationSet>
        <AdaptationSet segmentAlignment="true" lang="und" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
            <Representation id="549754235974131a" mimeType="audio/mp4" codecs="mp4a.40.5" audioSamplingRate="44100" startWithSAP="1" bandwidth="51816">
                <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="1" />
                <BaseURL>https://example.org/audio.mp4</BaseURL>
                <SegmentBase indexRangeExact="true" indexRange="912-967">
                    <Initialization range="0-911" />
                </SegmentBase>
            </Representation>
        </AdaptationSet>
    </Period>
</MPD>

It contains video for low and high quality and also audio. So I want to download highest quality and merge it with audio.
Basically youtube-dl ./manifest.mpd (or something like youtube-dl file://./manifest.mpd)

Current workaround seems to be just host that file with python -m http.server 8000 and then use youtube-dl http://127.0.0.1:8000/manifest.mpd which while seems to work isn't that nice.

@davispuh davispuh added the request label May 20, 2020
@dstftw dstftw closed this May 20, 2020
@dstftw dstftw added the duplicate label May 20, 2020
@davispuh
Copy link
Author

@davispuh davispuh commented May 20, 2020

If you mark it as duplicate then you should link that request because I can't find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.