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

Apple Trailers not getting the video url sometimes #8524

Closed
Peterede opened this issue Feb 12, 2016 · 10 comments
Closed

Apple Trailers not getting the video url sometimes #8524

Peterede opened this issue Feb 12, 2016 · 10 comments

Comments

@Peterede
Copy link

@Peterede Peterede commented Feb 12, 2016

yan12125 added a commit that referenced this issue Feb 20, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 20, 2016

Such URLs will be recognized in the next version. However, youtube-dl is currently broken for Apple trailers. See #8422 for more information. I leave this ticket open until #8422 is resolved.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 10, 2016

It's working now - Apple trailers are fixed.

@yan12125 yan12125 closed this Sep 10, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 4, 2017

@teebu Sorry, what do you mean?

@teebu
Copy link

@teebu teebu commented Nov 4, 2017

when i try to dump json on that m3u8, it doesnt have the url field in the info. compared to a youtube url. i'm pretty sure it used to have one a while ago, but now im getting errors in my code.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 4, 2017

This m3u8 uses video-only and audio-only formats, so there's no single url. You can check urls from the requested_formats field.

@teebu
Copy link

@teebu teebu commented Nov 4, 2017

So what you're saying:

youtube-dl.exe -F  http://apptrailers.itunes.apple.com/apple-assets-us-std-000001/PurpleVideo118/v4/63/d0/34/63d034c5-b681-1227-6c14-951c8ebdd999/P49537982_default.m3u8

youtube-dl.exe -j -f 3371  http://apptrailers.itunes.apple.com/apple-assets-us-std-000001/PurpleVideo118/v4/63/d0/34/63d034c5-b681-1227-6c14-951c8ebdd999/P49537982_default.m3u8

But when I try to do:

youtube-dl.exe -j -f best  http://apptrailers.itunes.apple.com/apple-assets-us-std-000001/PurpleVideo118/v4/63/d0/34/63d034c5-b681-1227-6c14-951c8ebdd999/P49537982_default.m3u8
ERROR: requested format not available
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 4, 2017

best means the best video+audio format, while there are only video-only and audio-only formats in this m3u8.

@teebu
Copy link

@teebu teebu commented Nov 4, 2017

How do I auto select best? It looks like that 3371 mp4 also has audio in it.

-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4'

is this a good option? should i add /best to the end?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 4, 2017

How do I auto select best?

Using mp4 as a fallback does not always work. Not every video has a format called "mp4". (A format called mp4 != a format with file extension mp4) You can use -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'. If you don't care about file extensions, you can use -f bestvideo+bestaudio/best. Note that bestvideo+bestaudio/best is the current default.

It looks like that 3371 mp4 also has audio in it.

No, format 3371 has only one video stream.

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
3 participants
You can’t perform that action at this time.