How and why v4l2src able to take YV12 format?

jeyp4 jaiforfriend at gmail.com
Thu Nov 21 15:10:15 UTC 2019


Yes, I saw meson-log.txt. libv4l2 was not detected.

I installed libv4l-dev.
sudo apt-get install libv4l-dev

meson setup --wipe build/

Now lib4l2 was detected.
Dependency libv4l2 found: YES (cached)
Running compile:
Working directory: 
/media/jai/Entertainment/Software/gstreamer/gst-build/build/meson-private/tmpk8bu0t3i
Command line:  cc
/media/jai/Entertainment/Software/gstreamer/gst-build/build/meson-private/tmpk8bu0t3i/testfile.c
-pipe -E -P -D_FILE_OFFSET_BITS=64 -P -O0 

Code:
 
        #ifdef __has_include
         #if !__has_include("libv4l2.h")
          #error "Header 'libv4l2.h' could not be found"
         #endif
        #else
         #include <libv4l2.h>
        #endif
Compiler stdout:
 
Compiler stderr:
 
Has header "libv4l2.h" with dependency libv4l2: YES 

ninja -C build/

Still gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=5000 !
'video/x-raw,format=(string)YV12,width=1280,height=720' ! xvimagesink
pipeline is not working
meson-log.txt
<http://gstreamer-devel.966125.n4.nabble.com/file/t379085/meson-log.txt>  



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list