GNOME Bugzilla – Bug 664232
Doesn't work: camerabin2 image-capture-encoder=pngenc
Last modified: 2011-11-16 23:05:01 UTC
Porting a QtGst application from our custom pipeline to camerabin2 I noticed that it won't work if I use pngenc as the encoder. Tried to do: "gst-launch camerabin2 image-capture-encoder=pngenc" getting the following output: ERROR: Pipeline doesn't want to pause. ERROR: from element /GstCameraBin2:camerabin20/GstImageCaptureBin:imagebin: Internal GStreamer error: negotiation problem. With camerabin1 it seems to work: gst-launch camerabin image-encoder=pngenc I can provide any kind of feedback so just ask for it!
Are you using latest camerabin2 from git? Looks like you're using an old version of it. The git version has lots of improvements. Latest camerabin2 uses encoding profiles instead of passing element instances. Instead of passing pngdec, you have to create a encoding profile for png and set that as the 'image-profile'. Check the docs on top of camerabin2 source file on -bad for the latest usage info: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/camerabin2/gstcamerabin2.c If you have further doubts on the usage, you can use the gstreamer devel mailing list for asking questions.
Wow quick reply! this motivate me even more to complete the porting :) I'm using the 0.10.22 so I guess it is too old. Will setup git and try again, thanks!