zeroone2numeral2 / reddit-test

3 stars 1 forks source link

Some v.reddit that are not GIFs don't actually have audios #91

Closed RememberTheAir closed 5 years ago

RememberTheAir commented 5 years ago

Example submission: cwhi1q (url)

Returned media by the submission:

'media',
              {'reddit_video': {'dash_url': 'https://v.redd.it/18kgopmv75j31/DASHPlaylist.mpd',
                                'duration': 25,
                                'fallback_url': 'https://v.redd.it/18kgopmv75j31/DASH_480?source=fallback',
                                'height': 480,
                                'hls_url': 'https://v.redd.it/18kgopmv75j31/HLSPlaylist.m3u8',
                                'is_gif': False,
                                'scrubber_media_url': 'https://v.redd.it/18kgopmv75j31/DASH_96',
                                'transcoding_status': 'completed',
                                'width': 480}}

Apparently the media has no audio even if is_gif is False.

When we try to download the audio (https://v.redd.it/18kgopmv75j31/audio), we are actually downloading a webpage that returns an error, therefore ffmpeg can't use it in the merge