Skip to content

Can't play ts File #2924

@atakancosar

Description

@atakancosar

Version

Media3 pre-release (alpha, beta or RC not in this list)

More version details

On Media3 1.8.0 I was seeing exactly the same error as in issue #2764 (the IllegalArgumentException coming from ReorderingBufferQueue via SeiReader / H264Reader). After seeing that bug report I upgraded to 1.9.0-beta and the original crash disappeared, but the failure changed into repeated frameIndex not found / index not found messages from the decoder (PipelineWatcher onInputBufferReleased: frameIndex not found (...)), and playback is still broken (freezes / misbehaves).

04:23:07.950 PipelineWatcher D onInputBufferReleased: frameIndex not found (74033); ignored 04:23:11.849 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 74366/74377 (recycle/alloc) - 58/74344 (fetch/transfer) 04:23:12.382 PipelineWatcher D onInputBufferReleased: frameIndex not found (74403); ignored 04:23:12.394 PipelineWatcher D onInputBufferReleased: frameIndex not found (74408); ignored 04:23:16.778 PipelineWatcher D onInputBufferReleased: frameIndex not found (74716); ignored 04:23:17.099 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 74770/74781 (recycle/alloc) - 60/74748 (fetch/transfer) 04:23:17.747 PipelineWatcher D onInputBufferReleased: frameIndex not found (74792); ignored 04:23:19.061 TrafficStats D tagSocket(78) with statsTag=0xffffffff, statsUid=-1 04:23:21.809 PipelineWatcher D onInputBufferReleased: frameIndex not found (75158); ignored 04:23:22.988 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 75225/75236 (recycle/alloc) - 61/75203 (fetch/transfer) 04:23:28.147 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 75644/75655 (recycle/alloc) - 62/75622 (fetch/transfer) 04:23:28.392 PipelineWatcher D onInputBufferReleased: frameIndex not found (75630); ignored 04:23:28.905 PipelineWatcher D onInputBufferReleased: frameIndex not found (75675); ignored 04:23:33.237 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 76038/76049 (recycle/alloc) - 62/76016 (fetch/transfer) 04:23:37.725 PipelineWatcher D onInputBufferReleased: frameIndex not found (76354); ignored 04:23:38.408 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 76442/76453 (recycle/alloc) - 62/76420 (fetch/transfer) 04:23:39.044 TrafficStats D tagSocket(78) with statsTag=0xffffffff, statsUid=-1 04:23:40.742 PipelineWatcher D onInputBufferReleased: frameIndex not found (76590); ignored 04:23:41.113 PipelineWatcher D onInputBufferReleased: frameIndex not found (76645); ignored 04:23:41.132 PipelineWatcher D onInputBufferReleased: frameIndex not found (76651); ignored 04:23:43.850 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 9(18819072 size) used buffers - 76862/76873 (recycle/alloc) - 62/76838 (fetch/transfer) 04:23:44.261 PipelineWatcher D onInputBufferReleased: frameIndex not found (76862); ignored 04:23:44.849 PipelineWatcher D onInputBufferReleased: frameIndex not found (76907); ignored 04:23:46.775 PipelineWatcher D onInputBufferReleased: frameIndex not found (77057); ignored 04:23:48.168 PipelineWatcher D onInputBufferReleased: frameIndex not found (77166); ignored 04:23:49.014 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 77266/77277 (recycle/alloc) - 62/77244 (fetch/transfer) 04:23:54.123 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 77660/77671 (recycle/alloc) - 62/77638 (fetch/transfer) 04:23:59.050 TrafficStats D tagSocket(78) with statsTag=0xffffffff, statsUid=-1 04:23:59.275 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 9(18819072 size) used buffers - 78054/78065 (recycle/alloc) - 62/78032 (fetch/transfer) 04:24:01.830 PipelineWatcher D onInputBufferReleased: frameIndex not found (78248); ignored 04:24:01.936 PipelineWatcher D onInputBufferReleased: frameIndex not found (78298); ignored 04:24:04.731 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 78478/78489 (recycle/alloc) - 63/78456 (fetch/transfer)

Additional comparison with ExoPlayer

To confirm that the issue is not caused by the media stream or the device decoder,
I tested the exact same TS stream on the exact same device using:

  • ExoPlayer 2.x (classic)
  • Media3 1.8.0 / 1.9.0-beta

Both ExoPlayer and Media3 log the same warnings such as:

