This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Dual capture using OpenMAX

Guru 10685 points
Other Parts Discussed in Thread: TVP7002

I need to capture 2 streams of 1080p60 video in parallel using VIP0 and VIP1. One of these video inputs is 16 bit YUV and one 24 bit RGB.

When will the VFCC component in OpenMAX support this? In the OpenMAX release notes it says that VFCC only supports 1 channel input. I find this strange given that TI states the DM8168 should support triple parallel video encoding.

Thanks,

Ralph

  • Hi, Ralph

       do you mean one componet work with 2 VIP,and has 2 outputs? i think you can imple it refer to gstreamers plugin "v4l2src". 

       I saw your post at :http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/189208.aspx

      that you has solved dual capture with 2 tvp7002.could you please tell me the detail about how to config the VPSS to work with 2 tvp7002 capture ? I really need to know how to do.thanks very much.

  • I've replied to the other post so have a look. TI should have fixed this themselves. I'll resist the urge to rant further.....

    What is "v4l2src"?

  • It is a plugin of gstreamer.

    you can find it at gstreamer_ti_dm81xx/opensource_build/gst-plugins-good-0.10.28/sys/v4l2

    to get this version gstreamer : svn co https://gstreamer.ti.com/svn/gstreamer_ti/tags/TAG_GST_DM81XX_00_05_00_00/gstreamer_ti_dm81xx

  • If OpenMAX doesn't work for dual capture then I fail to see how Gstreamer can work given it uses the OpenMAX framework. There is another thread currently discussing how to get OpenMAX to handle 2 input streams.

    Ralph

  • Hi Ralph,

    I am using EzSDK in my custom board with DM8148. I have 2 different decoder chips (1 for HDMI input and 1 for SDI input). I am able to capture & encode both the input on VIP0 and VIP1 individually with the default EzSDK capture_encode example. But i want to capture both the video input simultaneously on different video input port.

    Can you help me here ? As you mentioned here that you had some discussion with this kind of use-case ?

    Regards,

    Hitesh

  • Hi Hitesh, your best bet would be to create 2 separate VFCC components (you'll need to rewrite capture_encode to do this) and send the output from each VFCC to 2 separate encoders then onto disc.

    Ralph

  • Many Thanks Ralph.

    I really appreciate your so quick response. Will it be that simple ? I read many posts and everyone is telling that you have to use RDK for multiple channel support and EzSDK for single channel.

    I will try to implement such use-case. It will be more helpful for me, if you can elaborate a little bit or can provide me pseudo-code if you already implemented such thing. We have some urgency for the same as we are in the middle of the development.

    Thanks,

    Hitesh

  • I think it should work having seen the source code for OpenMAX etc. You are dealing with a single channel scenario anyway as you have one channel per VIP. RDK has multiple channels per VIP. You have 2 streams but 1 channel per stream. If you want to try things simply, just run 2 instances of the capture_encode program at the same time but with the different inputs selected for each instance and you should be able to tell quickly if it will work.

    Ralph

  • Running two instances of capture_encode program will not work directly. It is giving me some notify errors as one instance has already allocated some resources and more instance is also trying to do so.

    Anyway i will try to modify the capture_encode example with two VFCC and 2 VENC component. I hope that it will work.

    Regards,

    Hitesh