Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no fallback to swdec on v3 branch #138

Closed
courville opened this issue May 15, 2019 · 5 comments
Closed

no fallback to swdec on v3 branch #138

courville opened this issue May 15, 2019 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@courville
Copy link
Contributor

mpeg4 avi container for sd video reported to not play after ndk19 and ffmpeg-4.2 migration.

@courville courville added the bug Something isn't working label May 15, 2019
@courville courville added this to the nova v3 milestone May 15, 2019
@courville
Copy link
Contributor Author

Logs attached
logcat.zip

@courville
Copy link
Contributor Author

05-15 17:45:26.095 D/PlayerService(4928): seek to 0
05-15 17:45:26.095 D/avos_player(4928): 0x7088070900|avos_mp_setavdelay: 0
05-15 17:45:26.097 D/avos_player(4928): STUFF_ZERO!
05-15 17:45:26.098 D/CCodecBufferChannel(4928): [c2.android.mpeg4.decoder#886] MediaCodec discarded an unknown buffer
05-15 17:45:26.098 D/avos_player(4928): stream_play_n_frames( 10, 0, -1 )
05-15 17:45:26.098 D/CCodecBufferChannel(4928): [c2.android.mpeg4.decoder#886] MediaCodec discarded an unknown buffer
05-15 17:45:26.098 D/CCodecBufferChannel(4928): [c2.android.mpeg4.decoder#886] MediaCodec discarded an unknown buffer
05-15 17:45:26.100 D/BufferPoolAccessor(934): bufferpool 0xed2e5148 : 0(0 size) total buffers - 0(0 size) used buffers - 0/0 (recycle/alloc) - 0/0 (fetch/transfer)
05-15 17:45:26.101 D/SimpleC2Component(934): Using output block pool with poolID 618 => got 618 - 0
05-15 17:45:26.101 E/C2SoftMpeg4Dec(934): PVInitVideoDecoder failed. Unsupported content?
05-15 17:45:26.101 D/CCodecBufferChannel(4928): [c2.android.mpeg4.decoder#886] work failed to complete: 14
05-15 17:45:26.101 E/MediaCodec(4928): Codec reported err 0xe, actionCode 0, while in state 6
05-15 17:45:26.101 E/NdkMediaCodec(4928): sf error code: -38
05-15 17:45:26.101 D/avos_player(4928): sfdec_read: mCodec->dequeueOutputBuffer returned: FFFFD8F0
05-15 17:45:26.103 E/MediaAnalyticsService(929): package_native::getInstallerForPackage failed: Unknown package: archos.openmediacenter
05-15 17:45:26.103 D/SurfaceUtils(4928): disconnecting from surface 0x7094816010, reason disconnectFromSurface
05-15 17:45:26.104 E/NdkMediaCodec(4928): sf error code: -38
05-15 17:45:26.104 E/NdkMediaCodec(4928): sf error code: -38
05-15 17:45:26.104 D/avos_player(4928): sfdec_read: mCodec->dequeueOutputBuffer returned: FFFFD8F0
05-15 17:45:26.104 E/NdkMediaCodec(4928): sf error code: -38
05-15 17:45:26.104 D/avos_player(4928): sfdec_read: mCodec->dequeueOutputBuffer returned: FFFFD8F0
05-15 17:45:26.104 E/NdkMediaCodec(4928): sf error code: -38
05-15 17:45:26.104 D/avos_player(4928): sfdec_read: mCodec->dequeueOutputBuffer returned: FFFFD8F0

@courville
Copy link
Contributor Author

OK at least on pixel3xl mpeg4 hwdec are borked.
With older v2.1 nova, fallback to swdec was triggered but not anymore on nova v3.x.
This has been lost in the ndk19 migration.

@courville
Copy link
Contributor Author

courville commented May 15, 2019

Checked with mxplayer, it reverts also on pixel3xl to swdec.

@courville courville changed the title mpeg4 regression no fallback to swdec on v3 branch May 19, 2019
@courville
Copy link
Contributor Author

After switching to 64b, check of 0xFFFFD8F0 error returned case was not handled.
Use -10000 instead.
Re-introduce the give up after 100 errors just in case.
This was lost switching from external/android/libsfdec/sfdec_mediacodec.cpp to external/android/libsfdec/sfdec_ndkmediacodec.cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants