OE4T / meta-tegra

BSP layer for NVIDIA Jetson platforms, based on L4T
MIT License
389 stars 216 forks source link

tegra-mmapi-samples: encode_sample fails with JetPack 5 #1059

Closed madisongh closed 1 year ago

madisongh commented 1 year ago

Describe the bug The encode_sample program from the Jetson Multimedia API samples generates errors, running on a Xavier NX dev kit.

To Reproduce Steps to reproduce the behavior:

  1. Build demo-image-full on a branch of tegra-demo-distro that has JetPack 5 GA integrated.
  2. Load the image on the device.
  3. Use the command run-mmapi-tests encode_sample to execute the sample program.
  4. Test fails.

Additional context

=== BEGIN: encode_sample ===                         
Running encode_sample                                                                     
NvMMLiteOpen : Block : BlockType = 4       
===== NVMEDIA: NVENC =====                            
NvMMLiteBlockCreate : Block : BlockType = 4          
H264: Profile = 66, Level = 0                         
NVMEDIA: Need to set EMC bandwidth : 846000           
NVMEDIA: Need to set EMC bandwidth : 846000          
NvMapMemCacheMaint Bad parameter                     
Opening in BLOCKING MODE                              
nvbusurface: NvBufSurfaceSyncForCpu: Error(4) in sync 
Error while queueing buffer on output plane                                     
Got 0 size buffer in capture                                                    
Encoder is in error << endl                                                     
Running 00_video_decode on ut-samplevid.h264          
NvMMLiteOpen : Block : BlockType = 261                                                        
NVMEDIA: Reading vendor.tegra.display-size : status: 6                                        
NvMMLiteBlockCreate : Block : BlockType = 261                                   
Creating decoder in blocking mode                                               
Opening in BLOCKING MODE                                                                      
Setting frame input mode to 1                                                                 
Input file read complete                                                                      
Starting decoder capture loop thread                                                          
[ERROR] (NvV4l2Element.cpp:114) <dec0> Error while DQing event: Invalid argument              
Error in dequeueing decoder event                                                             
Exiting decoder capture loop thread                                                           
[ERROR] (NvV4l2ElementPlane.cpp:178) <dec0> Output Plane:Error while DQing buffer: Broken pipe
Error DQing buffer at output plane
Decoder is in error                                           
App run failed                                                                                                                      
=== FAIL:  encode_sample ===                                                                                                        
madisongh commented 1 year ago

I've reproduced this on a stock JetPack 5.0.2 setup and reported the problem in a dev forum post.