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

Format extraction failure of MPD manifest #14897

Closed
tyaremco opened this issue Dec 3, 2017 · 10 comments
Closed

Format extraction failure of MPD manifest #14897

tyaremco opened this issue Dec 3, 2017 · 10 comments
Labels

Comments

@tyaremco
Copy link

@tyaremco tyaremco commented Dec 3, 2017

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

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the 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)

The download URL is a manifest from the website discovery.ca. The output of the formats is a bit corrupted (it looks like the format code is being prefixed by the file name and param string?):

youtube-dl\youtube-dl.exe -F -v "http://capi.9c9media.com/destinations/discovery_web/platforms/desktop/contents/1240619/contentpackages/1735538/stacks/5239224/manifest.mpd?az=%7B%22_type%22%3A%22authz_query%22%2C%22resource%22%3A%22DISC%22%2C%22security_token%22%3A%22%22%2C%22expires%22%3A%221512304694%22%2C%22servertime%22%3A1512261494%2C%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22d335d0659bf53c1a%22%2C%22timestamp%22%3A%221512261494%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0%3D%22%7D%2C%22authorization%22%3Atrue%7D&ai=%7B%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22c67f28f4dbfb44c1%22%2C%22timestamp%22%3A%221512261492%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8%3D%22%7D%2C%22_type%22%3A%22identity%22%2C%22identity%22%3A%7B%22attributes%22%3A%7B%22province%22%3A%22AB%22%2C%22ais_comment%22%3A%22powered%20by%20Akamai%20AIS%22%2C%22postal_code%22%3A%22T6L%22%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3AacctParentID%22%3A%5B%22CuGBrUWvnE3pzVgQFmI4%22%5D%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3ApostalCode%22%3A%5B%22T6L%22%5D%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%2C%22parental_control_limits%22%3A%5B%5D%2C%22name_id%22%3A%22CuGBrUWvnE3pzVgQFmI4%22%2C%22authn_info%22%3A%22%5B(%27urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aac%3Aclasses%3Aunspecified%27%2C%20%5B%5D)%5D%22%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%7D&postalCode=T6L"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '-v', 'http://capi.9c9media.com/destinations/discovery_web/platforms/desktop/contents/1240619/contentpackages/1735538/stacks/5239224/manifest.mpd?az=%7B%22_type%22%3A%22authz_query%22%2C%22resource%22%3A%22DISC%22%2C%22security_token%22%3A%22%22%2C%22expires%22%3A%221512304694%22%2C%22servertime%22%3A1512261494%2C%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22d335d0659bf53c1a%22%2C%22timestamp%22%3A%221512261494%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0%3D%22%7D%2C%22authorization%22%3Atrue%7D&ai=%7B%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22c67f28f4dbfb44c1%22%2C%22timestamp%22%3A%221512261492%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8%3D%22%7D%2C%22_type%22%3A%22identity%22%2C%22identity%22%3A%7B%22attributes%22%3A%7B%22province%22%3A%22AB%22%2C%22ais_comment%22%3A%22powered%20by%20Akamai%20AIS%22%2C%22postal_code%22%3A%22T6L%22%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3AacctParentID%22%3A%5B%22CuGBrUWvnE3pzVgQFmI4%22%5D%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3ApostalCode%22%3A%5B%22T6L%22%5D%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%2C%22parental_control_limits%22%3A%5B%5D%2C%22name_id%22%3A%22CuGBrUWvnE3pzVgQFmI4%22%2C%22authn_info%22%3A%22%5B(%27urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aac%3Aclasses%3Aunspecified%27%2C%20%5B%5D)%5D%22%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%7D&postalCode=T6L']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.12.02
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg n3.2.1
[debug] Proxy map: {}
[generic] manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2: Requesting header
WARNING: Falling back on generic information extractor.
[generic] manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2: Downloading webpage
[generic] manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2: Extracting information
[info] Available formats for manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2:
format code







                                                                                                           extension  resolution note
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-aac_v1_96000     m4a
       audio only DASH audio   96k , mp4a.40.2
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_300000   mp4
       416x240    DASH video  300k , avc1.42c01e, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_480000   mp4
       640x360    DASH video  480k , avc1.42c01e, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_640000   mp4
       640x360    DASH video  640k , avc1.42c01e, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_896000   mp4
       640x360    DASH video  896k , avc1.42c01f, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_1280000  mp4
       640x360    DASH video 1280k , avc1.4d401f, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_1536000  mp4
       960x540    DASH video 1536k , avc1.42c01f, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_1856000  mp4
       960x540    DASH video 1856k , avc1.4d401f, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_2048000  mp4
       1280x720   DASH video 2048k , avc1.4d401f, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_3250000  mp4
       1280x720   DASH video 3250k , avc1.4d401f, video only
