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

stream frame size wrong detect #8337

Closed
ghost opened this issue Jan 27, 2016 · 4 comments
Closed

stream frame size wrong detect #8337

ghost opened this issue Jan 27, 2016 · 4 comments

Comments

@ghost
Copy link

@ghost ghost commented Jan 27, 2016

Some youtube servers sometimes for some videos by unknown reason publish wrong video properties. for example YT says it has FullHD 1920x1080 video resolution, allow to download the video stream, but actually stream has only 1600x800 resolution or 1920x800, this apply for mp4 stream, but for all stream formats. Is there a way to detect it correctly before downloading,
Example video which has 1920x1080 but downloading as 1920x800
https://www.youtube.com/watch?v=lfwjzNB--5k

Can someone explain that?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 28, 2016

For provided example URL there are three 1920x800 formats:

137          mp4        1920x800   1080p 4062k , avc1.640028, 30fps, video only, 37.71MiB
303          webm       1920x800   DASH video 4723k , vp9, 60fps, video only, 43.23MiB
299          mp4        1920x800   DASH video 5510k , avc1.64002a, 60fps, video only, 64.98MiB

that all downloads as 1920x800 each, so you are wrong:

    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 65 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 1920x800, SAR 1:1 DAR 12:5, 59.94 fps, 59.94 tbr, 1k tbn, 1k tbc (default)
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 107 kb/s, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc (default)
@dstftw dstftw closed this Jan 28, 2016
@ghost
Copy link
Author

@ghost ghost commented Jan 28, 2016

C:\>youtube-dl.exe -v -F https://www.youtube.com/watch?v=lfwjzNB--5k
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-F', u'https://www.youtube.com/watch?v=lfwjzNB--5k']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2016.01.01
[debug] Python version 2.7.10 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg N-78067-g9079e99, ffprobe N-78067-g9079e99
[debug] Proxy map: {}
[youtube] lfwjzNB--5k: Downloading webpage
[youtube] lfwjzNB--5k: Downloading video info webpage
[youtube] lfwjzNB--5k: Extracting video information
[youtube] lfwjzNB--5k: Downloading DASH manifest
[youtube] lfwjzNB--5k: Downloading DASH manifest
[info] Available formats for lfwjzNB--5k:
format code  extension  resolution note
249          webm       audio only DASH audio   52k , opus @ 50k, 900.07KiB
250          webm       audio only DASH audio   68k , opus @ 70k, 1.12MiB
171          webm       audio only DASH audio  123k , vorbis@128k (44100Hz), 2.05MiB
140          m4a        audio only DASH audio  129k , m4a_dash container, aac  @128k (44100Hz), 2.31MiB
251          webm       audio only DASH audio  163k , opus @160k, 2.76MiB
141          m4a        audio only DASH audio  256k , m4a_dash container, aac  @256k (44100Hz), 4.58MiB
160          mp4        256x106    DASH video  110k , avc1.4d400c, 15fps, video only, 1.96MiB
278          webm       256x106    DASH video  133k , webm container, vp9, 15fps, video only, 1.47MiB
242          webm       426x178    DASH video  221k , vp9, 30fps, video only, 2.54MiB
133          mp4        426x178    DASH video  247k , avc1.4d400d, 30fps, video only, 4.39MiB
243          webm       640x266    DASH video  391k , vp9, 30fps, video only, 4.44MiB
134          mp4        640x266    DASH video  604k , avc1.4d401e, 30fps, video only, 5.54MiB
244          webm       854x356    DASH video  834k , vp9, 30fps, video only, 8.28MiB
135          mp4        854x356    DASH video 1117k , avc1.4d401e, 30fps, video only, 11.30MiB
136          mp4        1280x720   DASH video 2228k , avc1.4d401f, 30fps, video only, 21.14MiB
302          webm       1280x534   DASH video 2828k , vp9, 60fps, video only, 24.84MiB
298          mp4        1280x534   DASH video 3309k , h264, 60fps, video only, 37.24MiB
137          mp4        1920x1080  DASH video 4062k , avc1.640028, 30fps, video only, 37.71MiB
303          webm       1920x800   DASH video 4723k , vp9, 60fps, video only, 43.23MiB
299          mp4        1920x800   DASH video 5510k , h264, 60fps, video only, 64.98MiB
17           3gp        176x144    small ,  mp4a.40.2, mp4v.20.3
36           3gp        320x240    small ,  mp4a.40.2, mp4v.20.3
5            flv        400x240    small
43           webm       640x360    medium ,  vorbis, vp8.0
18           mp4        640x360    medium ,  mp4a.40.2, avc1.42001E
22           mp4        1280x720   hd720 ,  mp4a.40.2, avc1.64001F (best) 

137 for me is Y Axis is 1080
Also tried with
youtube-dl.exe -f 137+141 https://www.youtube.com/watch?v=lfwjzNB--5k

But always my frame size of downloaded movie is 1920x800

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 28, 2016

You are using an outdated version of youtube-dl. Read our FAQ if you have troubles updating.

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.