[Bug 731204] New: androidmedia: androidsink for video/audio hw decode&output

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 4 06:12:18 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731204
  GStreamer | gst-plugins-bad | git

           Summary: androidmedia: androidsink for video/audio hw
                    decode&output
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: fykcee1 at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


gstamcvideodec/gstamcaudiodec can leverage hw decoding through mediacodec.
Though, for gstamcvideodec, color format converting will always be a headache.

The mediacodec can decode and render to surface directly, hence an androidsink
which eats encoded frames is feasible, which saving many color format
converting/copying.

For gstamcvideodec, the reference java code:
https://github.com/google/grafika/blob/master/src/com/android/grafika/MoviePlayer.java
i.e.:
1. configure the decoder with a surface
2. releaseOutputBuffer with second param = true (which we need to change the
function gst_amc_codec_release_output_buffer, see
http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/sys/androidmedia/gstamc.c#n1081)

This may somewhat be a 'playsink' on android?

Note, it may need to add some signals in this androidsink, which will be emited
if the decoder stalls(i.e. dequeue output buffer timeout -- observed on some
devices), then client can restart androidsink to workaround this.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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