Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Can't do anything with Reddit via this. #325

Open
vlakam opened this issue Aug 23, 2020 · 0 comments
Open

Can't do anything with Reddit via this. #325

vlakam opened this issue Aug 23, 2020 · 0 comments

Comments

@vlakam
Copy link

vlakam commented Aug 23, 2020

The issue that youtube-dl can't do "best" with reddit, but when you do change format to "bestvideo-bestaudio" there is no .url field in the answer, but many urls via available_formats. So you can't do much.

Attaching example of problematic dump-json
youtube-dl.exe -f "bestvideo+bestaudio" --dump-json https://www.reddit.com/r/ghostoftsushima/comments/hwl6br/how_can_people_rush_through_this_game_so/ {"upload_date": "20200723", "requested_formats": [{"container": "mp4_dash", "format": "dash-video_2405100 - 1280x720 (DASH video)", "acodec": "none", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "ext": "mp4", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us,en;q=0.5", "Accept-Encoding": "gzip, deflate", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "height": 720, "protocol": "https", "fps": 30, "vcodec": "avc1.4D401F", "filesize": null, "format_note": "DASH video", "url": "https://v.redd.it/34bcchkwhnc51/DASH_720.mp4", "asr": null, "tbr": 2405.1, "format_id": "dash-video_2405100", "width": 1280}, {"container": "m4a_dash", "format": "dash-audio_0_132384 - audio only (DASH audio)", "acodec": "mp4a.40.2", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "ext": "m4a", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us,en;q=0.5", "Accept-Encoding": "gzip, deflate", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "height": null, "protocol": "https", "fps": null, "vcodec": "none", "filesize": null, "format_note": "DASH audio", "url": "https://v.redd.it/34bcchkwhnc51/DASH_audio.mp4", "asr": 48000, "tbr": 132.384, "format_id": "dash-audio_0_132384", "width": null}], "requested_subtitles": null, "width": 1280, "vbr": null, "thumbnail": "https://b.thumbs.redditmedia.com/REKJiNipZzkR91ggKROC9GqHo9bvol_OLFXXCGTZtiw.jpg", "stretched_ratio": null, "id": "34bcchkwhnc51", "ext": "mp4", "webpage_url": "https://www.reddit.com/r/ghostoftsushima/comments/hwl6br/how_can_people_rush_through_this_game_so/", "fulltitle": "How can people rush through this game? So beautiful, even Keanu Reeves would have his breath taken away.", "extractor": "Reddit", "format": "dash-video_2405100 - 1280x720 (DASH video)+dash-audio_0_132384 - audio only (DASH audio)", "dislike_count": 0, "age_limit": 0, "uploader": "tiny__films", "webpage_url_basename": "how_can_people_rush_through_this_game_so", "title": "How can people rush through this game? So beautiful, even Keanu Reeves would have his breath taken away.", "resolution": null, "abr": null, "display_id": "34bcchkwhnc51", "vcodec": "avc1.4D401F", "playlist_index": null, "like_count": 261, "_filename": "How can people rush through this game So beautiful, even Keanu Reeves would have his breath taken away.-34bcchkwhnc51.mp4", "fps": 30, "timestamp": 1595529193.0, "formats": [{"format": "hls-0-audio_0 - audio only", "vcodec": "none", "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "language": null, "url": "https://v.redd.it/34bcchkwhnc51/HLS_AUDIO_64_K.m3u8", "protocol": "m3u8_native", "format_id": "hls-0-audio_0", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}}, {"format": "hls-1-audio_1 - audio only", "vcodec": "none", "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "language": null, "url": "https://v.redd.it/34bcchkwhnc51/HLS_AUDIO_160_K.m3u8", "protocol": "m3u8_native", "format_id": "hls-1-audio_1", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}}, {"container": "m4a_dash", "format": "dash-audio_0_132384 - audio only (DASH audio)", "asr": 48000, "ext": "m4a", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "tbr": 132.384, "protocol": "https", "fps": null, "vcodec": "none", "filesize": null, "format_note": "DASH audio", "url": "https://v.redd.it/34bcchkwhnc51/DASH_audio.mp4", "acodec": "mp4a.40.2", "height": null, "format_id": "dash-audio_0_132384", "width": null}, {"container": "mp4_dash", "format": "dash-video_93458 - 170x96 (DASH video)", "asr": null, "ext": "mp4", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "tbr": 93.458, "protocol": "https", "fps": 30, "vcodec": "avc1.4D400D", "filesize": null, "format_note": "DASH video", "url": "https://v.redd.it/34bcchkwhnc51/DASH_96.mp4", "acodec": "none", "height": 96, "format_id": "dash-video_93458", "width": 170}, {"format": "hls-356 - 400x226", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 356.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.42001e", "url": "https://v.redd.it/34bcchkwhnc51/HLS_224.m3u8", "acodec": "none", "height": 226, "format_id": "hls-356", "width": 400}, {"format": "hls-453 - 400x226", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 453.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.42001e", "url": "https://v.redd.it/34bcchkwhnc51/HLS_224.m3u8", "acodec": "none", "height": 226, "format_id": "hls-453", "width": 400}, {"format": "hls-562 - 480x270", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 562.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.42001e", "url": "https://v.redd.it/34bcchkwhnc51/HLS_270.m3u8", "acodec": "none", "height": 270, "format_id": "hls-562", "width": 480}, {"container": "mp4_dash", "format": "dash-video_604032 - 426x240 (DASH video)", "asr": null, "ext": "mp4", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "tbr": 604.032, "protocol": "https", "fps": 30, "vcodec": "avc1.4D401E", "filesize": null, "format_note": "DASH video", "url": "https://v.redd.it/34bcchkwhnc51/DASH_240.mp4", "acodec": "none", "height": 240, "format_id": "dash-video_604032", "width": 426}, {"format": "hls-659 - 480x270", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 659.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.42001e", "url": "https://v.redd.it/34bcchkwhnc51/HLS_270.m3u8", "acodec": "none", "height": 270, "format_id": "hls-659", "width": 480}, {"container": "mp4_dash", "format": "dash-video_804739 - 640x360 (DASH video)", "asr": null, "ext": "mp4", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "tbr": 804.739, "protocol": "https", "fps": 30, "vcodec": "avc1.4D401E", "filesize": null, "format_note": "DASH video", "url": "https://v.redd.it/34bcchkwhnc51/DASH_360.mp4", "acodec": "none", "height": 360, "format_id": "dash-video_804739", "width": 640}, {"format": "hls-975 - 640x360", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 975.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.4d001e", "url": "https://v.redd.it/34bcchkwhnc51/HLS_360.m3u8", "acodec": "none", "height": 360, "format_id": "hls-975", "width": 640}, {"format": "hls-1072 - 640x360", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 1072.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.4d001e", "url": "https://v.redd.it/34bcchkwhnc51/HLS_360.m3u8", "acodec": "none", "height": 360, "format_id": "hls-1072", "width": 640}, {"container": "mp4_dash", "format": "dash-video_1205862 - 854x480 (DASH video)", "asr": null, "ext": "mp4", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "tbr": 1205.862, "protocol": "https", "fps": 30, "vcodec": "avc1.4D401F", "filesize": null, "format_note": "DASH video", "url": "https://v.redd.it/34bcchkwhnc51/DASH_480.mp4", "acodec": "none", "height": 480, "format_id": "dash-video_1205862", "width": 854}, {"format": "hls-1491 - 960x540", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 1491.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.4d001f", "url": "https://v.redd.it/34bcchkwhnc51/HLS_540.m3u8", "acodec": "none", "height": 540, "format_id": "hls-1491", "width": 960}, {"format": "hls-1588 - 960x540", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "manifest_url": "https://v.redd.it/34bcchkwhnc51/HLSPlaylist.m3u8", "ext": "mp4", "preference": null, "tbr": 1588.0, "protocol": "m3u8_native", "fps": null, "vcodec": "avc1.4d001f", "url": "https://v.redd.it/34bcchkwhnc51/HLS_540.m3u8", "acodec": "none", "height": 540, "format_id": "hls-1588", "width": 960}, {"container": "mp4_dash", "format": "dash-video_2405100 - 1280x720 (DASH video)", "asr": null, "ext": "mp4", "manifest_url": "https://v.redd.it/34bcchkwhnc51/DASHPlaylist.mpd", "http_headers": {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.90 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-us,en;q=0.5", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, "language": null, "tbr": 2405.1, "protocol": "https", "fps": 30, "vcodec": "avc1.4D401F", "filesize": null, "format_note": "DASH video", "url": "https://v.redd.it/34bcchkwhnc51/DASH_720.mp4", "acodec": "none", "height": 720, "format_id": "dash-video_2405100", "width": 1280}], "playlist": null, "extractor_key": "Reddit", "thumbnails": [{"id": "0", "url": "https://b.thumbs.redditmedia.com/REKJiNipZzkR91ggKROC9GqHo9bvol_OLFXXCGTZtiw.jpg"}], "comment_count": 31, "acodec": "mp4a.40.2", "height": 720, "format_id": "dash-video_2405100+dash-audio_0_132384"}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant