Win32: could not negotiate format for ksvideosrc

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Tue Jun 4 12:39:08 PDT 2013


I've managed to find the cause (but not the root one): automatically
choosen resolution is invalid. I've built gst-plugins-bad with a lot
of additional debug messages [1] and it lead me to the FIXME comment
in ksvideohelpers.c:

  /* FIXME: Need to figure out how to properly handle ranges */
  if (bih->biWidth != width || bih->biHeight != height)
    return FALSE;

In my case, (width, height) = (1024, 768) and (bih->biWidth,
bih->biHeight) = (320, 240). So, running

$ gst-launch-0.10 -v ksvideosrc ! video/x-raw-rgb,width=320,height=240
! ffmpegcolorspace ! directdrawsink

works just fine, but

$ gst-launch-0.10 -v ksvideosrc ! video/x-raw-rgb ! ffmpegcolorspace !
directdrawsink

fails (the same when replacing ffmpegcolorspace ! directdrawsink with fakesink).

Any suggestions?

[1] https://build.opensuse.org/package/show?package=mingw32-gst-plugins-bad&project=home%3Atomkiewicz%3Agst0%3Aexperimental

2013/6/4 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>:
> Hi,
>
> I'm trying to get any working video source for Windows. I've managed
> to build gst-plugins-bad-0.10 with winks support (see my OBS project
> [1]), but it doesn't seems to work: I get "Could not negotiate format"
> error message (see below)
>
> $ ./gst-launch-0.10 -v ksvideosrc ! fakesink
> (...)
> ERROR: from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
> Could not negotiate format
> gstbasesrc.c(2830): gst_base_src_start ():
> /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
> Check your filtered caps, if any
> (...)
>
> I tried to look at its output with GST_DEBUG="*:4" set, but I don't
> see anything what could help me. I've extracted lines that are
> interesting in my opinion [2] and the full log [3].
>
> Please, help me determining, why it doesn't work for me. At least,
> please point me the direction, where I could make further steps.
>
> Tomek
>
> [1] https://build.opensuse.org/project/show?project=home%3Atomkiewicz%3Agst0
> [2] http://pastebin.com/raw.php?i=wxTQaGht
> [3] https://dl.dropboxusercontent.com/u/5448886/pidgin-debug/winks-negotiation-full.txt


More information about the gstreamer-devel mailing list