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.

AM572x Decoding interlaced contents

hi.

I was converted to interlaced from TearOfSteel-AV-Short-720x420.mp4 video provided by the sdk.

I am not sure of the option gst program are wrong.

sdk version : 2.00.02.11

kernel : 4.1.18

gst : 1.2.3

command : gst-launch-1.0 -v filesrc location=/TearOfSteel-AV-Short-720x420.mp4 ! qtdemux ! h264parse ! ducatih264dec ! vpe ! waylandsink

  • Hi,

    I will forward this to the software team.
  • Hello,

    You could check this guide:
    processors.wiki.ti.com/.../Processor_Training:_Multimedia

    There is an example for deinterlacing.


    BR
    Margarita

  • Hi HYEON SEOK LEE,

    I think your problem is in the gstreamer pipeline you are using. If you had and interlaced video, you do not need to use the vpe element.

    This is the pipeline I used to display an interlaced video:

    gst-launch-1.0 filesrc location= mm6-30-16FINAL.mp4 ! qtdemux ! queue ! h264parse ! ducatih264dec ! kmssink scale=false connector=30

    The characteristics of the video with media info are:

    mediainfo mm6-30-16FINAL.mp4
    General
    Complete name : mm6-30-16FINAL.mp4
    Format : MPEG-4
    Format profile : Base Media / Version 2
    Codec ID : mp42
    File size : 1.66 GiB
    Duration : 29mn 1s
    Overall bit rate mode : Variable
    Overall bit rate : 8 190 Kbps
    Encoded date : UTC 2016-07-12 19:31:32
    Tagged date : UTC 2016-07-12 19:31:32

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 3 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 29mn 1s
    Bit rate mode : Variable
    Bit rate : 8 045 Kbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 59.940 fps
    Original frame rate : 29.970 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Bits/(Pixel*Frame) : 0.065
    Stream size : 1.62 GiB (98%)
    Language : English
    Encoded date : UTC 2016-07-12 19:31:32
    Tagged date : UTC 2016-07-12 19:31:32

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 29mn 1s
    Source duration : 29mn 1s
    Bit rate mode : Constant
    Bit rate : 192 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 44.1 KHz
    Compression mode : Lossy
    Stream size : 39.4 MiB (2%)
    Source stream size : 39.4 MiB (2%)
    Language : English
    Encoded date : UTC 2016-07-12 19:31:32
    Tagged date : UTC 2016-07-12 19:31:32

    Also, I ran a pipeline that displays a de-interlaced (progressive scan). This is the pipeline I used:

    gst-launch-1.0 filesrc location= TearOfSteel-AV-Short-720x406.mp4 ! qtdemux
    name=demux demux.video_0 ! queue ! mpeg4videoparse ! ducatimpeg4dec ! kmssink sc
    ale=true connector=30

    The characteristics of the video with media info are:

    mediainfo TearOfSteel-AV-Short-720x406.mp4
    General
    Complete name : TearOfSteel-AV-Short-720x406.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 6.93 MiB
    Duration : 21s 73ms
    Overall bit rate mode : Constant
    Overall bit rate : 2 757 Kbps
    Writing application : Lavf55.42.101

    Video
    ID : 1
    Format : MPEG-4 Visual
    Format profile : Simple@L1
    Format settings, BVOP : No
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : 20
    Duration : 21s 42ms
    Bit rate mode : Constant
    Bit rate : 2 628 Kbps
    Width : 720 pixels
    Height : 406 pixels
    Display aspect ratio : 16:9
    Original display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 24.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.375
    Stream size : 6.59 MiB (95%)
    Writing library : Lavc55.66.100
    Language : English

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 21s 73ms
    Duration_LastFrame : 35ms
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 44.1 KHz
    Compression mode : Lossy
    Stream size : 329 KiB (5%)
    Language : English

    Best regards,

    Eng. Daniel Garbanzo Hidalgo

    Embedded Software Developer Engineer
    RidgeRun Engineering Limitada
    www.ridgerun.com