Hi everybody,
I'm fairly new to gstreamer, so excuse if this is trivial. I have a working pipeline in linux using : descr = g_strdup_printf ("v4l2src device=/dev/video0 ! video/x-raw,format=GRAY16_LE ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! appsink name=sink"); data->pipe = gst_parse_launch (descr, &error); Now I am trying to get the equivalent code for windows. I was trying by changing the source, using: /ksvideosrc device-name=*device-name*/ instead of: /v4l2src device=/dev/video0/ This returns: /No element ksvideosrc/ However, if I execute on the cmd : gst-launch-1.0 ksvideosrc device-name=*device-name* ! video/x-raw,format=GRAY16_LE ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! autovideosink it works just fine. Since ksvideosrc works on the command line but not on the code, I am guessing that some kind of include, library ... is missing. I have tried including basically every .dll and library. I used both gstreamer runtime and development installers on complete mode. Any idea on what can it be? Kind regards, Raul. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
try the same with videotestsrc, It maybe that the environments in which they are running are different. /PATH,GST_PLUGIN_PATH). Gruesse -----Ursprüngliche Nachricht----- Von: gstreamer-devel <[hidden email]> Im Auftrag von rfn Gesendet: Mittwoch, 3. März 2021 17:24 An: [hidden email] Betreff: no element ksvideosrc Hi everybody, I'm fairly new to gstreamer, so excuse if this is trivial. I have a working pipeline in linux using : descr = g_strdup_printf ("v4l2src device=/dev/video0 ! video/x-raw,format=GRAY16_LE ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! appsink name=sink"); data->pipe = gst_parse_launch (descr, &error); Now I am trying to get the equivalent code for windows. I was trying by changing the source, using: /ksvideosrc device-name=*device-name*/ instead of: /v4l2src device=/dev/video0/ This returns: /No element ksvideosrc/ However, if I execute on the cmd : gst-launch-1.0 ksvideosrc device-name=*device-name* ! video/x-raw,format=GRAY16_LE ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! autovideosink it works just fine. Since ksvideosrc works on the command line but not on the code, I am guessing that some kind of include, library ... is missing. I have tried including basically every .dll and library. I used both gstreamer runtime and development installers on complete mode. Any idea on what can it be? Kind regards, Raul. -- Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=04%7C01%7C%7Ca8b27179f76145acceb008d8de6e3996%7C28042244bb514cd680347776fa3703e8%7C1%7C1%7C637503912290502131%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=f0i95EtE1t5tgrqUPHZC0FMhwjDwUR8iPufgOVxk400%3D&reserved=0 _______________________________________________ gstreamer-devel mailing list [hidden email] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=04%7C01%7C%7Ca8b27179f76145acceb008d8de6e3996%7C28042244bb514cd680347776fa3703e8%7C1%7C1%7C637503912290502131%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=xXkxn8ZBe7BbU%2FhXBQJ8KFnO7Up3AsZNBPsZc14dFX0%3D&reserved=0 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by rfn
C:\gstreamer\1.18.0\msvc_x86_64\bin>gst-inspect-1.0.exe ksvideosrc Factory Details: Rank primary (256) Long-name KsVideoSrc Klass Source/Video/Hardware Description Stream data from a video capture device through Windows kernel streaming Author Ole Andr? Vadla Ravn?s <[hidden email]> Haakon Sporsheim <[hidden email]> Andres Colubri <[hidden email]> Plugin Details: Name winks Description Windows kernel streaming plugin Filename C:\gstreamer\1.18.0\msvc_x86_64\lib\gstreamer-1.0\gstwinks.dll Version 1.18.3 License LGPL Source module gst-plugins-bad Source release date 2021-01-13 Binary package GStreamer Bad Plug-ins source release Origin URL Unknown package origin _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |