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.

OV5640 @ 120fps on OMAP4460

Hello,

We have a variscite DART4460 board with two OV5640 sensors. Cameras are working perfectly with 1080@24fps.

For our application we need framerate of 120fps at 320x240px, which is a supported mode of sensor. Is this also supported with ducati? (Low resolution works but framerate does not :)

What do we have to modify to get high framerate working?

Currently we use camera with following command:

gst-launch -e omx_camera device=0 do-timestamp=1 mode=0 name=cam cam.src ! \
"video/x-raw-yuv, format=(fourcc)NV12, width=320, height=240, framerate=24/1" ! tee name=t1 t1. ! queue ! ducatih264enc profile=66 level=40 rate-preset=low-delay bitrate=4000 ! h264parse ! \
queue ! avimux ! filesink location=foo1.avi t1. ! queue ! dri2videosink sync=false

  • Hi,

    Damian Weber said:
    What do we have to modify to get high framerate working?

    In order to increase frame rate, you will have to increase sensor clock rate, and modify the OV5640 driver.  That would mean modifying ducati sources.

    However, I don't recall ducati supporting such high frame rate (I'm not sure though), so I'd suggest to follow bellow steps (taken from this post: http://e2e.ti.com/support/omap/f/849/p/235204/828435.aspx) in order to verify supported frame rate:

    1. Run camera_test from /system/bin. Usage is camera_test f

    2. Press 'E' to print capabilities. Make sure that 30fps is supported.     //in your case see max supported fps

    3. If supported, adjust camera fps range to [30, 30] and start preview using camera_test menu options.

    4. Measure the frame rate

    Best Regards,
    Yordan

  • Yordan Kovachev said:
    1. Run camera_test from /system/bin. Usage is camera_test f

    i'm afraid i dont have /system folder in my installation  on DART4460 (ubuntu 12.04).

    Q1: if i just want to grab camera images as fast as possible, do i need ducati? or is ducati only needed for image manipulation//en-/decoding ?

    Q2: where is the camera specific driver normally located? we have full sensor datasheet and can modify driver.

    am i the first one trying to get camera images at higher framerates than 24 fps ?

    sorry for asking silly questions, this is first time working on a omap based system.


    Thanks!

    PS: i guess data rate (and clock rate) is not higher than with 1080@24fps since we need only low res at high speed (320x240@120fps)

  • Sorry for the misunderstanding the above sequence works for android.

    Regarding your questions:

    1. Yes, by default OMAP devices use ducati, sensor drivers & ISS settings are integrated inside it, along with procedures for image/video encoding/decoding.

    2. On Ubuntu for OMAP4 however, there is the possibility that with appropriate kernel configurations you can use the drivers located inside drivers/media/video/ folder (it is preferred to use ducati).

    Best Regards,
    Yordan

  • Ok, thanks for clarification! I will request ducati source.

    Just a last question: I notice gstreamer source is omx_camera, is openMAX also integrated in ducati build?

    Is there some documentation available about how camera/openMAX/ducati depend on each other?

    Best regards,

    Damian

  • Damien,

    Here is what I was able to find:

    http://omappedia.org/wiki/Gstreamer_overview

    http://omappedia.org/wiki/Ducati_For_Dummies

    I am not a Ducati expert, but as per this post: http://e2e.ti.com/support/omap/f/849/t/231031.aspx, there is an OMX inside Ubuntu releases (GLP1.6.5 onwards).

    Other e2e thread that might be of help is: http://e2e.ti.com/support/omap/f/849/t/210300.aspx

    Hope this helps.

    Best Regards,
    Yordan

  • Thank you very much!

    I will mark this as verified and go thru provided information.

    Damian