GNOME Bugzilla – Bug 758933
issue about intel(x86) does not provide slice_height and otherwise.
Last modified: 2018-11-03 13:43:48 UTC
Created attachment 316637 [details] patch file, original gstamc.c, modified gstamc.c, logs about amc Hello I'm trying to build a movie player based on gstreamer android, x86 processor (Intel Z3835F). I want to play an mp4 media file whose video codec is h264/avc but gstreamer printed below: "Error received from element amcvideodec-omxintelhwvdh264-n: Gstreamer encountered a general supporting library error " So, I modified ${SDK}/gst-plugins-bad-1.0-static-1.5/sys/androidmedia/gstamc.c like below: gboolean gst_amc_color_format_info_set (GstAmcColorFormatInfo * color_format_info, const GstAmcCodecInfo * codec_info, const gchar * mime, gint color_format, gint width, gint height, gint stride, gint slice_height, gint crop_left, gint crop_right, gint crop_top, gint crop_bottom) { ... if (g_str_has_prefix (codec_info->name, "OMX.Intel.")) { // added OMX.Intel. part slice_height = height; } ... Then just play (never seek) was well but when i jumped to any position of media, gstreamer printed below: "Error received from element amcvideodec-omxintelhwvdh264-n: No valid frames decoded before end of stream" Unfortunately, I couldn't find any information about x86-based plugins. How could i play a .mp4 media file (h264/avc)? What did I miss? Thank you for reading.
Processor: Intel Atom z3835F (x86) OS: Android 4.4.4 Test application: gstreamer-tutorial-5 (x86 build) Test media file: 640x480 / h.264, avc (video) / AAC (audio) other media files (wmv9, mpeg-4, ...) are able to seek.
Are these other media files also using the Intel hardware codecs?
Using OMX.Intel.VideoDecoder.MPEG codec files play well but, using OMX.Intel.hw_vd.h265 and OMX.Intel.hw_vd.h264 codec files cannot play well. I don't know about codecs well, sorry. By the way I found something that when i used the SDK version 1.4.4 (x86) & 1.4.5 (x86) gstreamer can play h264 media files well. But if SDKs version over 1.5.1 (x86), same problems occur such as "Error received from element amcvideodec-omxintelhwvdh264-n". Could you tell me what is the cause of this difference? Thank you.
Someone with access to this hardware would have to debug it. And look at the changes that happened between 1.4.5 and 1.5.1
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/332.