{"action":"created","issue":{"url":"https://api.github.com/repos/pipelka/roboTV/issues/44","repository_url":"https://api.github.com/repos/pipelka/roboTV","labels_url":"https://api.github.com/repos/pipelka/roboTV/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/pipelka/roboTV/issues/44/comments","events_url":"https://api.github.com/repos/pipelka/roboTV/issues/44/events","html_url":"https://github.com/pipelka/roboTV/issues/44","id":294116304,"number":44,"title":"(Sony TV) Error when streaming some channels // Audio rendering & initialization fails","user":{"login":"Jondalar","id":682272,"avatar_url":"https://avatars0.githubusercontent.com/u/682272?v=4","gravatar_id":"","url":"https://api.github.com/users/Jondalar","html_url":"https://github.com/Jondalar","followers_url":"https://api.github.com/users/Jondalar/followers","following_url":"https://api.github.com/users/Jondalar/following{/other_user}","gists_url":"https://api.github.com/users/Jondalar/gists{/gist_id}","starred_url":"https://api.github.com/users/Jondalar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jondalar/subscriptions","organizations_url":"https://api.github.com/users/Jondalar/orgs","repos_url":"https://api.github.com/users/Jondalar/repos","events_url":"https://api.github.com/users/Jondalar/events{/privacy}","received_events_url":"https://api.github.com/users/Jondalar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-02-03T14:48:12Z","updated_at":"2018-02-05T10:28:00Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI recently bought a SonyTV and got roboTV running easily with the info & docker provided here. \r\n\r\nSome channels don't play on the SonyTV though (they do in Android Studio and very occasionally the application also plays them on the TV).\r\n\r\nHere is some debug output I traced with adb connected:\r\n\r\n`02-03 15:41:44.360 7841-7841/org.xvdr.robotv I/TVSession: onTune: content://android.media.tv/channel/2707\r\n02-03 15:41:44.824 7841-7841/org.xvdr.robotv D/Player: open sync: robotv://livetv/2052563304\r\n02-03 15:41:44.903 7841-9290/org.xvdr.robotv D/MtkACodecPlugin: MtkACodecPlugin destoryAPlugin\r\n02-03 15:41:44.907 7841-9284/org.xvdr.robotv D/org.robotv.player.source.RoboTvDataSource: close\r\n02-03 15:41:44.909 7841-9342/org.xvdr.robotv D/org.robotv.player.source.RoboTvDataSource: open: robotv://livetv/2052563304\r\n02-03 15:41:44.909 7841-9342/org.xvdr.robotv D/org.robotv.player.source.RoboTvDataSource: start streaming: robotv://livetv/2052563304\r\n02-03 15:41:44.945 7841-8336/org.xvdr.robotv D/ChannelSyncAdapter: importing EPG of channel 335\r\n02-03 15:41:44.959 7841-8336/org.xvdr.robotv D/org.robotv.sync.SyncUtils: Fetching new EPG entries for channel 335 - Kinowelt TV\r\n02-03 15:41:45.017 7841-9342/org.xvdr.robotv D/org.robotv.player.source.RoboTvDataSource: live stream opened\r\n02-03 15:41:45.018 7841-7841/org.xvdr.robotv D/Player: open sync - done\r\n02-03 15:41:45.018 7841-7841/org.xvdr.robotv I/TVSession: successfully switched channel\r\n02-03 15:41:45.018 7841-7841/org.xvdr.robotv I/Player: onPlayerStateChanged true 1\r\n02-03 15:41:45.018 7841-7841/org.xvdr.robotv I/Player: onPlayerStateChanged true 2\r\n02-03 15:41:45.019 7841-9342/org.xvdr.robotv D/org.robotv.player.extractor.RoboTvExtractor: seek: 0\r\n02-03 15:41:45.574 7841-8336/org.xvdr.robotv D/ChannelSyncAdapter: importing EPG of channel 336\r\n02-03 15:41:45.583 7841-8336/org.xvdr.robotv D/org.robotv.sync.SyncUtils: Fetching new EPG entries for channel 336 - AXN Action\r\n02-03 15:41:46.333 7841-8336/org.xvdr.robotv D/ChannelSyncAdapter: importing EPG of channel 337\r\n02-03 15:41:46.354 7841-8336/org.xvdr.robotv D/org.robotv.sync.SyncUtils: Fetching new EPG entries for channel 337 - Gute Laune TV\r\n02-03 15:41:47.100 7841-8336/org.xvdr.robotv D/ChannelSyncAdapter: importing EPG of channel 338\r\n02-03 15:41:47.149 7841-8336/org.xvdr.robotv D/org.robotv.sync.SyncUtils: Fetching new EPG entries for channel 338 - kabel eins classics\r\n02-03 15:41:47.188 7841-9342/org.xvdr.robotv D/org.robotv.player.extractor.RoboTvExtractor: stream change packet received\r\n02-03 15:41:47.188 7841-9342/org.xvdr.robotv D/StreamBundle: new streamchange: 3 entries\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/StreamBundle: stream: 0\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/StreamBundle: type: H264\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv I/StreamBundle: new 2 H264 stream (1279)\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/StreamBundle: stream: 1\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/StreamBundle: type: AC3\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv I/StreamBundle: new 1 AC3 stream (1283)\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/StreamBundle: stream: 2\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/StreamBundle: type: AC3\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv I/StreamBundle: new 1 AC3 stream (1284)\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv D/org.robotv.player.extractor.RoboTvExtractor: create streams\r\n02-03 15:41:47.189 7841-9342/org.xvdr.robotv I/StreamManager: video track pid: 1279\r\n02-03 15:41:47.190 7841-9342/org.xvdr.robotv I/StreamManager: audio track pid: 1283\r\n02-03 15:41:47.190 7841-9342/org.xvdr.robotv I/TrackInfoMapper: native size: 1920x1080\r\n02-03 15:41:47.190 7841-9342/org.xvdr.robotv I/TrackInfoMapper: pixel aspect ratio: 1.0\r\n02-03 15:41:47.190 7841-9342/org.xvdr.robotv I/TrackInfoMapper: video size: 1920x1080\r\n02-03 15:41:47.190 7841-9342/org.xvdr.robotv D/TVSession: onAudioTrackChanged: 1283\r\n02-03 15:41:47.190 7841-9342/org.xvdr.robotv D/org.robotv.player.extractor.RoboTvExtractor: skipping 216 bytes (stream change packet)\r\n02-03 15:41:47.193 7841-7841/org.xvdr.robotv D/TVSession: onAudioTrackChanged: 1283\r\n02-03 15:41:47.225 7841-9176/org.xvdr.robotv D/MtkACodecPlugin: MtkACodecPlugin createAPlugin\r\n02-03 15:41:47.239 7841-9349/org.xvdr.robotv I/OMXClient: MuxOMX ctor\r\n02-03 15:41:47.240 7841-9349/org.xvdr.robotv D/MtkACodecPlugin: OMX.MTK.VIDEO.DECODER.AVC needRmClient (597)\r\n02-03 15:41:47.241 7841-9349/org.xvdr.robotv D/MtkACodecPlugin: OMX.MTK.VIDEO.DECODER.AVC mNeedVdpImgrz (603)\r\n02-03 15:41:47.285 7841-9348/org.xvdr.robotv I/MediaCodec: [OMX.MTK.VIDEO.DECODER.AVC] setting surface generation to 8029210\r\n02-03 15:41:47.288 7841-9348/org.xvdr.robotv D/MtkMediaCodecPlugin: [OMX.MTK.VIDEO.DECODER.AVC] set mOutputPath = 0 L(150)\r\n02-03 15:41:47.297 7841-9349/org.xvdr.robotv D/MtkACodecPlugin: tunneledplayback, set mOutputPath = OUTPUT_VIDEO_MAIN\r\n02-03 15:41:47.303 7841-9349/org.xvdr.robotv D/binder.hwcomposer: [enable_vdp:59] ENABLE_VDP ok\r\n02-03 15:41:47.303 7841-9349/org.xvdr.robotv I/ACodec: Configuring TUNNELED video playback.\r\n02-03 15:41:47.340 7841-9349/org.xvdr.robotv D/MtkACodecPlugin: add usage GRALLOC_USAGE_PATH_VDP0\r\n02-03 15:41:47.344 7841-9349/org.xvdr.robotv D/SurfaceUtils: set up nativeWindow 0x90279708 for 1920x1080, color 0x103, rotation 0, usage 0x30002900\r\n02-03 15:41:47.370 7841-9176/org.xvdr.robotv E/AudioTrack: Could not get audio output for session 89, stream type -1, usage 1, sample rate 48000, format 0x1, channel mask 0x3f, flags 0x41\r\n02-03 15:41:47.370 7841-9176/org.xvdr.robotv E/AudioTrack-JNI: Error -22 initializing AudioTrack\r\n02-03 15:41:47.370 7841-9176/org.xvdr.robotv E/android.media.AudioTrack: Error code -20 when initializing AudioTrack.\r\n02-03 15:41:47.372 7841-9176/org.xvdr.robotv E/ExoPlayerImplInternal: Renderer error.\r\n                                                                      com.google.android.exoplayer2.ExoPlaybackException\r\n                                                                          at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.render(SimpleDecoderAudioRenderer.java:255)\r\n                                                                          at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560)\r\n                                                                          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306)\r\n                                                                          at android.os.Handler.dispatchMessage(Handler.java:98)\r\n                                                                          at android.os.Looper.loop(Looper.java:154)\r\n                                                                          at android.os.HandlerThread.run(HandlerThread.java:61)\r\n                                                                       Caused by: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed: 0, Config(48000, 252, 144000)\r\n                                                                          at com.google.android.exoplayer2.audio.DefaultAudioSink.initializeAudioTrack(DefaultAudioSink.java:1180)\r\n                                                                          at com.google.android.exoplayer2.audio.DefaultAudioSink.initialize(DefaultAudioSink.java:487)\r\n                                                                          at com.google.android.exoplayer2.audio.DefaultAudioSink.handleBuffer(DefaultAudioSink.java:544)\r\n                                                                          at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.drainOutputBuffer(SimpleDecoderAudioRenderer.java:347)\r\n                                                                          at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.render(SimpleDecoderAudioRenderer.java:250)\r\n                                                                          at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560) \r\n                                                                          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306) \r\n                                                                          at android.os.Handler.dispatchMessage(Handler.java:98) \r\n                                                                          at android.os.Looper.loop(Looper.java:154) \r\n                                                                          at android.os.HandlerThread.run(HandlerThread.java:61) \r\n02-03 15:41:47.375 7841-7841/org.xvdr.robotv E/TVSession: onPlayerError\r\n02-03 15:41:47.375 7841-7841/org.xvdr.robotv W/System.err: com.google.android.exoplayer2.ExoPlaybackException\r\n02-03 15:41:47.375 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.render(SimpleDecoderAudioRenderer.java:255)\r\n02-03 15:41:47.375 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:98)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at android.os.Looper.loop(Looper.java:154)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err: Caused by: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed: 0, Config(48000, 252, 144000)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.audio.DefaultAudioSink.initializeAudioTrack(DefaultAudioSink.java:1180)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.audio.DefaultAudioSink.initialize(DefaultAudioSink.java:487)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.audio.DefaultAudioSink.handleBuffer(DefaultAudioSink.java:544)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.drainOutputBuffer(SimpleDecoderAudioRenderer.java:347)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err:     at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.render(SimpleDecoderAudioRenderer.java:250)\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv W/System.err: \t... 5 more\r\n02-03 15:41:47.376 7841-7841/org.xvdr.robotv D/NotificationHandler: notify: Wiedergabefehler / Fehler\r\n02-03 15:41:47.435 7841-9348/org.xvdr.robotv D/MtkACodecPlugin: MtkACodecPlugin destoryAPlugin\r\n02-03 15:41:47.446 7841-7841/org.xvdr.robotv I/Player: onPlayerStateChanged true 1\r\n02-03 15:41:47.447 7841-7869/org.xvdr.robotv D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000\r\n02-03 15:41:47.820 7841-9342/org.xvdr.robotv D/org.robotv.player.source.RoboTvDataSource: close`\r\n\r\nIs there a way to look deeper into this?  Happy to run test builds.\r\n\r\nCheers\r\nAlex"},"comment":{"url":"https://api.github.com/repos/pipelka/roboTV/issues/comments/363043279","html_url":"https://github.com/pipelka/roboTV/issues/44#issuecomment-363043279","issue_url":"https://api.github.com/repos/pipelka/roboTV/issues/44","id":363043279,"user":{"login":"pipelka","id":584386,"avatar_url":"https://avatars1.githubusercontent.com/u/584386?v=4","gravatar_id":"","url":"https://api.github.com/users/pipelka","html_url":"https://github.com/pipelka","followers_url":"https://api.github.com/users/pipelka/followers","following_url":"https://api.github.com/users/pipelka/following{/other_user}","gists_url":"https://api.github.com/users/pipelka/gists{/gist_id}","starred_url":"https://api.github.com/users/pipelka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipelka/subscriptions","organizations_url":"https://api.github.com/users/pipelka/orgs","repos_url":"https://api.github.com/users/pipelka/repos","events_url":"https://api.github.com/users/pipelka/events{/privacy}","received_events_url":"https://api.github.com/users/pipelka/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T10:28:00Z","updated_at":"2018-02-05T10:28:00Z","author_association":"OWNER","body":"To force AC3 passthrough you may set this to \"true\":\r\nhttps://github.com/pipelka/roboTV/blob/cfeb528ecc536471ff7faff11ccc10309cdc9f59/robotv-player/src/main/java/org/robotv/player/Player.java#L99\r\n"}}
{"actor":{"display_login":"pipelka"}}