Solvedanbox No sound and videos not playing in iTube and browser

  1. Please check that no similar bug is already reported. Have a look on the list of open bugs at => checked none with the same error except a camera issue which was fixed before

  2. 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 updated

  3. Make sure you have debug logs enabled:
    sudo snap set anbox debug.enable=true => did

  4. Reproduce the error while debug logs enabled.

  5. Run the anbox logs collection utility and attach the tar file.
    sudo /snap/bin/anbox.collect-bug-info => system diag zip

  6. ** Please paste the result of anbox system-info below:**

version: 4
snap-revision: 149
  arch:  x86
  brand:        Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
    - aes
    - sse4_1
    - sse4_2
    - avx
  name: Gentoo
  snap-based: true
  version: Linux version 4.18.5-gentoo (root@pen) (gcc version 8.2.0 (Gentoo 8.2.0-r2 p1.2)) #1 SMP Wed Sep 5 15:20:21 CEST 2018
  binder: true
  ashmem: true
    vendor: Mesa Project
    version: 1.4 (DRI2)
      - EGL_ANDROID_native_fence_sync
      - EGL_CHROMIUM_sync_control
      - EGL_EXT_buffer_age
      - EGL_EXT_create_context_robustness
      - EGL_EXT_image_dma_buf_import
      - EGL_EXT_image_dma_buf_import_modifiers
      - EGL_KHR_config_attribs
      - EGL_KHR_create_context
      - EGL_KHR_create_context_no_error
      - EGL_KHR_fence_sync
      - EGL_KHR_get_all_proc_addresses
      - EGL_KHR_gl_colorspace
      - EGL_KHR_gl_renderbuffer_image
      - EGL_KHR_gl_texture_2D_image
      - EGL_KHR_gl_texture_3D_image
      - EGL_KHR_gl_texture_cubemap_image
      - EGL_KHR_image
      - EGL_KHR_image_base
      - EGL_KHR_image_pixmap
      - EGL_KHR_no_config_context
      - EGL_KHR_reusable_sync
      - EGL_KHR_surfaceless_context
      - EGL_EXT_pixel_format_float
      - EGL_KHR_wait_sync
      - EGL_MESA_configless_context
      - EGL_MESA_drm_image
      - EGL_MESA_image_dma_buf_export
      - EGL_NOK_texture_from_pixmap
      - EGL_WL_bind_wayland_display
    vendor: Intel Open Source Technology Center
    vendor: OpenGL ES 3.0 Mesa 18.0.5
      - GL_ANGLE_texture_compression_dxt3
      - GL_ANGLE_texture_compression_dxt5
      - GL_APPLE_texture_max_level
      - GL_EXT_blend_func_extended
      - GL_EXT_blend_minmax
      - GL_EXT_clip_cull_distance
      - GL_EXT_color_buffer_float
      - GL_EXT_compressed_ETC1_RGB8_sub_texture
      - GL_EXT_discard_framebuffer
      - GL_EXT_disjoint_timer_query
      - GL_EXT_draw_buffers
      - GL_EXT_draw_buffers_indexed
      - GL_EXT_draw_elements_base_vertex
      - GL_EXT_frag_depth
      - GL_EXT_map_buffer_range
      - GL_EXT_multi_draw_arrays
      - GL_EXT_occlusion_query_boolean
      - GL_EXT_polygon_offset_clamp
      - GL_EXT_read_format_bgra
      - GL_EXT_robustness
      - GL_EXT_separate_shader_objects
      - GL_EXT_shader_integer_mix
      - GL_EXT_texture_border_clamp
      - GL_EXT_texture_compression_dxt1
      - GL_EXT_texture_filter_anisotropic
      - GL_EXT_texture_format_BGRA8888
      - GL_EXT_texture_rg
      - GL_EXT_texture_sRGB_decode
      - GL_EXT_texture_type_2_10_10_10_REV
      - GL_EXT_unpack_subimage
      - GL_INTEL_performance_query
      - GL_KHR_blend_equation_advanced
      - GL_KHR_context_flush_control
      - GL_KHR_debug
      - GL_KHR_no_error
      - GL_KHR_robustness
      - GL_MESA_shader_integer_functions
      - GL_NV_draw_buffers
      - GL_NV_fbo_color_attachments
      - GL_NV_read_buffer
      - GL_NV_read_depth
      - GL_NV_read_depth_stencil
      - GL_NV_read_stencil
      - GL_OES_EGL_image
      - GL_OES_EGL_image_external
      - GL_OES_EGL_sync
      - GL_OES_compressed_ETC1_RGB8_texture
      - GL_OES_depth24
      - GL_OES_depth_texture
      - GL_OES_depth_texture_cube_map
      - GL_OES_draw_buffers_indexed
      - GL_OES_draw_elements_base_vertex
      - GL_OES_element_index_uint
      - GL_OES_fbo_render_mipmap
      - GL_OES_get_program_binary
      - GL_OES_mapbuffer
      - GL_OES_packed_depth_stencil
      - GL_OES_required_internalformat
      - GL_OES_rgb8_rgba8
      - GL_OES_sample_shading
      - GL_OES_sample_variables
      - GL_OES_shader_multisample_interpolation
      - GL_OES_standard_derivatives
      - GL_OES_stencil8
      - GL_OES_surfaceless_context
      - GL_OES_texture_3D
      - GL_OES_texture_border_clamp
      - GL_OES_texture_float
      - GL_OES_texture_float_linear
      - GL_OES_texture_half_float
      - GL_OES_texture_half_float_linear
      - GL_OES_texture_npot
      - GL_OES_vertex_array_object
      - GL_OES_vertex_half_float

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

