Bitmap to JPEG encoder

Wolfgang Grandegger wg at grandegger.com
Mon May 28 15:24:44 UTC 2018


Hello,

I'm rather new to GSTreamer. I want to JPEG encode an RGB video stream
and send it to the network e.g. with the command:

  # gst-launch-1.0 -v videotestsrc \
    ! video/x-raw,format=RGB,width=640,height=480,framerate=30/1 \
    ! vaapijpegenc quality=90 \
    ! rtpjpegpay ! udpsink host=192.168.0.254 port=5678
  Setting pipeline to PAUSED ...
  Pipeline is PREROLLING ...
  Got context from element 'vaapiencodejpeg0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm1";
  ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
  Additional debug info:
  gstbasesrc.c(2939): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
  streaming stopped, reason not-negotiated (-4)
  ERROR: pipeline doesn't want to preroll.
  Setting pipeline to NULL ...
  Freeing pipeline ...

This command works fine with the "NV12" format but fails with "RGB".
Also "jpegenc" does not like it. Obviously, I missed something!?

Any help is appreciated.

Thanks,

Wolfgang.


More information about the gstreamer-devel mailing list