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

DASH/Fragments: don't assume every fragment uses the same duration #11868

Closed
wiiaboo opened this issue Jan 28, 2017 · 0 comments
Closed

DASH/Fragments: don't assume every fragment uses the same duration #11868

wiiaboo opened this issue Jan 28, 2017 · 0 comments

Comments

@wiiaboo
Copy link
Contributor

@wiiaboo wiiaboo commented Jan 28, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.28. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.01.28

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

$ C:\builds\youtube-dl-git>py -m youtube_dl -v -J --ignore-config P_gg6fGppwM -f bestvideo > json.json
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-J', '--ignore-config', 'P_gg6fGppwM', '-f', 'bestvideo']
[debug] Encodings: locale cp1252, fs utf-8, out cp1252, pref cp1252
[debug] youtube-dl version 2017.01.28
[debug] Lazy loading extractors enabled
[debug] Git HEAD: 76aaf1f
[debug] Python version 3.6.0 - Windows-10-10.0.14393-SP0
[debug] exe versions: ffmpeg N-83250-g95bde49982, ffprobe N-83250-g95bde49982, rtmpdump 2.4-20151223-gfa8646d-LibreSSL_2.3.4-x86_64-static
[debug] Proxy map: {}

json.json:

"fragments": [
        (...)
        {
            "duration": 5.005,
            "url": "https://r3---sn-8vq54vox2u-apnl.googlevideo.com/videoplayback/id/3ff820e9f1a9a703/itag/137/source/yt_otf/requiressl/yes/pcm2cms/yes/pl/17/mv/m/ms/au/initcwndbps/4502500/mn/sn-8vq54vox2u-apnl/mm/31/ratebypass/yes/mime/video%2Fmp4/otfp/1/otf/1/lmt/1462234017178236/upn/MxkIUAKaORQ/key/dg_yt0/mt/1485636923/signature/9AB39F7044C52CE997F6D46DCADD26820FD58E03.6FF2B70380BFB1D09A1937B439B106301177CDD4/ip/89.114.246.10/ipbits/0/expire/1485658596/sparams/ip,ipbits,expire,id,itag,source,requiressl,pcm2cms,pl,mv,ms,initcwndbps,mn,mm,ratebypass,mime,otfp,otf,lmt/sq/31/dur/5.005"
        },
        {
            "duration": 5.005,
            "url": "https://r3---sn-8vq54vox2u-apnl.googlevideo.com/videoplayback/id/3ff820e9f1a9a703/itag/137/source/yt_otf/requiressl/yes/pcm2cms/yes/pl/17/mv/m/ms/au/initcwndbps/4502500/mn/sn-8vq54vox2u-apnl/mm/31/ratebypass/yes/mime/video%2Fmp4/otfp/1/otf/1/lmt/1462234017178236/upn/MxkIUAKaORQ/key/dg_yt0/mt/1485636923/signature/9AB39F7044C52CE997F6D46DCADD26820FD58E03.6FF2B70380BFB1D09A1937B439B106301177CDD4/ip/89.114.246.10/ipbits/0/expire/1485658596/sparams/ip,ipbits,expire,id,itag,source,requiressl,pcm2cms,pl,mv,ms,initcwndbps,mn,mm,ratebypass,mime,otfp,otf,lmt/sq/32/dur/5.839"
        }

The duration on the last segment should be 5.839. Also very noticeable with -f bestaudio:

    "fragments": [
        {
            "url": "https://r3---sn-8vq54vox2u-apnl.googlevideo.com/videoplayback/id/3ff820e9f1a9a703/itag/140/source/youtube/requiressl/yes/mv/m/ms/au/initcwndbps/4340000/pl/17/mm/31/mn/sn-8vq54vox2u-apnl/pcm2cms/yes/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/2559533/lmt/1389776821754985/dur/161.100/mt/1485637227/signature/7F8067EA8CDC8319EE15DF45324B12A496C8D3AA.9214872DA92D30DBC905458C4F7CD1EF2A91C31F/upn/oIgXFL1x5os/key/dg_yt0/ip/89.114.246.10/ipbits/0/expire/1485658999/sparams/ip,ipbits,expire,id,itag,source,requiressl,mv,ms,initcwndbps,pl,mm,mn,pcm2cms,ratebypass,mime,otfp,gir,clen,lmt,dur/range/0-591"
        },
        {
            "duration": 10.008,
            "url": "https://r3---sn-8vq54vox2u-apnl.googlevideo.com/videoplayback/id/3ff820e9f1a9a703/itag/140/source/youtube/requiressl/yes/mv/m/ms/au/initcwndbps/4340000/pl/17/mm/31/mn/sn-8vq54vox2u-apnl/pcm2cms/yes/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/2559533/lmt/1389776821754985/dur/161.100/mt/1485637227/signature/7F8067EA8CDC8319EE15DF45324B12A496C8D3AA.9214872DA92D30DBC905458C4F7CD1EF2A91C31F/upn/oIgXFL1x5os/key/dg_yt0/ip/89.114.246.10/ipbits/0/expire/1485658999/sparams/ip,ipbits,expire,id,itag,source,requiressl,mv,ms,initcwndbps,pl,mm,mn,pcm2cms,ratebypass,mime,otfp,gir,clen,lmt,dur/range/828-160112"
        },
        {
            "duration": 10.008,
            "url": "https://r3---sn-8vq54vox2u-apnl.googlevideo.com/videoplayback/id/3ff820e9f1a9a703/itag/140/source/youtube/requiressl/yes/mv/m/ms/au/initcwndbps/4340000/pl/17/mm/31/mn/sn-8vq54vox2u-apnl/pcm2cms/yes/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/2559533/lmt/1389776821754985/dur/161.100/mt/1485637227/signature/7F8067EA8CDC8319EE15DF45324B12A496C8D3AA.9214872DA92D30DBC905458C4F7CD1EF2A91C31F/upn/oIgXFL1x5os/key/dg_yt0/ip/89.114.246.10/ipbits/0/expire/1485658999/sparams/ip,ipbits,expire,id,itag,source,requiressl,mv,ms,initcwndbps,pl,mm,mn,pcm2cms,ratebypass,mime,otfp,gir,clen,lmt,dur/range/160113-318780"
        },
        {
            "duration": 10.008,
            "url": "https://r3---sn-8vq54vox2u-apnl.googlevideo.com/videoplayback/id/3ff820e9f1a9a703/itag/140/source/youtube/requiressl/yes/mv/m/ms/au/initcwndbps/4340000/pl/17/mm/31/mn/sn-8vq54vox2u-apnl/pcm2cms/yes/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/2559533/lmt/1389776821754985/dur/161.100/mt/1485637227/signature/7F8067EA8CDC8319EE15DF45324B12A496C8D3AA.9214872DA92D30DBC905458C4F7CD1EF2A91C31F/upn/oIgXFL1x5os/key/dg_yt0/ip/89.114.246.10/ipbits/0/expire/1485658999/sparams/ip,ipbits,expire,id,itag,source,requiressl,mv,ms,initcwndbps,pl,mm,mn,pcm2cms,ratebypass,mime,otfp,gir,clen,lmt,dur/range/318781-477320"
        },
(...)

According to the manifest, the third segment should be 9.984s, not 10.008.

(...)
                    <S d="5005"/>
                    <S d="5839"/>
                </SegmentTimeline>
<SegmentTimeline>
                    <S d="10008"/>
                    <S d="10008"/>
                    <S d="9984"/>
(...)
@dstftw dstftw closed this in d04621d Jan 28, 2017
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
1 participant
You can’t perform that action at this time.