aajanki / yle-dl

Download videos from Yle servers
https://aajanki.github.io/yle-dl/index-en.html
GNU General Public License v3.0
302 stars 52 forks source link

Download problem: The Red Ring #301

Closed ExTechOp closed 2 years ago

ExTechOp commented 2 years ago

Attempt to download this single video fails:

% yle-dl -o 'The_RedRing(2021).mp4' -V https://areena.yle.fi/1-62097672 yle-dl 20220213: Download media files from Yle Areena and Elävä Arkisto Copyright (C) 2009-2022 Antti Ajanki antti.ajanki@iki.fi, license: GPLv3 ... [hls @ 0x562381f387c0] Could not find codec parameters for stream 5 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (80000000) options [mp4 @ 0x562382b921c0] dimensions not set Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:4 --

Here's the complete log file: yle-dl.txt

aajanki commented 2 years ago

Can you try it again now? I was able to download it when I just tried.

Thanks for the log! One strange thing that sticks out in it is that the stream type is a live stream. Do you know if you were downloading the program while it was being broadcast in TV (or right after or right before the broadcast time)? If I test it now, the stream gets downloaded as a non-live stream, as I would expect.

It could be that the live stream thing is not related to the codec error, because yle-dl should be able to handle live streams, too.

I'm not able to reproduce this error which makes this difficult to debug. I'll continue testing on programs that are currently being broadcast to better understand if the live status is somehow causing this.

ExTechOp commented 2 years ago

The stream still being sent "live" is certainly a possibility (though I think I tried it right after the movie had ended), since now loading worked normally. I just had a hard time understanding the error messages at this point.

aajanki commented 2 years ago

There is something strange going on, but I can't yet say if it's yle-dl doing something wrong or Areena serving a corrupted stream.

I will at least add a better error message once I understand the issue better.