Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding error in ffmpeg when starting to download space #107

Open
ryusei-48 opened this issue Jan 20, 2024 · 3 comments
Open

Decoding error in ffmpeg when starting to download space #107

ryusei-48 opened this issue Jan 20, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ryusei-48
Copy link

ryusei-48 commented Jan 20, 2024

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
@ryusei-48 ryusei-48 added the bug Something isn't working label Jan 20, 2024
@alimirjahani7
Copy link

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

@Ryu1845
Copy link
Collaborator

Ryu1845 commented Jan 23, 2024

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

@ryusei-48
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants