向gst_video_convert_sample()添加属性

时间:2019-06-21 07:38:04

标签: gstreamer

我正在尝试从流中捕获jpeg快照,就像 此处列出的示例: https://github.com/rubenrua/GstreamerCodeSnippets/blob/master/C/takepic.c

它实际上有效,但是我无法传递jpegenc的“ quality”属性:

GstCaps *caps; 
GstSample *from_sample, *to_sample; 
caps = gst_caps_from_string("image/jpeg, quality=99"); //doesn't work!
to_sample = gst_video_convert_sample (from_sample, caps, GST_CLOCK_TIME_NONE, &err); 

请帮助

0 个答案:

没有答案