Hardware setup - LeopardBoard DM365
From RidgeRun Developer Connection
(→Video composite input board - LI-VI365)
(→5Mpx Camera Module - LI-5M03)
|Line 21:||Line 21:|
Revision as of 14:06, 6 July 2011
This page shows the steps necessary to setup the different hardware modules available for the LeopardBoard DM365. The instructions provided are based in the SDK 2011Q2 for LeopardBoard DM365.
5Mpx Camera Module - LI-5M03
In order to activate the camera module it is necessary to build the kernel with the MT9P031 sensor driver. You can find this driver at the following path into the configuration window:
-> Kernel configuration -> Device Drivers -> Multimedia support (MEDIA_SUPPORT [=y]) -> Video capture adapters (VIDEO_CAPTURE_DRIVERS [=y])
And select the option mt9p031 support as is shown in the figure 2. Once you have selected the driver for your camera module exit the configuration window and save the changes made. Now you can rebuild your SDK by running the make command and install it into the board running the make install command.
In order to test the module has been built correctly you can run the following GStreamer pipeline which will record 500 buffers of video and store them into a video file called video_camera_capture.mp4. Once the video has been recorded it can be played using any multimedia player such as VLC or mplayer.
gst-launch -e v4l2src always-copy=false ! video/x-raw-yuv,format=\(fourcc\)NV12, width=1280, height=720, framerate=\(fraction\)23/1 ! \ dmaiaccel ! dmaienc_h264 encodingpreset=2 ratecontrol=4 ! dmaiperf ! queue ! qtmux ! filesink location=video_h264_no_audio.mp4
Video composite input board - LI-VI365
There is a video composite input board which allows to capture video from either a composite input or a S-Video input. The module is shown in the figure 3.
In order to activate this module you need to activate the Texas Instruments TVP514x video decoder driver in the following path into the configuration window of the SDK (See figure 4):
-> Kernel configuration -> Device Drivers -> Multimedia support (MEDIA_SUPPORT [=y]) -> Video capture adapters (VIDEO_CAPTURE_DRIVERS [=y]) -> Autoselect pertinent encoders/decoders and other helper -> Encoders/decoders and other helper chips
Note: in order to use the LI-VI365 module it is necessary to desactivate the MT9P031 camera sensor driver.
Once you have selected the driver for the module, you can save all the changes and rebuild your SDK by running the make command and finally install it into your board running the make install command.
In order to verify that the new module was installed correctly you can run the following GStreamer command which will capture a video from the composite input of the module and record it to a video file called composite_capture_module.mp4, then you can reproduce the video file with any multimedia application such as VLC or mplayer.