#11676(ffmpeg:new): Broken video decoding on Android TV boxes with MediaCodec
#11676: Broken video decoding on Android TV boxes with MediaCodec --------------------------------+------------------------------------ Reporter: bl1nch | Type: defect Status: new | Priority: critical Component: ffmpeg | Version: 7.1 Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | --------------------------------+------------------------------------ Hello ffmpeg developers. I faced the problem of broken hardware video decoding on Android TV boxes with CPU Amlogic s905w2 and GPU Mali-G31 using MediaCodec. This problem occurs when using any player based on ffmpeg. I tested it with libmpv(https://github.com/mpv-player/mpv) and libmdk(https://github.com/wang-bin/mdk-sdk). I also tested with plugins for Flutter based on these video players (since I am a developer on the Flet(Flutter) framework). In some cases I get video with lags and in some strange green frames. I can give you a video sample with which you can reproduce the error. I also talked to the developers of the MPV player and they confirmed that this is a bug on the part of ffmpeg (https://github.com/mpv-android/mpv-android/issues/1088). I can also assume that this is really the case because I see exactly the same error in the logs and the same video output when using MDK. You can also see additional information here (https://github.com/media-kit /media-kit/issues/614), including an example of a green frame of the video output. I can't reproduce this error by calling ffmpeg from the command line because it happens on an Android TV box. The simplest thing I can offer from myself to reproduce this error is to build a Flutter application using any of the players (for example MDK, i.e. the fvp library (https://pub.dev/packages/fvp)). For this you can simply use the example code (https://pub.dev/packages/video_player#example) and substitute my video sample there. Please pay attention to this problem. I have not been able to figure this out for a year and now I have found out that this is a problem with ffmpeg. I am not the only one experiencing this problem and it makes it impossible to use any player built on ffmpeg on a huge number of Android TV boxes. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11676> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11676: Broken video decoding on Android TV boxes with MediaCodec ----------------------------------+---------------------------------- Reporter: bl1nch | Owner: (none) Type: defect | Status: new Priority: critical | Component: ffmpeg Version: 7.1 | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+---------------------------------- Description changed by bl1nch: Old description:
Hello ffmpeg developers. I faced the problem of broken hardware video decoding on Android TV boxes with CPU Amlogic s905w2 and GPU Mali-G31 using MediaCodec. This problem occurs when using any player based on ffmpeg. I tested it with libmpv(https://github.com/mpv-player/mpv) and libmdk(https://github.com/wang-bin/mdk-sdk). I also tested with plugins for Flutter based on these video players (since I am a developer on the Flet(Flutter) framework). In some cases I get video with lags and in some strange green frames. I can give you a video sample with which you can reproduce the error. I also talked to the developers of the MPV player and they confirmed that this is a bug on the part of ffmpeg (https://github.com/mpv-android/mpv-android/issues/1088). I can also assume that this is really the case because I see exactly the same error in the logs and the same video output when using MDK. You can also see additional information here (https://github.com/media- kit/media-kit/issues/614), including an example of a green frame of the video output.
I can't reproduce this error by calling ffmpeg from the command line because it happens on an Android TV box. The simplest thing I can offer from myself to reproduce this error is to build a Flutter application using any of the players (for example MDK, i.e. the fvp library (https://pub.dev/packages/fvp)). For this you can simply use the example code (https://pub.dev/packages/video_player#example) and substitute my video sample there.
Please pay attention to this problem. I have not been able to figure this out for a year and now I have found out that this is a problem with ffmpeg. I am not the only one experiencing this problem and it makes it impossible to use any player built on ffmpeg on a huge number of Android TV boxes.
New description: Hello ffmpeg developers. I faced the problem of broken hardware video decoding on Android TV boxes with CPU Amlogic s905w2 and GPU Mali-G31 using MediaCodec. This problem occurs when using any player based on ffmpeg. I tested it with libmpv(https://github.com/mpv-player/mpv) and libmdk(https://github.com/wang-bin/mdk-sdk). I also tested with plugins for Flutter based on these video players (since I am a developer on the Flet(Flutter) framework). In some cases I get video with lags and in some strange green frames. I can give you a video [https://drive.google.com/drive/folders/1N- qdj5BSxp9pW1nNzYGaPzoOjVokgyHs?usp=sharing sample] with which you can reproduce the error. I also talked to the developers of the MPV player and they confirmed that this is a bug on the part of ffmpeg (https://github.com/mpv-android/mpv-android/issues/1088). I can also assume that this is really the case because I see exactly the same error in the logs and the same video output when using MDK. You can also see additional information here (https://github.com/media-kit /media-kit/issues/614), including an example of a green frame of the video output. I can't reproduce this error by calling ffmpeg from the command line because it happens on an Android TV box. The simplest thing I can offer from myself to reproduce this error is to build a Flutter application using any of the players (for example MDK, i.e. the fvp library (https://pub.dev/packages/fvp)). For this you can simply use the example code (https://pub.dev/packages/video_player#example) and substitute my video sample there. Please pay attention to this problem. I have not been able to figure this out for a year and now I have found out that this is a problem with ffmpeg. I am not the only one experiencing this problem and it makes it impossible to use any player built on ffmpeg on a huge number of Android TV boxes. -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/11676#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11676: Broken video decoding on Android TV boxes with MediaCodec ----------------------------------+---------------------------------- Reporter: bl1nch | Owner: (none) Type: defect | Status: new Priority: critical | Component: ffmpeg Version: 7.1 | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+---------------------------------- Comment (by bl1nch): I just discovered that this is most likely a problem with the interaction of MediaCodec with Amlogic decoders. I forced the decoder to change from OMX.amlogic.avc.decoder.awesome2 to OMX.google.h264.decoder and I no longer have green frames in the video output. But now the video is a little laggy when playing. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11676#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11676: Broken video decoding on Android TV boxes with MediaCodec -------------------------------------+------------------------------------- Reporter: bl1nch | Owner: (none) Type: defect | Status: new Priority: critical | Component: ffmpeg Version: 7.1 | Resolution: Keywords: amlogic | Blocked By: mediacodec hwaccel | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by bl1nch): * keywords: => amlogic mediacodec hwaccel Old description:
Hello ffmpeg developers. I faced the problem of broken hardware video decoding on Android TV boxes with CPU Amlogic s905w2 and GPU Mali-G31 using MediaCodec. This problem occurs when using any player based on ffmpeg. I tested it with libmpv(https://github.com/mpv-player/mpv) and libmdk(https://github.com/wang-bin/mdk-sdk). I also tested with plugins for Flutter based on these video players (since I am a developer on the Flet(Flutter) framework). In some cases I get video with lags and in some strange green frames. I can give you a video [https://drive.google.com/drive/folders/1N- qdj5BSxp9pW1nNzYGaPzoOjVokgyHs?usp=sharing sample] with which you can reproduce the error. I also talked to the developers of the MPV player and they confirmed that this is a bug on the part of ffmpeg (https://github.com/mpv-android/mpv-android/issues/1088). I can also assume that this is really the case because I see exactly the same error in the logs and the same video output when using MDK. You can also see additional information here (https://github.com/media- kit/media-kit/issues/614), including an example of a green frame of the video output.
I can't reproduce this error by calling ffmpeg from the command line because it happens on an Android TV box. The simplest thing I can offer from myself to reproduce this error is to build a Flutter application using any of the players (for example MDK, i.e. the fvp library (https://pub.dev/packages/fvp)). For this you can simply use the example code (https://pub.dev/packages/video_player#example) and substitute my video sample there.
Please pay attention to this problem. I have not been able to figure this out for a year and now I have found out that this is a problem with ffmpeg. I am not the only one experiencing this problem and it makes it impossible to use any player built on ffmpeg on a huge number of Android TV boxes.
New description: Hello ffmpeg developers. I faced the problem of broken hardware video decoding on Android TV boxes with CPU Amlogic s905w2 and GPU Mali-G31 using MediaCodec. This problem occurs when using any player based on ffmpeg. I tested it with libmpv(https://github.com/mpv-player/mpv) and libmdk(https://github.com/wang-bin/mdk-sdk). I also tested with plugins for Flutter based on these video players (since I am a developer on the Flet(Flutter) framework). In some cases I get video with lags and in some strange green frames. I can give you a video [https://drive.google.com/drive/folders/19eGNKpI2R6fWPYPN0dtS-iQvwNcNcR2u sample] with which you can reproduce the error. I also talked to the developers of the MPV player and they confirmed that this is a bug on the part of ffmpeg (https://github.com/mpv-android/mpv-android/issues/1088). I can also assume that this is really the case because I see exactly the same error in the logs and the same video output when using MDK. You can also see additional information here (https://github.com/media-kit /media-kit/issues/614), including an example of a green frame of the video output. I can't reproduce this error by calling ffmpeg from the command line because it happens on an Android TV box. The simplest thing I can offer from myself to reproduce this error is to build a Flutter application using any of the players (for example MDK, i.e. the fvp library (https://pub.dev/packages/fvp)). For this you can simply use the example code (https://pub.dev/packages/video_player#example) and substitute my video sample there. Please pay attention to this problem. I have not been able to figure this out for a year and now I have found out that this is a problem with ffmpeg. I am not the only one experiencing this problem and it makes it impossible to use any player built on ffmpeg on a huge number of Android TV boxes. -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/11676#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg