google / google/ExoPlayer

Propagate bitrate from MP3 files into Format (maybe only CBR ones?)

Open
#11,124 15 comments 0 reactions 1 assignee Assigned to @icbaker View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### Bug

```txt
D/CCodecConfig(10713): no c2 equivalents for log-session-id
D/CCodecConfig(10713): no c2 equivalents for flags
D/CCodecConfig(10713): config failed => CORRUPTED
D/CCodecConfig(10713): c2 config diff is c2::u32 raw.sample-rate.value = 48000
W/Codec2Client(10713): query -- param skipped: index = 1107298332.
D/CCodec (10713): client requested max input size 4096, which is smaller than what component recommended (8192); overriding with component recommendation.
W/CCodec (10713): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range.
D/CCodec (10713): setup formats input: AMessage(what = 0x00000000) = {
D/CCodec (10713): int32_t bitrate = 64000
D/CCodec (10713): int32_t channel-count = 2
D/CCodec (10713): int32_t max-input-size = 8192
D/CCodec (10713): string mime = "audio/mpeg"
D/CCodec (10713): int32_t sample-rate = 48000
D/CCodec (10713): }
D/CCodec (10713): setup formats output: AMessage(what = 0x00000000) = {
D/CCodec (10713): int32_t channel-count = 2
D/CCodec (10713): string mime = "audio/raw"
D/CCodec (10713): int32_t sample-rate = 48000
D/CCodec (10713): }
I/CCodecConfig(10713): query failed after returning 7 values (BAD_INDEX)
D/MediaCodec(10713): keep callback message for reclaim
W/Codec2Client(10713): query -- param skipped: index = 1342179345.
W/Codec2Client(10713): query -- param skipped: index = 2415921170.
D/C2Store (10713): Using ION
D/CCodecBufferChannel(10713): [c2.android.mp3.decoder#865] Created input block pool with allocatorID 16 => poolID 17 - OK (0)
I/CCodecBufferChannel(10713): [c2.android.mp3.decoder#865] Created output block pool with allocatorID 16 => poolID 451 - OK
D/CCodecBufferChannel(10713): [c2.android.mp3.decoder#865] Configured output block pool ids 451 => OK
E/ion (10713): ioctl c0044901 failed with code -1: Invalid argument
D/MediaCodec(10713): keep callback message for reclaim
I/CCodecConfig(10713): query failed after returning 7 values (BAD_INDEX)
W/Codec2Client(10713): query -- param skipped: index = 1342179345.
W/Codec2Client(10713): query -- param skipped: index = 2415921170.
D/AudioTrack(10713): getTimestamp_l(6997): device stall time corrected using current time 466586944835654
D/BufferPoolAccessor2.0(10713): bufferpool2 0x7351c28368 : 5(40960 size) total buffers - 0(0 size) used buffers - 138/143 (recycle/alloc) - 5/276 (fetch/transfer)
```

You can clearly see this line: `int32_t bitrate = 64000`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.