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.

timestamp in Non-AVsync application

Guru 20755 points

Hello,

I would like to ask a general question regarding timestamp.

I have 2 scenarios :

1. TI's  H.264 encoding of video only (no audio) and muxing it to TS (mpeg-ts)

2. demuxing of mpeg-ts (was encoded by some other encoder - not TI's) and decoding video only (no audio) using TI's H.264 decoder

Our application does not require AVsync (there is no audio)

Do you think I need in the 1st scenario to generate PTS from codec output into stream ? and in the 2ns scenario do I need to retrieve PTS from TS and use it in TI's codec ?

Thank you,

Ran

  • Hello Ran,

    If you are using EZSDK:

    Ran Shalit said:
    1. TI's  H.264 encoding of video only (no audio) and muxing it to TS (mpeg-ts)

    1.In EZSDK you could archive this by using gstreamer. You could use mpegtsmux element. Here is example pipeline for encoding and muxing in ts container:

    ...... ! omx_h264enc ! mpegtsmux  ! filesink location=test.tsmux

    2. You could try to use and omx encode demo(I have not try this). You could try to build the ffmpeg for arm. In ffmpeg package there is a example for muxing but in this exmaple it uses the ffmpeg codecs you could try to change it to use our h264 codec.

    Ran Shalit said:
    2. demuxing of mpeg-ts (was encoded by some other encoder - not TI's) and decoding video only (no audio) using TI's H.264 decoder

    Same as the previous answers but reversed. You could use gstreamer.

    gst-launch filesrc location=test.tsmux ! mpegtsdemux ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60  ! gstperf ! omx_videosink

    BR
    Margarita

  • Thank you,
    I'm familiar with most of this solutions,
    But I still wander what is required to do with timestamp in the mpeg-ts stream. Do we need to read PTS DST, from it when decoding and do we need to insert PTS,DTS to mpeg-ts when encoding ? (Non-audio stream).

    Thanks,
    Ran