After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758933 - issue about intel(x86) does not provide slice_height and otherwise.
issue about intel(x86) does not provide slice_height and otherwise.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.6.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-02 01:05 UTC by ji su
Modified: 2018-11-03 13:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch file, original gstamc.c, modified gstamc.c, logs about amc (36.64 KB, application/x-zip-compressed)
2015-12-02 01:05 UTC, ji su
Details

Description ji su 2015-12-02 01:05:46 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.
Comment 1 ji su 2015-12-02 01:13:16 UTC
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.
Comment 2 Sebastian Dröge (slomo) 2015-12-02 08:18:36 UTC
Are these other media files also using the Intel hardware codecs?
Comment 3 ji su 2015-12-02 09:24:21 UTC
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.
Comment 4 Sebastian Dröge (slomo) 2015-12-02 09:30:35 UTC
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
Comment 5 GStreamer system administrator 2018-11-03 13:43:48 UTC
-- 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.