]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Extract framerate from the dash manifest
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 1 Dec 2014 16:35:03 +0000 (17:35 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 1 Dec 2014 16:36:12 +0000 (17:36 +0100)
Not all videos have 60 fps, for example they can have 48 fps.

youtube_dl/extractor/youtube.py

index 2642ecfffbadeff3c7c184d52bf119328d5bbf60..1cba40387a0aae4a8f3913c78ddacc0f73b2e367 100644 (file)
@@ -971,6 +971,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
                         'tbr': int_or_none(r.attrib.get('bandwidth'), 1000),
                         'asr': int_or_none(r.attrib.get('audioSamplingRate')),
                         'filesize': filesize,
+                        'fps': int_or_none(r.attrib.get('frameRate')),
                     }
                     try:
                         existing_format = next(