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.

RDK demo - vlc playback

Guru 20755 points

Hi,

I'm using DM814x & security board with  RDK 4.1.0.2

I've encoded files with demo usecase 1, and then tried to play them using vlc.

I see that the speed in vlc is much faster than the real time (everyting is quicker in the playback video).

I ran the  provided demo without changing parameters in the demo.

Do you have any idea why It is not played correcty ?

Thanks,

Ran

  • If there is no timestamp information, vlc plays faster. This would happen if you just try to play the elementary - raw h264 encoded by the demo.

  • Hi Sivagamy

    Is there a way to add timestamp using the demo? Do you maen by timestamp the container information, such as MPEG-4 (.mp4) ?


    Thanks
    Ran

  • Ran,

    it seems that vui information is missing. See http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/237004/830264.aspx#83026 how to add it into the encoded stream. 

    Regards,

    Yair 

  • As Yair mentioned VLC will play elementary stream at correct frame rate if VUI info is present.Attach the encoded bitstream so that we can check if VUI info is present. Note that ffmpeg (lib used in VLC) seems to report double of actual frame rate .See this post http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/310421/1081292.aspx#1081292

  • Hi,


    When running demo usecase 1 in DM814x (4ch enc/dec) , I see that there are 64x4 files created, for 64 channels, each having 4 layers.

    The video I recorded is seen in channel 0, but each layer has different speed in playback. It seems that layer 3, gives the correct speed. What is the meaning of each layer ?
    Attached is VBITS_HDR_0_LAYER_0.h264 (I've renamed it to sample.avi for e2e)

    Thanks,

    Ran

  • The different layers are same stream encoded at different temporal layers to achieve SVC-T encoding.

    Refer /dvr_rdk/demos/mcfw_api_demos/mcfw_demo/demo_vcap_venc_vdec_vdis_bits_rdwr.c

    numTemporalLayer is explained in comments above function VcapVencVdecVdis_ipcBitsWriteBitsToFile to understand explanation of layers.

    The stream you have shared has I frame every 5 frames (GOP size of 5).You should use  VBITS_DATA_0_LAYER_3 which has GOP size of 25 which is the full stream.