Browse Source

[youtube] Extract framerate from the dash manifest

Not all videos have 60 fps, for example they can have 48 fps.
Jaime Marquínez Ferrándiz 11 năm trước cách đây
mục cha
commit
c41a9650c3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      youtube_dl/extractor/youtube.py

+ 1 - 0
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(