No sound and videos not playing in iTube and browser #904
Comments
Ha — it was the missing decoder entries! Putting this |
actually, the file posted is from an i9103 and includes hw accelerated decoders for nv tegra 2 which will be unavailable on anbox.. so all |
@eMPee584 Can you submit a PR to get this fixed in Anbox? |
@ShapeShifter499 a new anbox release is not enough, you would also need a new system image. The most recent on https://build.anbox.io/android-images/2018/07/19/ is too old to contain that fix. (@morphis how about rolling a new one? ; )
into a |
@eMPee584 Using Arch Linux here. So the codecs are technically included but most recent official anbox system image is missing the 'xml' setting files that help the system make use of them? |
Xactly. |
@eMPee584 Thank you so much!! 😊 Running Ubuntu 19.04 with snap. Putting your This fixed all my audio problem and sound is now playing perfectly, even DRM content like audiobooks. ❤️ |
@eMPee584 After adding the overlay xml files to my setup this is what I get. Sound is now working but video playback is not. The included webview browser is playing audio but no video. Videos from https://m.youtube.com are black boxes with sound and test videos from https://www.quirksmode.org/html5/tests/video.html are white boxes with sound. |
@eMPee584 I added the three following xml from the PR comment you made. media_codecs_google_audio.xml, media_codecs_google_video.xml, and media_codecs_google_telephony.xml EDIT: Tried adding all of the xml files you had added in the PR to "/var/lib/anbox/rootfs-overlay/system/etc/" Still the same issue, audio works but no video yet. But audio didn't work for me before so progress! |
@ShapeShifter499 can you please post a log (adb logcat) from starting your file? There should be something about Unable to instantiate a decoder or Failed to create MediaCodec ... |
@eMPee584 PEBCAK, accidentally got rid of the --use-rootfs-overlay flag in systemd service file override. Attached is the correct logcat where audio is only playing, no video. |
🤔 mmh no time right now to dive into this further .. ⌛ |
Thnaks.it works.amazing |
somebody help me out i don't understand how to do this i have the same problem |
Can a new image please be bumped to the build service? The old one is over a year old and having no audio support is a huge issue. |
..very good point 🤣
|
Same Problem: version: 4 |
@eMPee584 Thank you so much, your comment (#904 (comment)) solved the issue I had in WhatsApp. In my case WhatsApp did not play animated GIFs but rather displayed a black square when clicking them. The file media_codecs.xml did not exist in /var/snap/anbox/common/rootfs-overlay/system/etc. I created it and copied the content from your linked file into it. Then I restarted Anbox:
And the GIFs started playing. The error in the WhatsApp log file was:
The corresponding log entries in the console.log of the Anbox debug infos were:
And for sake of completeness the output of
|
can confirm this is still an issue on edge can confirm running |
Hi, this method fixes the problem with audio (mostly) but not the video. |
@ShubhamKJha it actually fixed video for me but i'm not sure what the differences are between your machine and mine |
Might be usefull for someone and then restarted with below commands: |
Im running anbox 4-56c25f1 rev 186 on Ubuntu 18.04.4 LTS with 4.15.0-96-generic. I dont have the dir rootfs-overlay in my /var/snap/anbox/common directory after running snap set anbox rootfs-overlay.enable=true. I tried creating the directories and putting all codec files from https://github.com/anbox/anbox/tree/master/android/media/ into it, then restarting anbox, but it didnt work, I still nave no audio or video. |
When I do this, anbox fails to start. Is it a permission issue, or am I missing something? |
Same problem here - if I copy files to /var/snap/anbox/common/rootfs-overlay/system/etc anbox refuses to start --- Anyone found a workaround ? |
Same. Copied files and rebooted, anbox starts but still no sound for my system. |
This worked for me. Thank you |
For those using the snap package need to enable rootfs overlay with these commands
then copy the xml file to
as guided in the documentation. |
Simple to execute This solution worked for me.
|
@umeshg17 Thank you, your solution was the most concise and simple to execute and worked right away. |
this works (: thank you so much! |
Enabling rootfs-overlay caused ANR for some applications. I don’t know what happened. Disable rootfs-overlay returned to normal. |
Perfect......worked immediately. |
Thank you so much - this worked for me - allows playback of video and audio features in JW Library app running in Anbox. |
This solution worked for me with some slight modifications, I had to do
First. Then I had to make the system and etc dirs...
|
Worked first time for me, had to create some directories in the first path cause they didnt exist, but overall this is the solution right here. |
Please check that no similar bug is already reported. Have a look on the list of open bugs at https://github.com/anbox/anbox/issues => checked none with the same error except a camera issue which was fixed before
Make sure you are running the latest version of Anbox before reporting an issue. Update snap to latest:
snap refresh --devmode --edge anbox
=> version 4-8febc16 updatedMake sure you have debug logs enabled:
sudo snap set anbox debug.enable=true
=> didReproduce the error while debug logs enabled.
Run the anbox logs collection utility and attach the tar file.
sudo /snap/bin/anbox.collect-bug-info
=> system diag zip** Please paste the result of
anbox system-info
below:**Please describe your problem:
When I try to play a video in iTube well it doesn't start and in the console (adb logcat) I see
whenever I press the play/pause button. Also the same happens in the webview shell the when I try youtube there.
The above errors changes to
when in the WebView shell.
What were you expecting?:
I was expecting to view videos and hear sound from the emulator.
Additional info:
The text was updated successfully, but these errors were encountered: