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.

TMS320DM368: data rate saturation

Part Number: TMS320DM368

hi there! 

i have a question about data rate of h.264 codec.

i am running following gstreamer pipeline on tms320dm368 evm board using DVSDK 4.02.x. I am using VLC to view the video with-cache-timing being 300ms. 

gst-launch v4l2sc input-src=COMPOSITE always-copy=FALSE queue-size=6 ! video/x-raw-yuv, height=576, width=720, pitch=736, format=\(fourcc\)NV12, framerate=\(fraction\25/1 !  queue ! TIVidenc1 engineName=codecServer codecName=h264enc contiguousInputFrame=TRUE bitRate=6000000  ! queue ! mpegtsmux ! queue ! udpsink host=192.168.8.2 port=8787 enable-last-buffer=false

my question is whateva the value of bitRate  i set in  gstreamer TIVidenc1 plugin the dataRate of video doesn't go beyond 2Mbps. i was wondering what could be the issue? 

also i need to ask how do i set CABAC and CAVLC entropy? h.264 encoder profiles and levels?

Asad

 

  • Hi,

    Please execute gst-inspect TIVidenc1 and check if Cabac/Profile/Level properties are available. If these properties are listed then it can be set in the pipeline.

    Regards,

    Shwetha

  • thanks shwetha for replying
    no these properties are not available
    the result of gst-inspect TIVidenc1 is as follows:
    Element Properties:
    name : The name of the object
    flags: readable, writable
    String. Default: null Current: "tividenc10"
    engineName : Engine name used by Codec Engine
    flags: readable, writable
    String. Default: "unspecified" Current: null
    codecName : Name of video codec
    flags: readable, writable
    String. Default: "unspecified" Current: null
    resolution : Input resolution for the input video ('width''x''height')
    flags: readable, writable
    String. Default: "720x480" Current: null
    bitRate : Set the video encoder bit rate
    flags: writable
    Integer. Range: 1 - 2147483647 Default: 2000000 Write only
    iColorSpace : Input color space (UYVY, Y8C8, NV16 or NV12)
    flags: readable, writable
    String. Default: "unspecified" Current: null
    framerate : Frame rate of the video expressed as a fraction. A value of 0/1 indicates the framerate is not specified
    flags: readable, writable
    Fraction. Range: 0/1 - 2147483647/1 Default: 0/1 Current: 0/1
    contiguousInputFrame: Set this if elemenet recieved contiguous input frame
    flags: writable
    Boolean. Default: false Write only
    genTimeStamps : Set timestamps on output buffers
    flags: writable
    Boolean. Default: true Write only
    rateControlPreset : Bit rate control
    1 - No rate control
    2 - Constant bit rate (CBR)
    3 - Variable bit rate (VBR)
    flags: writable
    Integer. Range: 1 - 2147483647 Default: 1 Write only
    encodingPreset : Algorithm specific creation time parameters
    1 - Use codec default
    2 - High quality
    3 - High speed
    flags: writable
    Integer. Range: 1 - 2147483647 Default: 1 Write only
    byteStream : Generate byte stream format of NALU
    flags: writable
    Boolean. Default: true Write only


    what could be the reason?
    i am running the linux via nand mode with default linux image provided by Texas instruments.
    am i missing something?
  • Hi,

    It looks like these properties are not available in the encoder plugin. Code changes may be needed in the TIVidenc1 gstreamer plugin if you require these properties to be set as part of the pipeline.
    Alternatively, you can modify the encoder plugin code to directly set these codec parameters (H264VENC_Params).

    Regards,
    Shwetha

  • Hi,

    I hope the above inputs were helpful in solving your issue. If the issue is solved then please close it by verifying answer.

    Regards,
    Anuj
    Pathpartner Technology Pvt Ltd.