04:25:29.319 PipelineWatcher D onInputBufferReleased: frameIndex not found (85022); ignored 04:25:29.442 PipelineWatcher D onInputBufferReleased: frameIndex not found (85027); ignored 04:25:30.805 PipelineWatcher D onInputBufferReleased: frameIndex not found (85136); ignored 04:25:31.563 PipelineWatcher D onInputBufferReleased: frameIndex not found (85221); ignored 04:25:31.644 PipelineWatcher D onInputBufferReleased: frameIndex not found (85269); ignored 04:25:31.789 PipelineWatcher D onInputBufferReleased: frameIndex not found (85333); ignored 04:25:32.346 PipelineWatcher D onInputBufferReleased: frameIndex not found (85611); ignored 04:25:37.662 BufferPoolAccessor2.0 D bufferpool2 0xb155c108 : 9(18819072 size) total buffers - 8(16728064 size) used buffers - 85759/85771 (recycle/alloc) - 68/85739 (fetch/transfer) 04:25:37.662 BufferPoolAccessor2.0 D evictor expired: 1, evicted: 1

However, the runtime behavior is completely different:

ExoPlayer 2.x (same device, same stream)

  • Video plays smoothly
  • No visible freezing
  • No visual stuttering
  • Audio is fine
  • Player continues normally despite the logs
  • Extractor/decoder mapping does not break

Media3 (same device, same stream)

  • Audio continues without issues
  • Video starts freezing or stuttering
  • Decoder repeatedly logs
    onInputBufferReleased: frameIndex not found (...)
  • Video pipeline appears to lose frame ordering
  • Playback becomes unusable or stalls

Devices that reproduce the issue

Amlogic X5
Allwinner H313
Allwinner H616

Devices that do not reproduce the issue

Reproducible in the demo app?

Yes

Reproduction steps

When I play the same stream URL in the official Media3 demo app, the exact same issue occurs.

Expected result

It should work fine without error.

Actual result

04:44:56.464 PipelineWatcher D onInputBufferReleased: frameIndex not found (127); ignored 04:47:22.799 PipelineWatcher D onInputBufferReleased: frameIndex not found (1358); ignored 04:47:38.197 PipelineWatcher D onInputBufferReleased: frameIndex not found (1743); ignored 04:47:41.852 PipelineWatcher D onInputBufferReleased: frameIndex not found (1884); ignored 04:47:41.936 PipelineWatcher D onInputBufferReleased: frameIndex not found (1919); ignored 04:47:42.237 PipelineWatcher D onInputBufferReleased: frameIndex not found (2031); ignored 04:47:42.263 PipelineWatcher D onInputBufferReleased: frameIndex not found (2040); ignored 04:47:42.639 PipelineWatcher D onInputBufferReleased: frameIndex not found (2169); ignored 04:47:42.970 PipelineWatcher D onInputBufferReleased: frameIndex not found (2287); ignored 04:47:42.974 PipelineWatcher D onInputBufferReleased: frameIndex not found (2289); ignored 04:47:43.117 PipelineWatcher D onInputBufferReleased: frameIndex not found (2347); ignored 04:47:43.173 PipelineWatcher D onInputBufferReleased: frameIndex not found (2369); ignored 04:47:43.513 PipelineWatcher D onInputBufferReleased: frameIndex not found (2490); ignored 04:47:43.587 PipelineWatcher D onInputBufferReleased: frameIndex not found (2516); ignored 04:47:44.114 PipelineWatcher D onInputBufferReleased: frameIndex not found (2688); ignored 04:48:35.333 PipelineWatcher D onInputBufferReleased: frameIndex not found (3189); ignored 04:48:49.431 PipelineWatcher D onInputBufferReleased: frameIndex not found (3523); ignored 04:48:53.440 PipelineWatcher D onInputBufferReleased: frameIndex not found (3624); ignored 04:49:14.206 PipelineWatcher D onInputBufferReleased: frameIndex not found (4197); ignored 04:49:14.224 PipelineWatcher D onInputBufferReleased: frameIndex not found (4204); ignored 04:49:14.402 PipelineWatcher D onInputBufferReleased: frameIndex not found (4275); ignored 04:49:14.633 PipelineWatcher D onInputBufferReleased: frameIndex not found (4359); ignored 04:49:14.637 PipelineWatcher D onInputBufferReleased: frameIndex not found (4362); ignored

Media

I can not share it.

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions