• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM816x, C6A816x and AM389x Processors Forum » DM816x example applications with video capture (saLoopBack) / gstreamer pipelines with video input
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

DM816x example applications with video capture (saLoopBack) / gstreamer pipelines with video input

DM816x example applications with video capture (saLoopBack) / gstreamer pipelines with video input

This question is answered
Lo
Posted by Lo
on Aug 16 2012 07:51 AM
Intellectual2835 points

Hello,

When I try to run any application from the example applications that use video input (e.g. saLoopBack) they fail when opening the video input device:

root@dm816x-evm:~/bin# ./saLoopBack
failed to open capture device
Error in opening capture device for channel 0

As described in the wiki: http://processors.wiki.ti.com/index.php/TI81XX_Video_Capture_Driver_User_Guide

The gstreamer pipelines also can't access the video inputs:

root@dm816x-evm:~/bin# gst-launch v4l2src device=/dev/video1 always-copy=false queue-size=11 ! 'video/x-raw-yuv-st
rided,format=(fourcc)YUY2,width=1280,height=720,framerate=(fraction)60/1' ! omxbufferalloc numBuffers=11 ! gstperf
 ! v4l2sink min-queued-bufs=2
Setting pipeline to PAUSED ...
** (gst-launch-0.10:1371): CRITICAL **: gst_v4l2sink_sync_rotation: assertion `v4l2_ioctl (fd, VIDIOC_S_CTRL, &control) >= 0' failed
** (gst-launch-0.10:1371): CRITICAL **: gst_v4l2sink_sync_rotation: assertion `v4l2_ioctl (fd, VIDIOC_S_CTRL, &control) >= 0' failed
** (gst-launch-0.10:1371): CRITICAL **: gst_v4l2sink_sync_flip: assertion `v4l2_ioctl (fd, VIDIOC_S_CTRL, &control) >= 0' failedERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video1' is not a capture device.
Additional debug info:
v4l2_calls.c(515): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x4000002
Setting pipeline to NULL ...
Freeing pipeline ...

wiki: http://processors.wiki.ti.com/index.php/DM81xx_Gstreamer_Pipelines#Capture_Pipelines

I tried using the video devices 1,2 and 3:

root@dm816x-evm:~/bin# ls -la /dev/video*
crw-rw-rw-    1 root     video     81,   0 Apr 30 04:57 /dev/video1
crw-rw-rw-    1 root     video     81,   1 Apr 30 04:57 /dev/video2
crw-rw-rw-    1 root     video     81,   2 Apr 30 04:57 /dev/video3

The matrix application is not running.

Am I missing some initialization for the video inputs?

Regards,

Lo

DM816x example applications saLoopBack video inputs /dev/video
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • HardikShah
    Posted by HardikShah
    on Aug 16 2012 22:21 PM
    Mastermind20155 points

    Hi,

    What you are seeing are video display nodes. Capture nodes are /dev/video0, /dev/video4, /dev/video5  and /dev/video6. From log it seems either you are not doing insmod of capture driver or if you are doing insmod it failed to load because of some issue.

    Regards,

    Hardik Shah

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _Ralph_
    Posted by _Ralph_
    on Aug 17 2012 04:36 AM
    Mastermind7955 points

    Looks like you're not running the load-hd-v4l2-firmware.sh script, or if you are, it's being run _after_ you've already run load-hd-firmware.sh.

    Ralph

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lo
    Posted by Lo
    on Aug 17 2012 05:11 AM
    Intellectual2835 points

    Hello,

    I created a new SDK 5.04 SD card and copied the load-hd-v4l2-firmware.sh script to /etc/init.d/load-hd-firmware.sh (see log).

    After rebooting there is still no /dev/videox device for input.

    The boards are firmly connected and held together by screws/bolts

    There are some console log messages related to the tvp7002 and the ti81xxvin module:

    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: Memory Configuration status : In Progress
    FIRMWARE: 2 start Successful
    omap_i2c omap_i2c.2: controller timed out
    VPSS_DCTRL: setup 7360 filter failed.
    tvp7002 2-005d: tvp7002 found @ 0x5d (OMAP I2C adapter)
    omap_i2c omap_i2c.2: controller timed out
    omap_i2c omap_i2c.2: controller timed out
    omap_i2c omap_i2c.2: controller timed out
    tvp7002 2-005d: Rev. 9c detected.
    tvp7002 2-005d: Unknown revision detected.
    omap_i2c omap_i2c.2: controller timed out
    tvp7002 2-005d: Write: retry ... 0
    omap_i2c omap_i2c.2: controller timed out
    tvp7002 2-005d: Write: retry ... 1
    omap_i2c omap_i2c.2: controller timed out
    tvp7002 2-005d: Write: retry ... 2
    omap_i2c omap_i2c.2: controller timed out
    tvp7002 2-005d: Write: retry ... 3
    omap_i2c omap_i2c.2: controller timed out
    tvp7002 2-005d: Write: retry ... 4
    tvp7002 2-005d: TVP7002 write error -110
    tvp7002: probe of 2-005d failed with error -110
    ti81xxvin ti81xxvin: Error registering v4l2 subdevice

    Looks like at least one TVP7002 is found?

    full logs:

    7266.sdk_5.04_default.txt

    7608.sdk_5.04_v4l2_default.txt

    Regards,

    Lo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • HardikShah
    Posted by HardikShah
    on Aug 17 2012 05:15 AM
    Mastermind20155 points

    Refer thread below

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/206681.aspx

    Above should solve your problem.

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lo
    Posted by Lo
    on Aug 17 2012 07:02 AM
    Intellectual2835 points

    Thanks Hardik,

    the devices  /dev/video0-6 are now present.

    I copied the script: cp /usr/share/ti/ti-media-controller-utils/load-hd-v4l2-firmware.sh  /etc/init.d/load-hd-firmware.sh and modified line 20:  "firmware_loader $HDVPSS_ID /usr/share/ti/ti-media-controller-utils/dm816x_hdvpss_v4l2.xem3 start -i2c 0"

    The saLoopBack example application does not yet run:

    # ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    saLoopBack:
     Mode set is 0
    Setting DV Preset failed

    The ioctl VIDIOC_QUERY_DV_PRESET returns "0" although I've tried HDMI and component inputs. (composite should be tvp51xx)

    Which input is selected by default?

    Should  I add a VIDIOC_S_INPUT ioctl?

    Regards,

    Lo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • HardikShah
    Posted by HardikShah
    on Aug 19 2012 22:31 PM
    Verified Answer
    Verified by Lo
    Mastermind20155 points

    Hi,

    Only component input is supported on TI Netra EVM + IO Expansion platform. DVI and SD inputs are not supported.

    Regards,

    Hardik Shah

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • HardikShah
    Posted by HardikShah
    on Aug 19 2012 22:59 PM
    Mastermind20155 points

    Hi,

    But people can add support for any external decoders of their choice or TVP5158 and sii1161 present on board using appnote

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lo
    Posted by Lo
    on Aug 21 2012 08:19 AM
    Intellectual2835 points

    Hello Hardik,

    thanks, it works fine with component 720p60 input (on D6,D7 andD8)!

    saLoopBack and saLoopBackScale work fine.

    I started with 576i but that mode is not supported and the demo will respond with the message "Setting DV Preset failed"

    Regards,

    Lo

    Console output:

    root@dm816x-evm:~/bin# ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    saLoopBack:
     Mode set is 6
    Driver Name:
    Driver bus info: �s@@`
    =============================================================
    Capture Format:
    =============================================================
    fmt.type                 = 1
    fmt.width                = 1920
    fmt.height               = 1080
    fmt.pixelformat  = 1448695129
    fmt.bytesperline         = 3840
    fmt.sizeimage    = 4147200
    =============================================================
    =============================================================
    Display Format:
    =============================================================
    fmt.type                 = 2
    fmt.width                = 1920
    fmt.height               = 1080
    fmt.pixelformat  = 1448695129
    fmt.bytesperline         = 3840
    fmt.sizeimage    = 4147200
    =============================================================
    Count=0
    Frame rate = 50

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • HardikShah
    Posted by HardikShah
    on Aug 21 2012 08:51 AM
    Mastermind20155 points

    Great,

    Lo
    =============================================================
    fmt.type                 = 2
    fmt.width                = 1920
    fmt.height               = 1080
    fmt.pixelformat  = 1448695129
    fmt.bytesperline         = 3840
    fmt.sizeimage    = 4147200
    =============================================================
    Count=0
    Frame rate = 50

    It seems you are feeding 720P50 and not 720P60, frame rate is shown is 50 above.

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use