[PD] [OT] get video stream with pdgst from XIMEA camera

Jack jack at rybn.org
Thu Aug 22 18:40:01 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
> On 08/22/13 18:05, Jack wrote:
>>  When I compile streamViewer.cpp which contains the gstreamer pipe
>> finishing by : v4l2sink device=/dev/video2, i get no error.
>> And after :
>> $ ./streamViewer
>> the application runs as expected.
>
>
> you might try to create a slightly more complex pipeline, that outputs
> to both v4l2sink *and* autovideosink (so you can see whether the
> pipeline is running).
>
>>
>> In Pd, i open the help patch about [pix_video] and send the message
>> [driver v4l2, device 2( to [pix_video].
>> I expect to get the stream, but i get (in the pd console) :
>> Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type
>> v4l: failed opening device: '/dev/video2'
>>
>> So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is
>> wrong after the modification.
>> How can i solve this problem ?
>
> try raising the verbosity of streamViewer, to see what it really does:
>  ./streamViewer --gst-debug-level=4
I get that in the terminal when it is running :

0:00:21.907218447 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1073479680 >= 200000)
0:00:21.907237033 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:<streamViewer> queueing
buffer 0x7fd1f80ef210
0:00:21.923285100 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1074790400 >= 200000)
0:00:21.923321131 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1074790400 >= 200000)
0:00:21.923332968 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:<streamViewer> queueing
buffer 0x7fd1f80ef2b0
0:00:21.939656140 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1076101120 >= 200000)
0:00:21.939721014 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1076101120 >= 200000)
0:00:21.939748951 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:<streamViewer> queueing
buffer 0x7fd1f80ef350
0:00:21.955868740 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1077411840 >= 200000)
0:00:21.955912125 12629 0x7fd1f8001e00 DEBUG                 appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:<streamViewer> queue
filled (1077411840 >= 200000)
>
>
> check what happens to the videodevice when streamViewer should write
to it.
> try:
>  v4l2-ctl --all -d /dev/video2
> to see the mode of the device.
$ v4l2-ctl --all -d /dev/video2
Failed to open /dev/video2: No such file or directory
>
> also check /sys/devices/virtual/video4linux/video2/format whether the
> format has been set correctly.
$ cat /sys/devices/virtual/video4linux/video2/format
cat: /sys/devices/virtual/video4linux/video2/format: No such file or
directory

It seems there is a problem when I see : queue filled (1077411840 >=
200000) ?
Thanks to help me to solve this problem !
++

Jack


>
>
> fgmasdr
> IOhannes
>
>
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFj7hAAoJEOuluecjw8GUGrQH/1kkszHPI+IRZmhW2xiICXE1
ZCv7OjXmlykrgwMZJjus3gnZf7VpbLoaGYRg/1RytBAdE9zYI/v0WUyO/3j9/lXt
kijg42gMiShRo+5RpsH1UzUH5smL2qOlvnaR3VpP2mWvBD68lVK5F7kOJJZXqCf1
vdX44hcklveDX4VfxIJnELyu+wEpM3IjSpTxuDXZTpCEueCwmOeqWpE/9tKlzafF
wGdtYzJnsbicRdpArYbFPD8omXDTD49WzA1dtxd0isiuDPQcWyLgla9m2xTMiEEg
mX+2Shp1Pm5DxrWPCR/3uDJNNn1QYNM4vdt+1/M4+DMl62w9ijAXsq5Rr3pNXS8=
=S38u
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130822/e2cd1572/attachment-0001.htm>


More information about the Pd-list mailing list