GNOME Bugzilla – Bug 703712
avvideoscale negotiation error
Last modified: 2015-02-24 12:46:25 UTC
Created attachment 248524 [details] [review] In the attached file I have fixed the issue described above I am using gstreamer-1.1.1 version. When I was testing the pipeline with following command, I found negotiation errors. gst-launch-1.0 filesrc location=720p_504f.yuv ! videoparse width=1280 height=720 ! avvideoscale ! video/x-raw,width=176,height=144 ! filesink location=176x144_504f.yuv To reproduce this issue, run above command with any 720P yuv input. Later I further debugged this issue and found the solution. I have attached a patch for this issue. Can anybody confirm the issue and patch??
Created attachment 248525 [details] [review] the patch contains the solution for the bug reported Discard my previous attachment.
Comment on attachment 248525 [details] [review] the patch contains the solution for the bug reported 307a308,309 > /* Fix for negotiation error */ > othercaps = gst_caps_truncate (othercaps); 446c448 < gst_ffmpeg_caps_to_pixfmt (const GstCaps * caps) --- > gst_ffmpeg_caps_to_pixfmt (GstVideoInfo info) 448d449 < GstVideoInfo info; 451,455d451 < GST_DEBUG ("converting caps %" GST_PTR_FORMAT, caps); < < if (gst_video_info_from_caps (&info, caps)) < goto invalid_caps; < 537,538c533,534 < scale->in_pixfmt = gst_ffmpeg_caps_to_pixfmt (incaps); < scale->out_pixfmt = gst_ffmpeg_caps_to_pixfmt (outcaps); --- > scale->in_pixfmt = gst_ffmpeg_caps_to_pixfmt (scale->in_info); > scale->out_pixfmt = gst_ffmpeg_caps_to_pixfmt (scale->out_info);
Created attachment 248526 [details] [review] sorry for all the mess. please consider the latest patch
Please attach a patch in "git format-patch" style or at least a unified diff.
(In reply to comment #4) > Please attach a patch in "git format-patch" style or at least a unified diff. Could you please tell me how to generate "git format-patch" style??
You commit it locally in your git checkout. It should be the first entry in "git log" then. Make sure your name + e-mail address is set properly, and you have a commit message. Then you do git format-patch -1 which should create a file called 0001-*.patch which you then attach to this bug.
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 742817 ***