PipePipe icon indicating copy to clipboard operation
PipePipe copied to clipboard

[Bug] M4A downloads fail for post-live streams

Open offshade opened this issue 3 months ago • 6 comments

Checklist

  • [x] I make sure that the issue is NOT a duplicate of pinned issues
  • [x] I make sure I am using the LATEST version - check here
  • [x] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • [ ] I have attached the error report in the issue

Describe the bug

m4a Audio Downloads return error or empty downloaded files. The only downloads that are working are the opus ones, when available. In NewPipe the same Youtube videos return a "file not available".

Version

5.3.0 beta 1

Frequency

Always (100% of the time)

Device

Samsung Galaxy A36, Android 14

Steps to reproduce the bug

Download audio

Additional context

No response

offshade avatar Aug 19 '26 17:08 offshade

which video? what endpoint are you using? visionOS or mweb?

InfinityLoop1308 avatar Aug 19 '26 22:08 InfinityLoop1308

Youtube audio from finished live feeds from subscribed channels on my Android phone. I don't know about visionOS or mweb.

offshade avatar Aug 20 '26 14:08 offshade

which video? what endpoint are you using? visionOS or mweb?

These are the options that are provided in a live stream that ended half an hour ago, and all of them result in errors or empty files. In NewPipe the same video returns "no streams available to download". Most likely the video is not ready to have its audio downloaded, therefore PipePipe shouldn't offer those m4a options that are non working. Only when an opus otpion is provided is the audio downloadable.

Image

offshade avatar Aug 20 '26 23:08 offshade

I am also getting this failure here is the error report

{"user_action":"download failed","request":"https://www.youtube.com/watch?v=3gQ4kQ2vMOY [ {type=video format=WebM quality=720p videoOnly=true} ]","content_language":"en-US","content_country":"US","app_language":"en_US","service":"YouTube","endpoint":"visionos","package":"InfinityLoop1309.NewPipeEnhanced","version":"5.2.5","os":"Linux Android 16 - 36","time":"2026-08-21 20:47","exceptions":["java.lang.IllegalArgumentException: Negative size\n\tat sun.nio.ch.FileChannelImpl.truncate(FileChannelImpl.java:379)\n\tat us.shandian.giga.io.FileStreamSAF.setLength(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:3)\n\tat us.shandian.giga.get.DownloadInitializer.run(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:416)\n"],"user_comment":""}

Seems to just fully affect the content in general as I cannot watch it either. The video plays back fine, but there's no audio.

lordkitsuna avatar Aug 22 '26 03:08 lordkitsuna

Additional Context: Post-live stream audio playback failure in PipePipe

I noticed a similar issue in PipePipe when trying to play a recently ended live stream.

Environment

  • App: PipePipe
  • Format selected: VP9 360p
  • Condition: Immediately after a YouTube live stream ended

Behavior Observed

  • PipePipe plays the video with no audio at all.
  • The playback fails silently (no error pop-up or warning message is displayed).

Comparison with NewPipe

  • In NewPipe, selecting MPEG-4 360p on the same video works without any issues because it uses a legacy stream format that includes pre-mixed audio.

Version

  • PipePipe 5.3.0

Why this is likely related

Since VP9 360p is a video-only stream, PipePipe needs to download and merge a separate audio track (like M4A) on the fly. Because YouTube hasn't finished processing post-live audio formats yet, the audio stream fails to load, and PipePipe drops the audio track silently instead of alerting the user or falling back to a working format.


If needed, I can open a separate issue for this, but these problems appear to share the same root cause. Fixing one may resolve or help address the other.

full-kiss-decoder avatar Aug 27 '26 19:08 full-kiss-decoder

Additional Context: Post-live stream audio playback failure in PipePipe

I noticed a similar issue in PipePipe when trying to play a recently ended live stream.

Environment

  • App: PipePipe
  • Format selected: VP9 360p
  • Condition: Immediately after a YouTube live stream ended

Behavior Observed

  • PipePipe plays the video with no audio at all.
  • The playback fails silently (no error pop-up or warning message is displayed).

Comparison with NewPipe

  • In NewPipe, selecting MPEG-4 360p on the same video works without any issues because it uses a legacy stream format that includes pre-mixed audio.

Version

  • PipePipe 5.3.0

Why this is likely related

Since VP9 360p is a video-only stream, PipePipe needs to download and merge a separate audio track (like M4A) on the fly. Because YouTube hasn't finished processing post-live audio formats yet, the audio stream fails to load, and PipePipe drops the audio track silently instead of alerting the user or falling back to a working format.

If needed, I can open a separate issue for this, but these problems appear to share the same root cause. Fixing one may resolve or help address the other.

Yes, happens to me as well.

offshade avatar Aug 31 '26 12:08 offshade