manifest.mpd?az={"_type":"authz_query"_"resource":"DISC"_"security_token":""_"expires":"1512304694"_"servertime":1512261494_"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"d335d0659bf53c1a"_"timestamp":"1512261494"_"version":"1"_"signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="}_"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1"_"jsig_block":{"nonce":"c67f28f4dbfb44c1"_"timestamp":"1512261492"_"version":"1"_"signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="}_"_type":"identity"_"identity":{"attributes":{"province":"AB"_"ais_comment":"powered_by_Akamai_AIS"_"postal_code":"T6L"_"urn:cablelabs:olca:1.0:attribute:authz:acctParentID":_"CuGBrUWvnE3pzVgQFmI4"__"urn:cablelabs:olca:1.0:attribute:authz:postalCode":_"T6L"__"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"}_"parental_control_limits":___"name_id":"CuGBrUWvnE3pzVgQFmI4"_"authn_info":"__'urn:oasis:names:tc:SAML:2-h264_v1_5500000  mp4
       1920x1080  DASH video 5500k , avc1.640029, video only (best)

-f bestvideo works fine to download the video. However, I am unable to download any other format. For example:

youtube-dl\youtube-dl.exe -f "best[height=720]" -v -o "video.%(ext)s" "http://capi.9c9media.com/destinations/discovery_web/platforms/desktop/contents/1240619/contentpackages/1735538/stacks/5239224/manifest.mpd?az=%7B%22_type%22%3A%22authz_query%22%2C%22resource%22%3A%22DISC%22%2C%22security_token%22%3A%22%22%2C%22expires%22%3A%221512304694%22%2C%22servertime%22%3A1512261494%2C%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22d335d0659bf53c1a%22%2C%22timestamp%22%3A%221512261494%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0%3D%22%7D%2C%22authorization%22%3Atrue%7D&ai=%7B%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22c67f28f4dbfb44c1%22%2C%22timestamp%22%3A%221512261492%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8%3D%22%7D%2C%22_type%22%3A%22identity%22%2C%22identity%22%3A%7B%22attributes%22%3A%7B%22province%22%3A%22AB%22%2C%22ais_comment%22%3A%22powered%20by%20Akamai%20AIS%22%2C%22postal_code%22%3A%22T6L%22%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3AacctParentID%22%3A%5B%22CuGBrUWvnE3pzVgQFmI4%22%5D%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3ApostalCode%22%3A%5B%22T6L%22%5D%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%2C%22parental_control_limits%22%3A%5B%5D%2C%22name_id%22%3A%22CuGBrUWvnE3pzVgQFmI4%22%2C%22authn_info%22%3A%22%5B(%27urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aac%3Aclasses%3Aunspecified%27%2C%20%5B%5D)%5D%22%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%7D&postalCode=T6L"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best[height=720]', '-v', '-o', 'video.%(ext)s', 'http://capi.9c9media.com/destinations/discovery_web/platforms/desktop/contents/1240619/contentpackages/1735538/stacks/5239224/manifest.mpd?az=%7B%22_type%22%3A%22authz_query%22%2C%22resource%22%3A%22DISC%22%2C%22security_token%22%3A%22%22%2C%22expires%22%3A%221512304694%22%2C%22servertime%22%3A1512261494%2C%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22d335d0659bf53c1a%22%2C%22timestamp%22%3A%221512261494%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0%3D%22%7D%2C%22authorization%22%3Atrue%7D&ai=%7B%22platform_id%22%3A%22urn%3Abellmedia%3Acom%3Asp%3Adiscovery%3Aprod%3A1%22%2C%22jsig_block%22%3A%7B%22nonce%22%3A%22c67f28f4dbfb44c1%22%2C%22timestamp%22%3A%221512261492%22%2C%22version%22%3A%221%22%2C%22signature%22%3A%22CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8%3D%22%7D%2C%22_type%22%3A%22identity%22%2C%22identity%22%3A%7B%22attributes%22%3A%7B%22province%22%3A%22AB%22%2C%22ais_comment%22%3A%22powered%20by%20Akamai%20AIS%22%2C%22postal_code%22%3A%22T6L%22%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3AacctParentID%22%3A%5B%22CuGBrUWvnE3pzVgQFmI4%22%5D%2C%22urn%3Acablelabs%3Aolca%3A1.0%3Aattribute%3Aauthz%3ApostalCode%22%3A%5B%22T6L%22%5D%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%2C%22parental_control_limits%22%3A%5B%5D%2C%22name_id%22%3A%22CuGBrUWvnE3pzVgQFmI4%22%2C%22authn_info%22%3A%22%5B(%27urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aac%3Aclasses%3Aunspecified%27%2C%20%5B%5D)%5D%22%2C%22aisuid%22%3A%22f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978%22%7D%7D&postalCode=T6L']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.12.02
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg n3.2.1
[debug] Proxy map: {}
[generic] manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2: Requesting header
WARNING: Falling back on generic information extractor.
[generic] manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2: Downloading webpage
[generic] manifest.mpd?az={"_type":"authz_query","resource":"DISC","security_token":"","expires":"1512304694","servertime":1512261494,"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"d335d0659bf53c1a","timestamp":"1512261494","version":"1","signature":"GiMV2XKNL1-fyM8Pj4Dnox51xgSsfKVY8n61rIFadF0="},"authorization":true}&ai={"platform_id":"urn:bellmedia:com:sp:discovery:prod:1","jsig_block":{"nonce":"c67f28f4dbfb44c1","timestamp":"1512261492","version":"1","signature":"CBONA9z6dsWegkyeRKx6IVo_TxDT1V16GDyBWGlDqH8="},"_type":"identity","identity":{"attributes":{"province":"AB","ais_comment":"powered by Akamai AIS","postal_code":"T6L","urn:cablelabs:olca:1.0:attribute:authz:acctParentID":["CuGBrUWvnE3pzVgQFmI4"],"urn:cablelabs:olca:1.0:attribute:authz:postalCode":["T6L"],"aisuid":"f92c217f8bc2a5436d03fc4589f78045f2516e301c873f005589002879c82978"},"parental_control_limits":[],"name_id":"CuGBrUWvnE3pzVgQFmI4","authn_info":"[('urn:oasis:names:tc:SAML:2: Extracting information
ERROR: requested format not available
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcuf0d0kb\build\youtube_dl\YoutubeDL.py", line 795, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcuf0d0kb\build\youtube_dl\YoutubeDL.py", line 849, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcuf0d0kb\build\youtube_dl\YoutubeDL.py", line 1612, in process_video_result
youtube_dl.utils.ExtractorError: requested format not available
...
<end of log>

The link to the manifest has an expiry of a couple hours but if credentials are required I can provide privately. Uploaded here for convenience. It looks like this (SegmentTimelines truncated for brevity):

<?xml version="1.0" encoding="utf-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:cenc="urn:mpeg:cenc:2013" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" minBufferTime="PT4S" mediaPresentationDuration="PT0H44M52.556S">
  <BaseURL>https://pe-ak-vp03a-9c9media.akamaized.net/playlist/1735538/31435122/dash/00000001/7c7ebeb1b34b6bd6/</BaseURL>
  <Period start="PT0S" duration="PT0H44M52.556S">
    <AdaptationSet contentType="video" segmentAlignment="true" startWithSAP="1">
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main">
      </Role>
      <SegmentTemplate timescale="30000" initialization="index/363f2b8c/none/none/stream/$RepresentationID$/init.mp4" media="index/363f2b8c/none/none/stream/$RepresentationID$/segment/$Time$.m4f">
        <SegmentTimeline>
          <S d="120120" r="149">
          </S>
        </SegmentTimeline>
      </SegmentTemplate>
      <Representation id="h264/v1/300000" codecs="avc1.42c01e" mimeType="video/mp4" width="416" height="240" bandwidth="300000">
      </Representation>
      <Representation id="h264/v1/480000" codecs="avc1.42c01e" mimeType="video/mp4" width="640" height="360" bandwidth="480000">
      </Representation>
      <Representation id="h264/v1/640000" codecs="avc1.42c01e" mimeType="video/mp4" width="640" height="360" bandwidth="640000">
      </Representation>
      <Representation id="h264/v1/896000" codecs="avc1.42c01f" mimeType="video/mp4" width="640" height="360" bandwidth="896000">
      </Representation>
      <Representation id="h264/v1/1280000" codecs="avc1.4d401f" mimeType="video/mp4" width="640" height="360" bandwidth="1280000">
      </Representation>
      <Representation id="h264/v1/1536000" codecs="avc1.42c01f" mimeType="video/mp4" width="960" height="540" bandwidth="1536000">
      </Representation>
      <Representation id="h264/v1/1856000" codecs="avc1.4d401f" mimeType="video/mp4" width="960" height="540" bandwidth="1856000">
      </Representation>
      <Representation id="h264/v1/2048000" codecs="avc1.4d401f" mimeType="video/mp4" width="1280" height="720" bandwidth="2048000">
      </Representation>
      <Representation id="h264/v1/3250000" codecs="avc1.4d401f" mimeType="video/mp4" width="1280" height="720" bandwidth="3250000">
      </Representation>
      <Representation id="h264/v1/5500000" codecs="avc1.640029" mimeType="video/mp4" width="1920" height="1080" bandwidth="5500000">
      </Representation>
    </AdaptationSet>
    <AdaptationSet contentType="audio" segmentAlignment="true" startWithSAP="1">
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main">
      </Role>
      <SegmentTemplate timescale="44100" initialization="index/363f2b8c/none/none/stream/$RepresentationID$/init.mp4" media="index/363f2b8c/none/none/stream/$RepresentationID$/segment/$Time$.m4f">
        <SegmentTimeline>
          <S d="176128">
          </S>
        </SegmentTimeline>
      </SegmentTemplate>
      <Representation id="aac/v1/96000" codecs="mp4a.40.2" mimeType="audio/mp4" bandwidth="96000">
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 3, 2017

There is no format satisfying best[height=720] selector that is clearly stated in the error message.

@dstftw dstftw closed this Dec 3, 2017
@dstftw dstftw added the invalid label Dec 3, 2017
@tyaremco
Copy link
Author

@tyaremco tyaremco commented Dec 3, 2017

I'm confused. The format listing clearly shows 1280x720 DASH video 3250k , avc1.4d401f, video only. Is this not best[height=720]?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 3, 2017

video only

best is video+audio format. Read FAQ on format selection.

@tyaremco
Copy link
Author

@tyaremco tyaremco commented Dec 3, 2017

Ah, I didn't see that; thanks. Does youtube-dl assume video+audio for -f "[vbr=3250]" or -f "h264_v1_3250000" as well? I get the same ERROR: requested format not available.

How can I choose 1280x720 DASH video 3250k , avc1.4d401f, video only, then?

@tyaremco
Copy link
Author

@tyaremco tyaremco commented Dec 3, 2017

-f "bestvideo[height=720]" acts the same as -f "bestvideo": it downloads a 1080p file.
-f "bestvideo[vbr=3250]" results in ERROR: requested format not available

Surely, that's not right...

@tyaremco
Copy link
Author

@tyaremco tyaremco commented Dec 3, 2017

The manifest still doesn't appear to be expired. Here's the link on the off chance it's not ip-resticted.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 3, 2017

{"ErrorCode":"403.72","Message":"Access denied. Geo Constraint Restrictions"}

@tyaremco
Copy link
Author

@tyaremco tyaremco commented Dec 3, 2017

Yeah, I figured. You might try a proxy or X-Forwarded-For with a Canadian IP.

Given what I've tried above, are those results expected?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 3, 2017

It should download 720. Most likely you did not remove old 1080 part file.

@tyaremco
Copy link
Author

@tyaremco tyaremco commented Dec 3, 2017

Thanks again! The inability to choose the vbr/format code must be a bug in this case, though? For example, it's impossible to choose the 640K or 896K versions because they are neither the best or worst of that resolution.

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.