From: Jaime Marquínez Ferrándiz Date: Mon, 1 Dec 2014 16:35:03 +0000 (+0100) Subject: [youtube] Extract framerate from the dash manifest X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c41a9650c3b8c5430cd21661d668ac9fb346e397;p=youtube-dl [youtube] Extract framerate from the dash manifest Not all videos have 60 fps, for example they can have 48 fps. --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 2642ecfff..1cba40387 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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(