<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">On 1.14.5, I’m trying to process a raw MJPEG file without metadata and need to set a framerate. It looks like this should be possible (see <a href="https://github.com/GStreamer/gst-plugins-bad/blob/1.14.5/gst/jpegformat/gstjpegparse.c#L177" class="">https://github.com/GStreamer/gst-plugins-bad/blob/1.14.5/gst/jpegformat/gstjpegparse.c#L177</a>) but the following doesn’t work for me:</div><div class=""><br class=""></div><div class=""><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">$ GST_DEBUG=jpegparse:6 gst-launch-1.0 -ve filesrc location=src.mjpeg ! 'image/jpeg,framerate=5/1' ! jpegparse ! 'image/jpeg,framerate=5/1' ! fakesink</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">Setting pipeline to PAUSED ...</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">Pipeline is PREROLLING ...</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160314200  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:253:gst_jpeg_parse_get_image_length: Parsing jpeg image data (65536 bytes)</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160466154  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:257:gst_jpeg_parse_get_image_length: Parse state: offset=0, resync=0, entropy len=0</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160541985  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:321:gst_jpeg_parse_get_image_length: 0x00000002: tag c0, frame_len=17</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160610816  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:321:gst_jpeg_parse_get_image_length: 0x00000015: tag db, frame_len=132</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160677314  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:321:gst_jpeg_parse_get_image_length: 0x0000009b: tag c4, frame_len=418</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160742645  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:321:gst_jpeg_parse_get_image_length: 0x0000023f: tag da, frame_len=12</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160802435  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:331:gst_jpeg_parse_get_image_length: 0x0000023f: finding entropy segment length</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160935139  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:350:gst_jpeg_parse_get_image_length: entropy segment length=4224 => frame_len=4236</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.160994637  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:296:gst_jpeg_parse_get_image_length: 0x000012cd: EOI marker</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.161475413  2362   0x55a4575d40 LOG                jpegparse gstjpegparse.c:818:gst_jpeg_parse_handle_frame:<jpegparse0> parsed image of size 4815</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.161570202  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:640:gst_jpeg_parse_read_header:<jpegparse0> marker = d8</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.161608118  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:640:gst_jpeg_parse_read_header:<jpegparse0> marker = c0</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.161658283  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:454:gst_jpeg_parse_sof:<jpegparse0> Header parsed</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.161714864  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:719:gst_jpeg_parse_set_new_caps:<jpegparse0> setting caps on srcpad (hdr_ok=1, have_fps=0)</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">0:00:00.161874693  2362   0x55a4575d40 DEBUG              jpegparse gstjpegparse.c:750:gst_jpeg_parse_set_new_caps:<jpegparse0> setting downstream caps on jpegparse0:src to image/jpeg, parsed=(boolean)true, format=(string)UYVY, width=(int)192, height=(int)192, framerate=(fraction)1/1</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">/GstPipeline:pipeline0/GstJpegParse:jpegparse0.GstPad:src: caps = image/jpeg, parsed=(boolean)true, format=(string)UYVY, width=(int)192, height=(int)192, framerate=(fraction)1/1</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">ERROR: from element /GstPipeline:pipeline0/GstJpegParse:jpegparse0: Internal data stream error.</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">Additional debug info:</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">gstbaseparse.c(3611): gst_base_parse_loop (): /GstPipeline:pipeline0/GstJpegParse:jpegparse0:</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">streaming stopped, reason not-negotiated (-4)</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">ERROR: pipeline doesn't want to preroll.</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">Setting pipeline to NULL ...</font></div><div class=""><font face="SourceCodePro-Regular" style="font-size: 12px;" class="">Freeing pipeline ...</font></div></div><div class=""><br class=""></div><div class="">It seems the srcpad on jpegparse will only accept a framerate 1/1. Also note that <font face="SourceCodePro-Regular" class="">have_fps=0</font> in the debug output, contrary to my expectations.</div><div class=""><br class=""></div><div class="">Can anyone help?</div><div class=""><br class=""></div><div class="">Cheers</div><div class="">Michal</div></body></html>