[Bug 756422] New: rtpj2kpay doesn't work

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Oct 12 01:55:00 PDT 2015


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

            Bug ID: 756422
           Summary: rtpj2kpay doesn't work
    Classification: Platform
           Product: GStreamer
           Version: 1.6.0
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: poganoe at mail.ru
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

As described in bug 745187, streaming with rtpj2kpay and opejpegenc doesn't
work.

I tried using jpeg2000 codec from libav. After applying patch to
ext/libav/gstavcodecmap.c, as suggested in bug 756288, pipeline just with
encoder/decoder does work:
gst-launch-1.0 videotestsrc ! videoconvert  ! avenc_jpeg2000 ! avdec_jpeg2000 !
videoconvert ! autovideosink

However, when I tried linking avenc_jpeg2000 to rtpj2kpay I got internal data
flow error, because sink format from avenc_jpeg2000 is "image/x-j2c" and
rtpj2kpay wants image/x-jpc" as source format.

I was able to "fix" this by modifying already patched code (though I'm not sure
it was right thing to do):

    case AV_CODEC_ID_JPEG2000:
      caps =
          gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/x-j2c",
          NULL);
      if (!encode) {
        gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
                encode, "image/x-jpc", NULL));
        gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
                encode, "image/jp2", NULL));
      }
      break;

I just swapped "image/x-j2c" and "image/x-jpc", so now pipeline doesn't produce
internal data flow error:

gst-launch-1.0 videotestsrc ! videoconvert  ! avenc_jpeg2000 ! rtpj2kpay !
rtpj2kdepay ! avdec_jpeg2000 ! videoconvert ! autovideosink

However, it still doesn't work, nothing happens.

This pipeline still works though:
gst-launch-1.0 videotestsrc ! videoconvert  ! avenc_jpeg2000 ! avdec_jpeg2000 !
videoconvert ! autovideosink

So I'm starting to suspect that a problem lays in rtpj2kpay/depay.

-- 
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