HoloArchivists/twspace-dl

Decoding error in ffmpeg when starting to download space

Opened this issue · 3 comments

Describe the bug
When I start downloading a space, ffmpeg gives me a decoding error when reading a file in "m3u8" format.

To Reproduce
The commands used are as follows.
twspace_dl -i <space url> -c <cookie file>
If you do so, the following error message will appear a short time later.

Format aac detected only with low score of 25, misdetection possible!
[aac @ 0000028453887fc0] Error decoding AAC frame header.
[aac @ 0000028453887fc0] Number of scalefactor bands in group (46) exceeds limit (41).
[aac @ 0000028453887fc0] channel element 2.13 is not allocated
[aac_adtstoasc @ 0000028453847c80] Error parsing ADTS frame header!
[ipod @ 0000028453856780] Error applying bitstream filters to an output packet for stream #0: Invalid data found when processing input
[aost#0:0/copy @ 0000028453a70240] Error submitting a packet to the muxer: Invalid data found when processing input
    Last message repeated 1 times
[out#0/ipod @ 0000028451a2d4c0] Error muxing a packet
[out#0/ipod @ 0000028451a2d4c0] Task finished with error code: -1094995529 (Invalid data found when processing input)
[out#0/ipod @ 0000028451a2d4c0] Terminating thread with return code -1094995529 (Invalid data found when processing input)
size=       0kB time=00:00:00.04 bitrate=  96.0kbits/s speed=  19x
Error: ffmpeg -protocol_whitelist file,https,httpproxy,tls,tcp -y -stats -v warning -i C:\Users\xxxxx\Downloads\tmprqch_qpr\(xxxxxxxxxxxxxxxx)-1OdJrjQnNZlJX.m3u8 -c copy -metadata title=xxxxxxxxxxxxxxxxxx -metadata artist=xxxxxxxxxxxxxxxxx -metadata episode_id=1OdJrjQnNZlJX C:\Users\xxxxxx\Downloads\tmprqch_qpr\xxxxxxxxxxxxxxxxxxx-1OdJrjQnNZlJX.m4a
This might be a temporary error, retry in a few minutes
Retry with -v to see more details

The odd thing is that we sometimes encounter spaces where this error occurs.
It is unlikely that the stream data delivered by X is corrupt, but it seems to be making errors in reading the file headers.
Is this a problem with ffmpeg?

Desktop (please complete the following information):

  • OS: Windows 11 Pro and Ubuntu 22.04
  • Version 2023.7.24.1
  • Python 3.12.1
  • pip 23.3.2
  • ffmpeg ( Windows 11 Pro ) version N-113348-g0a5813fc68-20240119
  • ffmpeg ( Ubuntu 22.04 ) version 4.4.2-0ubuntu0.22.04.1

Hi
I am facing this error while downloaoding spaces
I tried different ffmpeg versions and none of them worked

Honestly, I should archive this project and redirect people to other solutions. I don't really have any interest in it anymore.
You can try https://github.com/HoloArchivists/TwcLazer or https://github.com/HitomaruKonpaku/twspace-crawler if those aren't affected by this bug

Understood. We will try the alternative library you referred us to. Thank you very much for your development so far.