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.

trying to encode 25 frames using leopard board but the encoded frame has missing information

hi there !

i am trying to run h.264 encoder on leopard imaging board using gstreamer 0.10.  i am using ridgrun sdk and using default image provided by ridgerun and usign sd card to boot the kernel on board.

i am running following pipeline to encode the video captured from composite camera and sending the encoded packets on udp port using rtp stream.

gst-launch -e v4l2src input-src=composite always-copy=FALSE queue-size=3 ! 'video/x-raw-yuv, height=576, width=720, format=(fourcc)NV12, pitch=736, framerate=25/1'! dmaiaccel ! dmaiperf print-arm-load=true ! queue ! dmaienc_h264 targetbitrate= 6000000 maxbitrate=6000000 ratecontrol=2 encodingpreset=2 ! queue ! rtph264pay ! udpsink host=199.200.15.61 port=6666 enable-last-buffer=TRUE

there is no packet loss and delay is minimum as required. But the image(attached below) does not have sharp boundaries. i am wondering if the pipeline is missing fields or something. i need help with that.

/cfs-file/__key/communityserver-discussions-components-files/791/3617.vlcsnap_2D00_2017_2D00_04_2D00_06_2D00_15h46m38s147.JPG

the image is not showing full fields i am guessing. i need complete 25 frames or 50 fields per second. how do i achieve that?

Asad

  • Hi,

    I am not a ridge run SDK expert, but this could be a issue with your camera sensor tuning.

    Dump the RAW data from the sensor and verify whether Image boundary is smooth in RAW data.
  • after some work around the video and comparisons,

    i found that that above mentioned pipeline is missing fields. its giving me either odd or even fields. while rejecting other field altogether

    also observed my video stream using codecvisa tool (h264 analyzer) and i confirmed it from that tool too that i am getting only single field.

    now i need to find out why it is so?

    please guide.

    Asad