-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
AudioTrack init failed #10802
Comments
If I configure NewPipe to play video and audio in an external player (VLC), then static videos play fine at 720p and lower, but no audio in 1080p videos. It also can't play "live" videos in this configuration, it says VLC is not found and offers to install it. Tried reinstalling VLC from Google Play and F-Droid, but it made no difference. |
Try restarting? |
Yes. Tried restarting the box and reinstalling NewPipe from different sources. |
And a lower resolution/codec combo? |
I tried changing the video/audio settings, from defaults to the following:
I get the same error. Any other settings worth tinkering with? |
Never heard of this device before, so you should also test on a different device. Might be an OS/device bug. |
Ugoos has been around for a decade or two, developing Android TV boxes. Ugoos AM8 is one of the latest boxes that was launched in 2023 with Android 11.0 and Amlogic S928X-J, which outperforms most Android boxes in existence today. The official list of supported codecs/formats is quite extensive:
I also have a couple of old boxes MINIX U22 (Android 9.0) where NewPipe is working fine. All other apps work fine on Ugoos AM8, including video playback of various formats and in 4K, even on YouTube. But NewPipe is not playing anything. Is it possible that NewPipe is not using the Android API correctly? If you believe it is a device/OS issue, can you give me any more details, so I could report this issue to Ugoos? |
Well, the easiest way to rule this out would be to test another device first, with the exact same settings as you currently have. |
I don't have another such box at hand, but I will try to get the manufacturer to try it. However, the fact that all other video/audio apps work without issues suggests that it might be an issue with NewPipe rather than the device. Is it something that you can investigate further? Can you help decipher the error log to understand the media format that NewPipe is trying to play? |
That's not what I meant. I mean try it on your phone and some other device that's not the same OS and manufacturer, so that we can rule them out as problems.
You can't check if it's a device/OS bug if you're testing on the same OS and maker. |
NewPipe does work fine on my phone and on another brand of Android boxes I have, but I don't see how this rules out anything. There can still be a problem with either NewPipe or Ugoos AM8, or both.
Well, if it would work on one Ugoos AM8 but not another Ugoos AM8, then it could indicate a manufacturing or software defect in a particular box rather than a more general incompatibility between NewPipe and Ugoos AM8. I'm guessing it's probably the latter, i.e. a general incompatibility between NewPipe and Ugoos AM8, because all other apps work fine on this device. I would imagine the manufacturer will say that since all other apps work fine, then it's probably a software defect in NewPipe. Can you help decipher the error log to understand the media format that NewPipe is trying to play and any other interesting details that might help the manufacturer investigate this issue? |
It helps us know that there's nothing wrong with your network or other settings/config/setup. Better to conduct a simple test whose answer you probably know, than to not and later feel silly if the test could have helped pinpoint the problem. Now that we know the problem is between Newpipe and that particular device, could you try Just Player from F-Droid? It's also based on Exoplayer like Newpipe, and will let us know if the problem lies there. (If it also doesn't work but you don't get a direct crash report, maybe also install Scoop or use adb logcat to obtain the crash log). |
I tried installing Just Player from F-Droid, but I'm not sure if it is the right app. It was last updated more than 10 years ago, in 2013. When installing, it says that the app might misbehave as it was developed for a much older version of Android. It is also advertised as a music player, rather than a video player. Is that the right app? I also found a similarly named app Just (Video) Player in Google Play Store, with source code available in GitHub. I installed this one too. Simply installing either of these two apps didn't change anything regarding the issue in NewPipe. It still couldn't to play any video with the default configuration. Do I need to somehow instruct NewPipe to use a different video player API for native playback? I can configure NewPipe to use an external player, e.g. VLC or Just (Video) Player, but as mentioned earlier it results in degraded functionality, i.e. no audio in 1080p, can't play live streams. |
Yes that's the one. This is also available on F-Droid. I didn't know about that abandoned app. Sorry for the confusion. xD The idea here is to test any video file you happen to have in Just (Video) Player as a standalone. This app has nothing to do with Newpipe. There is no interaction or dependency between them. But you must find a video whose audio track codec is m4a/aac, matching your crash report. If you don't have any such video available, then you could use yt-dlp to download the exact video you've linked in your crash report, with the exact stream format your crash report shows (which is 140). If this file plays just fine in Just Player, then we can be more certain that the problem is in Newpipe. Here's the shell command you need, in case you've never used yt-dlp before: You could also use yt-dlg if you're more comfortable with GUIs. |
I followed your instructions. The audio file played without issues in all 3 players:
The command used to download the audio track:
The specification of format "140", for reference:
MediaInfo output:
|
Awesome! Thanks for being thorough. This makes it certain that the bug is in Newpipe somewhere. Let's see what the devs say. |
I have the same problem on Ugoos X4 Cube, Android 11. Ugoos is one of the best TV boxes, please fix Newpipe. Thank you! |
Any thoughts on how to fix this? |
I can't believe I didn't ask you to try the three Exoplayer settings toggles. Maybe those might work. |
Checklist
Affected version
0.26.1
Steps to reproduce the bug
Expected behavior
Video starts playing.
Actual behavior
Error occurs.
Screenshots/Screen recordings
No response
Logs
Exception
Crash log
Affected Android/Custom ROM version
Android 11
Affected device model
Ugoos AM8
Additional information
Other video apps work fine. YouTube plays fine in a web browser.
The text was updated successfully, but these errors were encountered: