About multi threading for decoding

Hello,

4 threads, 1, 2, 3, 4 at the same time
The final render is too slow.

By the way, I don’t know where it is slow.
Can you give a hint

Thank you.

Hi,
14_multivideo_decode is to demonstrate multi-instance decoding. Please refer to it and give it a try.

Hello,

Remember that you had to give the --disable-rendering option in the sample.
Now, in sample 14, does it work even without the --disable-rendering option?

If you are reporting rendering problems
Can you tell me what the problem is?

$ ./multivideo_decode num_files 2 …/…/data/Video/sample_outdoor_car_1080p_10fps.h264 H264 …/…/data/Video/sample_outdoor_car_1080p_10fps.h264 H264 –disable-rendering

Thank you.

Hi,
The sample does not support rendering currently. So you would need to refer to 00_video_decode and integrate NvEglRenderer to 14_multivideo_decode for your usecase. So do you see performance issue in running sample 14 with –disable-rendering?

Yes

What am I supposed to do?

Thank you.

Hi,
Foe video decoding on Jetson Nano, we list single 4Kp60 in developer guide
Run two 1080p decoding through 14_multivideo_decode and get the result:

14_multivideo_decode$ sudo jetson_clocks
14_multivideo_decode$ ./multivideo_decode num_files 2 ../../data/Video/sample_outdoor_car_1080p_10fps.h264 H264 -o ~/1.yuv ../../data/Video/sample_outdoor_car_1080p_10fps.h264 H264 -o ~/2.yuv --disable-rendering --stats
Set governor to performance before enabling profiler
Creating decoder in blocking mode
Creating decoder in blocking mode
Opening in BLOCKING MODE
Set governor to performance before enabling profiler
NvMMLiteOpen : Block : BlockType = 261
Opening in BLOCKING MODE
Set governor to performance before enabling profiler
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
Setting frame input mode to 1
NvMMLiteBlockCreate : Block : BlockType = 261
Setting frame input mode to 1
Starting decoder capture loop thread
Starting decoder capture loop thread
Video Resolution: 1920x1080
Video Resolution: 1920x1080
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Query and set capture successful
Query and set capture successful
Input file read complete
Input file read complete
Exiting decoder capture loop thread
Exiting decoder capture loop thread
Instance 1 executed sucessfully.
Instance 0 executed sucessfully.
*****************************************
Stream = ../../data/Video/sample_outdoor_car_1080p_10fps.h264
Total Profiling time = 4.165
Average FPS = 141.657
Average latency(usec) = 0
Minimum latency(usec) = 18446744073709551615
Maximum latency(usec) = 0
*****************************************
*****************************************
Stream = ../../data/Video/sample_outdoor_car_1080p_10fps.h264
Total Profiling time = 4.1664
Average FPS = 141.609
Average latency(usec) = 0
Minimum latency(usec) = 18446744073709551615
Maximum latency(usec) = 0
*****************************************
App run was successful

FYR.

1 Like