[Bug 794593] New: [Android] AMC encodebin fails with "Internal data stream error."

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 22 10:38:31 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794593

            Bug ID: 794593
           Summary: [Android] AMC encodebin fails with "Internal data
                    stream error."
    Classification: Platform
           Product: GStreamer
           Version: 1.12.4
                OS: other
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: denis.shienkov at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 370001
  --> https://bugzilla.gnome.org/attachment.cgi?id=370001&action=edit
Stertup code

I want to use an Android's HW h264 encoder (instead of SW x264enc) to encode a
video stream.

In my code I use simple pipeline:

[code]
...
    const QByteArray launch = "videotestsrc name=appsrc "
                              "! amcvidenc-omxbrcmvideoh264hwencoder
name=videoenc "
                              "! rtph264pay name=pay "
                              "! udpsink name=udpsink";
    GError *error = nullptr;
    m_pipeline = ::gst_parse_launch(launch.constData(), &error);
...
    const auto status = ::gst_element_set_state(m_pipeline,
                                                GST_STATE_PLAYING);
...
[/code]

All functions returns successfully, but from the logs I see following errors:

[quote]
D/GStreamer+amcvideoenc(17480): 0:00:41.004486081 0x56d05890
gstamcvideoenc.c:856:gst_amc_video_enc_handle_output_frame:<videoenc> got
codecconfig in byte-stream format
D/GStreamer+amcvideoenc(17480): 0:00:41.007110593 0x56d05890
gstamcvideoenc.c:1070:gst_amc_video_enc_loop:<videoenc> Finished frame:
not-negotiated
W/GStreamer+amcvideoenc(17480): 0:00:41.008331296 0x56d05890
gstamcvideoenc.c:1143:gst_amc_video_enc_loop:<videoenc> error: Internal data
stream error.
W/GStreamer+amcvideoenc(17480): 0:00:41.009124753 0x56d05890
gstamcvideoenc.c:1143:gst_amc_video_enc_loop:<videoenc> error: streaming
stopped, reason not-negotiated (-4)
[/quote]

I don't know what I han fix this.

Please see attachments with my code and full log with ("amc*:6") debug level.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list