<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hello</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I'm trying to build a movie player based on gstreamer android, x86 processor (Intel Z3835F).</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I want to play an mp4 media file whose video codec is h264/avc but gstreamer printed below:
<span style="font-family:arial,sans-serif">"Error received from element amcvideodec-omxintelhwvdh264-n: Gstreamer encountered a general supporting library error "</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">So, I modified ${SDK}/gst-plugins-bad-1.0-static-1.5/sys/androidmedia/gstamc.c like below:</pre><pre style=""><font color="#000000"><span style="white-space:pre-wrap">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)
{
</span></font><span style="white-space:pre-wrap;color:rgb(0,0,0);font-family:arial,sans-serif"> ...
</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap"> if (g_str_has_prefix (codec_info->name, "OMX.Intel.")) {</span></pre><pre style=""><span style="white-space:pre-wrap;color:rgb(0,0,0);font-family:arial,sans-serif"> // added OMX.Intel. part
</span><span style="white-space:pre-wrap;color:rgb(0,0,0);font-family:arial,sans-serif"> slice_height = height;
</span><span style="white-space:pre-wrap;color:rgb(0,0,0);font-family:arial,sans-serif"> }
...</span></pre><pre style="">Then just play (never seek) was well but when i jumped to any position of media, gstreamer printed below:
"<span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial,sans-serif">Error received from element amcvideodec-omxintelhwvdh264-n: </span><span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial,sans-serif">No valid frames decoded before end of stream"</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Unfortunately, I couldn't find any information about x86-based plugins.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">How could i play a .mp4 media file (h264/avc)?</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">What did I miss?
</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Thank you for reading.</pre>
</div>