Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/TDA2PXEVM: Nullsrc read mp4 file and decode then Display. Video seems disordered

$
0
0

Part Number:TDA2PXEVM

Tool/software: Linux

Hi all, 

I use vision_sdk to build a usecase. And my chains picture is below:

Then I saw Rtsp link shows video alright. But Display link show video seems like it disordered on timeline. My decode create parameter is below:

    UInt32 chId;
    DecLink_ChCreateParams *decPrm;

    for (chId = 0; chId<MAX_NUMBER_OF_CHANNELS; chId++)
    {
        UTILS_assert (chId < DEC_LINK_MAX_CH);
        decPrm = &pPrm->chCreateParams[chId];

        decPrm->dpbBufSizeInFrames  = DEC_LINK_DPB_SIZE_IN_FRAMES_DEFAULT;
        decPrm->algCreateStatus     = DEC_LINK_ALG_CREATE_STATUS_CREATE;
        decPrm->decodeFrameType     = DEC_LINK_DECODE_ALL;

        decPrm->processCallLevel    = DEC_LINK_FRAMELEVELPROCESSCALL;
        decPrm->targetMaxWidth      = MAX_FRAME_WIDTH;
        decPrm->targetMaxHeight     = MAX_FRAME_HEIGHT;
        decPrm->numBufPerCh         = 6;
        decPrm->defaultDynamicParams.targetBitRate = 10*1000*1000;
        decPrm->defaultDynamicParams.targetFrameRate = 29;
        decPrm->fieldMergeDecodeEnable = FALSE;

        decPrm->format = SYSTEM_IVIDEO_H264HP;
        decPrm->profile = 3;
        decPrm->displayDelay = 0;
    }

And my mp4 detail information is below:

[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/58
codec_tag_string=avc1
codec_tag=0x31637661
width=1280
height=964
coded_width=1280
coded_height=976
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=320:241
pix_fmt=yuv420p
level=32
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=unknown
timecode=N/A
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=29/1
avg_frame_rate=29/1
time_base=1/14848
start_pts=0
start_time=0.000000
duration_ts=7806976
duration=525.793103
bit_rate=366088
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=15248
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=und
TAG:handler_name=VideoHandler
[/STREAM]

So did I miss something? Thanks a lot!!!!


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>