Hi.
Please, check this file https://drive.google.com/open?id=1Wze__SPMyzbC7toiUVCVDC3WLD1dYzZ7 with tegra_multimedia_api/samples/00_video_decode/video_decode program.
Case 1:
./video_decode MPEG2 --disable-rendering ./sample-10s.m2v
I get output:
Creating decoder in blocking mode
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 267
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 267
Setting frame input mode to 1
Starting decoder capture loop thread
Video Resolution: 1280x720
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Query and set capture successful
Input file read complete
Exiting decoder capture loop thread
App run was successful
Case 2:
./video_decode MPEG2 --disable-rendering --blocking-mode 0 ./sample-10s.m2v
I get output:
Creating decoder in non-blocking mode
Opening in O_NONBLOCKING MODE
NvMMLiteOpen : Block : BlockType = 267
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 267
Setting frame input mode to 1
Created the PollThread and Decoder Thread
Starting Device Poll Thread
Got V4L2_EVENT_RESOLUTION_CHANGE EVENT
Video Resolution: 1280x720
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Query and set capture successful
and program hang.