I am using the RidgeRun SDK and will like to know if there are source code or ideas on how to capture video.
Including gst/gst.h file in a simpl;e program gave me lots of errors like
/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gstxml.h:94: error: expected declaration specifiers before ‘G_END_DECLS’In file included from test.c:3:/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:84: error: expected declaration specifiers or ‘...’ before ‘GError’/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:84: error: ‘gst_init_check’ declared as function returning a function/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:85: error: expected declaration specifiers before ‘GOptionGroup’/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:88: error: expected ‘)’ before ‘*’ token/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:90: error: expected declaration specifiers before ‘gchar’/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:92: error: ‘gst_segtrap_is_enabled’ declared as function returning a function/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:95: error: ‘gst_registry_fork_is_enabled’ declared as function returning a function/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:98: error: ‘gst_update_registry’ declared as function returning a function/home/kappiah/DM355SDK789311/fs/apps/gstreamer-0.10.23/src/gst/gst.h:100: error: expected declaration specifiers before ‘G_END_DECLS’test.c:38: error: old-style parameter declarations in prototyped function definitiontest.c:38: error: expected ‘{’ at end of inputmake[3]: *** [build] Error 1Error building testmake[2]: *** [dependency_build] Error 1make[1]: *** [myapps_build] Error 1make: *** [fs_build] Error 2
Anyone successfully used this header file or ideas on how to write programs to process the camera data stored in RAM with the RR SDK. Any idea will be very much welcomed.
Hi,
On RidgeRun SDK, you could find on:
/home/kappiah/DM355SDK789311/myapps/gst-hello-app
This is a Gstreamer Audio player example, this should compile without problems
using the SDK.
Regards,
Maria
Thanks Maria.
That is a good pointer. It certainly compiled with no problems. Hope I can do the same for a Video player example.
Hi maria,
İ download the LeopardSDK-840402-Linux-x86-Install from the RR site and in my ubuntu 9.. OS,and i installed that package to the /opt/DVSDK.... . I checked the /Myapps and /apps Hello , gst-hello-app , but i couldn't have a succes on may leopard board. İ wanted to build the hello.c and gst-hello-app by using GCC in "ubuntu" but i had errors on them. it was like that ," could't find "gst.h" or something " and it is again on the leopardboard page VGA demo .
How can i built the "*.c" files, what are the rwquired packages exactly . do i have to isntall that packages or a gcc on my leopard board linux or ,on ubuntu later "*.o" file and
in minicom window --> "./hello.o" , i am a little confused and i cant work with g-stream (even gst-hello-app,i cant built and i cant run it on my leopard board),and i have a vgacam and dm355 of course i want to use a live stream with the board. isn't there a link to tell us more "simple" than a hello app for beginning step by step.
Now i can isntall uboot ,linux image and i can only see linux directories with my minicom screen,i can run simple "c/c++" applications on the board like text ,stdio.h applications ,but i cant do anyting with gstream and vga cam.
Good days
Hi serkan,
Here are some interesting links, the SDK User Start Guide among others
developer.ridgerun.com/.../SDK_User_Guide
wiki.davincidsp.com/.../Installing_RR_free_SDK_for_Leopard_Board
designsomething.org/.../172.aspx
If you are using the RRSDK to compile and deploy the gst-hello-app
you just need to execute:
$ make config (this will let you to the configmenu, there you select the following)
---> User Application
---->[*]Sample GStreamer Hello, World! example
Exit
Then execute:
$make
And finally:
$make install
This will deploy the application on the target filesystem. To execute it, enter to minicom and execute the binary
#/ gst-hello-app
You can use the documetation and this example as a start point to create your own gstreamer applications.
To use the VGA cam , once you have done 'make' and 'make install' command sucessfully,
you need to enter to the target filesystem using minicom, or any other similar application
and then you could test the cam running some gstreamer pipelines, for example this link show you how to run a pipeline of video streaming that captures, encodes and transmit via udp and using the RTP protocol.
designsomething.org/.../106.aspx
Hi Maria,
I take it that from this pipeline one can view that output of the VGA camera on a PC.
what if i want to record the video on the PC.
Also, i have seen a thread from you which records the video on the leopardboard, how can one transfer files fom the board to the PC?
Regards
Hi, appkof
Well, I have not tried to do anything you asked, but may be you could try to record the streaming video using the VLC media player, directly in the PC. I think there are some Advanced options to save the stream, or you could try to stream the video and save the file on the leopardboard at the same time using a pipeline. I dont know exactly what you are trying to do, but you may have a NFS in your PC.
Thanks Maria. You are right; all I want is a copy of the video for offline analysis. I will try the VLC option. Again if I use your earlier pipeline to stream and save on the leopard board, how do I get a copy of that file on my PC? I have been transferring files from the host PC (~/fs/fs/examples) to the board with make install, but never tried transferring files from the board to the PC. How do I go about that?