PipePipe icon indicating copy to clipboard operation
PipePipe copied to clipboard

[Bug] Buffering Issues with AVC1 Videos

Open Priveetee opened this issue 9 months ago • 5 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
  • [x] I have attached the error report in the issue

Describe the bug

Hello!

Since version 4.7.0, I started to have some weird buffering issues when playing AVC1 videos... But with AV01, no problem at all!

I have a Google Pixel 8, running Graphene OS, with no Google Play Services at all. Unfortunately, I can't share logs or other details since it's not a crash.

This happens to me with any video it can be a 4-minute long video or a 4-hour one; there's no difference. The video starts playing fine for 30 seconds, and then BAM ! A big lag with buffering for 3 to 5 seconds. The audio doesn't desynchronize, and then the video goes back to normal, and it happens again and again.

There's a link to a video where you can see it for yourself :)

Video

Have a great day!

(Sorry, @tjdevries , that you are in the example here 😂😭)

Frequency

Always (100% of the time)

Device

Google Pixel 8 on Graphene OS

Steps to reproduce the bug

Select an AVC1 Video:

  • Choose any AVC1 video file to play. It can be up to 4 hours long, or a shorter 4-minute segment.

Start Playback:

  • Play the selected AVC1 video.

Observe Initial Playback:

  • Notice the video plays smoothly for approximately 30 seconds.

Wait for Buffering:

  • After the initial playback, observe for a significant pause or lag with buffering lasting 3 to 5 seconds.

Additional context

No response

Priveetee avatar Mar 03 '26 05:03 Priveetee

see if this nightly version helps: https://github.com/InfinityLoop1308/PipePipe/actions/runs/22710871773

InfinityLoop1308 avatar Mar 05 '26 09:03 InfinityLoop1308

see if this nightly version helps: https://github.com/InfinityLoop1308/PipePipe/actions/runs/22710871773 Hello @InfinityLoop1308, I hope you're doing well :)

I tested the Nightly build and, honestly, I'm sorry to say that the issue isn't fixed. I also have more issues to report 😢

The bug still occurs here. Here is a link to a demonstration, but now it sometimes takes a little longer to happen:

Buffering

Now, a UI bug:

UI

The crash log :

Crash Log

{"user_action":"ui error","request":"ACRA report","content_language":"fr","content_country":"FR","app_language":"fr","service":"none","package":"InfinityLoop1309.NewPipeEnhanced.debug","version":"4.8.0","os":"Linux Android 16 - 36","time":"2026-03-06 04:54","exceptions":["java.lang.IllegalArgumentException: Cannot set 'scaleX' to Float.NaN\n\tat android.view.View.sanitizeFloatPropertyValue(View.java:20188)\n\tat android.view.View.sanitizeFloatPropertyValue(View.java:20162)\n\tat android.view.View.setScaleX(View.java:19527)\n\tat org.schabi.newpipe.views.ExpandableSurfaceView.onLayout(ExpandableSurfaceView.java:73)\n\tat android.view.View.layout(View.java:25822)\n\tat android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat com.google.android.material.appbar.CollapsingToolbarLayout.onLayout(CollapsingToolbarLayout.java:587)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)\n\tat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)\n\tat android.widget.LinearLayout.onLayout(LinearLayout.java:1638)\n\tat com.google.android.material.appbar.AppBarLayout.onLayout(AppBarLayout.java:484)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1213)\n\tat androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:899)\n\tat com.google.android.material.appbar.ViewOffsetBehavior.layoutChild(ViewOffsetBehavior.java:66)\n\tat com.google.android.material.appbar.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:43)\n\tat com.google.android.material.appbar.AppBarLayout$BaseBehavior.onLayoutChild(AppBarLayout.java:1630)\n\tat com.google.android.material.appbar.AppBarLayout$Behavior.onLayoutChild(AppBarLayout.java:1305)\n\tat com.google.android.material.appbar.AppBarLayout$BaseBehavior.onLayoutChild(AppBarLayout.java:1324)\n\tat androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:918)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1213)\n\tat androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:899)\n\tat com.google.android.material.bottomsheet.BottomSheetBehavior.onLayoutChild(BottomSheetBehavior.java:519)\n\tat androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:918)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat androidx.drawerlayout.widget.DrawerLayout.onLayout(DrawerLayout.java:1263)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)\n\tat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)\n\tat android.widget.LinearLayout.onLayout(LinearLayout.java:1638)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)\n\tat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)\n\tat android.widget.LinearLayout.onLayout(LinearLayout.java:1638)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)\n\tat android.widget.FrameLayout.onLayout(FrameLayout.java:270)\n\tat com.android.internal.policy.DecorView.onLayout(DecorView.java:797)\n\tat android.view.View.layout(View.java:25822)\n\tat android.view.ViewGroup.layout(ViewGroup.java:6457)\n\tat android.view.ViewRootImpl.performLayout(ViewRootImpl.java:5164)\n\tat android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4293)\n\tat android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:3127)\n\tat android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10807)\n\tat android.view.Choreographer$CallbackRecord.run(Choreographer.java:1630)\n\tat android.view.Choreographer$CallbackRecord.run(Choreographer.java:1639)\n\tat android.view.Choreographer.doCallbacks(Choreographer.java:1235)\n\tat android.view.Choreographer.doFrame(Choreographer.java:1164)\n\tat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1613)\n\tat android.os.Handler.handleCallback(Handler.java:1070)\n\tat android.os.Handler.dispatchMessage(Handler.java:125)\n\tat android.os.Looper.dispatchMessage(Looper.java:333)\n\tat android.os.Looper.loopOnce(Looper.java:263)\n\tat android.os.Looper.loop(Looper.java:367)\n\tat android.app.ActivityThread.main(ActivityThread.java:9331)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)\n"],"user_comment":""}

Then another bug: the video is age-restricted, but instead of showing that properly, it gives me an IP ban error, which is not the case:

Age

There is also a crash: when I'm watching an AVC1 video and switch to an AV01 video, the app crashes. I think it may be related to the UI crash.

I'm sorry to report so many issues. If you want, I can split them into different issues so it's not too overwhelming. Feel free to ask me for any additional details.

Thanks a lot, and have a great day!

Priveetee avatar Mar 06 '26 09:03 Priveetee

Crash

Seems upgrading exoplayer to 2.19.1 doesn't help the situation. I have reverted the change so the crash shouldn't exist anymore.

the video is age-restricted, but instead of showing that properly, it gives me an IP ban error, which is not the case:

this is #2077 , fixed

InfinityLoop1308 avatar Mar 07 '26 02:03 InfinityLoop1308

Still can't reproduce it and can't find a way to fix it. In 4.8.1 I have made the player prefer advanced formats so you can just always use vp9/av1 as a workaround.

I'll close the issue and #2085 for now and further discussion can go to #2045

InfinityLoop1308 avatar Mar 07 '26 02:03 InfinityLoop1308

Noted thanks a lot for ur hard work !!!

Priveetee avatar Mar 07 '26 05:03 Priveetee