09-09 08:39:30.783   111   918 E ACodec  : Unable to instantiate a decoder for type 'audio/vorbis' with err 0xfffffffe.
09-09 08:39:30.783   111   918 E ACodec  : signalError(omxError 0xfffffffe, internalError -2)
09-09 08:39:30.783   111   918 E MediaCodec: Codec reported err 0xfffffffe, actionCode 0, while in state 1
09-09 08:39:30.784   111   916 E SoundPool: Unable to load sample
09-09 08:39:30.784   111   167 W AudioService: onLoadSoundEffects(), Error -2147483648 while loading samples
09-09 08:39:30.788    40    40 I MediaPlayerService: MediaPlayerService::getOMX

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

09-09 08:48:12.966  1027  1129 E ACodec  : Unable to instantiate a decoder for type 'audio/opus' with err 0xfffffffe.
09-09 08:48:12.966  1027  1129 E ACodec  : signalError(omxError 0xfffffffe, internalError -2)
09-09 08:48:12.966  1027  1129 E MediaCodec: Codec reported err 0xfffffffe, actionCode 0, while in state 1
09-09 08:48:12.967  1027  1027 W MediaCodec-JNI: try to release MediaCodec from JMediaCodec::~JMediaCodec()...
09-09 08:48:12.967  1027  1027 W MediaCodec-JNI: done releasing MediaCodec from JMediaCodec::~JMediaCodec().
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: Failed to create MediaCodec: audio/opus, isSecure: false, requireSoftwareCodec: no
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: java.lang.IllegalArgumentException: Failed to initialize audio/opus, error 0xfffffffe
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at Method)
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at<init>(
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at org.chromium.base.SystemMessageHandler.handleMessage(
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at android.os.Handler.dispatchMessage(
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at android.os.Looper.loop(
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at java.lang.reflect.Method.invoke(Native Method)
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at$
09-09 08:48:12.967  1027  1027 E cr_MediaCodecUtil: 	at
09-09 08:48:12.969    40    99 I MediaPlayerService: MediaPlayerService::getOMX

when in the WebView shell.

What were you expecting?:
I was expecting to view videos and hear sound from the emulator.

Additional info:

38 Answers

✔️Accepted Answer

Simple to execute

This solution worked for me.

cd /var/snap/anbox/common/rootfs-overlay/system/etc
sudo wget
sudo wget
sudo wget
sudo wget
sudo wget
sudo wget
sudo snap set anbox rootfs-overlay.enable=true
sudo snap stop anbox
sudo snap start anbox

Other Answers:

@eMPee584 Thank you so much!! 😊

Running Ubuntu 19.04 with snap. Putting your media_codecs.xml file unmodified into /var/snap/anbox/common/rootfs-overlay/system/etc/media_codecs.xml and rebooting my laptop worked. I also had to set snap set anbox rootfs-overlay.enable=true ✔️

This fixed all my audio problem and sound is now playing perfectly, even DRM content like audiobooks. ❤️

Ha ­— it was the missing decoder entries! Putting this
to /var/lib/anbox/rootfs-overlay/system/etc/media_codecs.xml fixed youtube and musicolet player : )
Edit: wow even concurrent sound (i.e. soft mixing) works..


Ha ­— it was the missing decoder entries! Putting this
to /var/lib/anbox/rootfs-overlay/system/etc/media_codecs.xml fixed youtube and musicolet player : )
Edit: wow even concurrent sound (i.e. soft mixing) works..

For those using the snap package need to enable rootfs overlay with these commands

$ snap set anbox rootfs-overlay.enable=true
$ snap restart anbox.container-manager

then copy the xml file to /var/snap/anbox/common/rootfs-overlay
and restart anbox with

$ snap restart anbox.container-manager

as guided in the documentation.

@ShapeShifter499 a new anbox release is not enough, you would also need a new system image. The most recent on is too old to contain that fix. (@morphis how about rolling a new one? ; )
If you are using the debian package (for snap, locations will differ of both anbox dir and systemd service file) you can also add these xml files (media_codecs_google_audio.xml, media_codecs_google_telephony.xml, media_codecs_google_video.xml) to a dir /var/lib/anbox/rootfs-overlay/system/etc/ and put

ExecStart=/usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox --use-rootfs-overlay

into a /etc/systemd/system/anbox-container-manager.service.d/override.conf file (create the parent directories as needed by mkdir -pv /etc/systemd/system/anbox-container-manager.service.d /var/lib/anbox/rootfs-overlay/system/etc/)

Related Issues:

anbox The anbox container can not connect to the network
Running the following commands made my network work in Anbox running Ubuntu 17.10: ...
anbox No sound and videos not playing in iTube and browser
Simple to execute This solution worked for me. Please check that no similar bug is already reported ...
anbox Root permission for apps
Another try Got play store starting but as there is no network connection (another problem #51) it's...
anbox Difficult to install on Fedora system
dnf config-manager --add-repo=
react native keychain SDK Build Tools revision (23.0.1) is too low for project :react-native-keychain.
Ok I found a solution to this For people facing the same problem in the future Hey there ...
material components android Manifest merger failed : Attribute application@appComponentFactory
I had similar problem We're transitioning from github issues to a public buganizer component Rather ...
expo Error: fsevents unavailable (this watcher can only be used on Darwin)
Possible solution: I had installed watchman via npm install -g watchman but apparently this installs...
flutter Multiple commands produce '/build/ios/Debug-iphonesimulator/
I was able to fix it by opening the Runner workspace project in Xcode 10 Then navigate to File ...
flutter App Store iOS submission fails: The bundle does not support the minimum OS Version specified in the Info.plist
After doing a flutter clean changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) t...
flutter '' has different version for the compile (26.1.0) and runtime (27.0.1) classpath
is like this i receive an error when i run flutter run My file is: flutter doctor: ...
flutter Why does my text not wrap?
You have to wrap Column in a flexible Without flexible the column's width is not constrained to the ...
flutter Unexpected top padding in ListView put inside scaffold with no appBar
Yeah this is intentional If you put a widget before the ListView you should wrap the ListView with a...
flutter Missing xcode dependency: Python module "six"
try python2.x -m pip install six by @humblerookie's suggest or brew reinstall python@2 pip install s...
expo exp build:android fails
This works exp start Cancel ctrl c then do exp build:android. Running exp build:android errors fails...
flutter flutter messaging: set the notification icon
Hey guys I fought with this for the better part of a day For some strange reason there are no tutori...
flutter Issue with cloud_firestore - Cannot fit requested classes in a single dex file.
As a workaround you can try enabling mutlidex for Android App by following Enable multidex for apps ...
flutter D8: Program type already present: io.flutter.BuildConfig
@smrucv I received the same error but after flutter clean and flutter packages get everything works ...
flutter Introduction of characters package causes crash on flutter run for preexisting Flutter applications
In my case I resolved the issue with flutter clean After e0ed12c I get this error when building: @ju...
nativescript cli TNS doctor doesn't recognize Xcode (High Sierra)
HI @philipfeldmann Can yhou please run xcodebuild -version and paste the output? May be Xcode is ins...
flutter Making Network http error SocketException: Failed host lookup
@hoc081098 Double-check / make sure you have <uses-permission android:name=android.permission.INTERN...
flutter Support inlining Android/iOS views
iOS view embedding support has landed on master This is still just a preview There are multiple open...
flutter ✗ Android license status unknown.
Hi everyone Steps to Reproduce Please tell us what you were doing and what went wrong If you are run...
react native mapbox gl No static method toHumanReadableAscii
here is workaround: build.gradle got the following error on runtime: java.lang.NoSuchMethodError: No...
flutter idevice_id cannot run on catalina
When you're developing on Catalina Steps to Reproduce Run flutter doctor on macOS Catalina I get the...
flutter type 'List<dynamic>' is not a subtype of type 'List<String>'
The problem is your fromMap constructor is reading from a Map<String dynamic> ...
flutter TextField is hidden by keyboard inside of a Modal Bottom Sheet
This may not work for all situations but I have a modalBottomSheet that contains only a TextField ...
retrofit Kotlin & @Body
You can still use Map just suppress its wildcardness with @JvmSuppressWildcards ...
NativeBase Needs to tap twice to fire onPress function when keyboard is open
@bm-software Use keyboardShouldPersistTaps={'handled'} and will works fine. react-native ...
react native firebase 🔥(Android) Program type already present: io.invertase.firebase.BuildConfig
I think I found my ultimate error here In my package.json file I had at some point earlier ...
flutter Dismissing keyboard programatically
This is a better way as it also clears the focus: FocusScope.of(context).requestFocus(new FocusNode(...
flutter How to solve: Android license status unknown and also Android sdkmanager tool not found? Tried everything(as i think)
The answer is here Uncheck Hide Obsolete Packages and you'll see Android SDK Tools (Obsolete) 26.1.1...
flutter MissingPluginException: No implementation found for method
@mravn-google Yeah turned out I had to quit the flutter run process and start it up again Just a ful...
flutter firebase_auth: ^0.8.0+1 crashes on Android
Here i put this in file: android/ and changed targetSdkVersion to 28 and it worked...
react native modal The statusbar turns white when the modal is open (only on certain devices)
statusBarTranslucent property has been added to Modal of RN 0.62 I think this problem has been solve...
flutter Android sdkmanager tool not found (C:...\Local\Android\sdk\tools\bin\sdkmanager)
This worked for me: open Android Studio's SDK Manager go to the Android SDK tab under SDK Tools ...
flutter 1.22.2 - Flutter plugin not installed; this adds Flutter specific functionality.
Hey @bhanuka96 try this line of code How do I fix this android plugin error? This error is being com...
cli pod install failure with glog
what helped me: sudo xcode-select --switch /Applications/ Ask your Question I have been try...
create react native app issue running on ubuntu 16.04 (watchman)
I got it working by running: OS Info: Run: Output: ...
flutter [ios][release] GeneratedPluginRegistrant.m Module not found
I may have found the answer from this comment: #21989 (comment) Seems like by opening up the project...
flutter [App.framework] Linked and embedded framework 'App.framework' was built for iOS/iOS Simulator
Does rm -rf ios/Flutter/App.framework get you unstuck? SOLUTION @jmagman has written an article on h...
Xposed Let's port Xposed to N
Surprisingly by porting M changes to N everything works well From my experience I can tell you that ...
flutter Bad state: Future already completed
I had the same issue.. The problem was the same that @soaresgabriel said but I was not navigating di...
create react native app AwesomeProject@0.1.0 start: react-native-scripts start- ERR! Exit status 1
As suggested at the error message installing watchman solved this error for me (OSX 10.9.5) ...
flutter Execution failed for task ':app:compileFlutterBuildDebug' Issue
Hi @Ramihtet your logs show a different flutter version; could you please run flutter channel stable...
capacitor FileReader API not firing
You can try this. Description of the problem: In my project I'm trying to read and convert a Blob do...
flutter Unable to load Asset - wrong indentation in pubspec.yaml
Is your assets key underneath a flutter: key as well? ...