Nvm_ijpe_sci can not work

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.6

Target Operating System
Linux

Please help to check this problem, thanks.

 ./nvm_ijpe_sci -f fisheye_1280_1080_yuv420.yuv  -fr 1280x1080 -of output.jpg -v 3 -q 75
command: ./nvm_ijpe_sci -f fisheye_1280_1080_yuv420.yuv -fr 1280x1080 -of output.jpg -v 3 -q 75
nvmedia: main: Encode start from frame 0, imageSize=2073600
nvmedia: PopulateNvSciBufAttrList: Color Format:4 isYUV:1 isPlanar:0 planeCount:2
nvmedia: 0: Color:84 4 Addr:256 W:1280 H:1080
nvmedia: 1: Color:76 4 Addr:256 W:640 H:540
nvmedia: alternateCreateAPI is 0
NVJPGInit 553: Host1x channel open failed
JPEGEncCreate: 625: InitNVJPG call failed
NvMediaIJPCreate: Unable to create NvVideo JPEG encoder
nvmedia: Using NvMediaIJPECreateEx API to create JPEG ENCODER instance
nvmedia: ERROR: main: NvMediaIJPECreate failed

Dear @liu.xiaoxu,
Is it possible to verify the issue on our latest release DRIVE OS 6.0.8.1?
Could you share the input file for test?

fisheye_1280_1080_yuv420.zip (2.9 MB)

I notice the same error issue in another bug(Host1x channel open failed) which could fix after making few changes in corresponding dtsi files and reflash.
Is it the same issue? and if so, how should change dtsi files?

thanks.

Dear @liu.xiaoxu,
I don’t see any issue with p3710 on DRIVE OS 6.0.8.1 release

nvidia@tegra-ubuntu:~$ ./nvm_ijpe_sci -f fisheye_1280_1080_yuv420.yuv -fr 1280x1080 -of out.jpg -v 3 -q 75
command: ./nvm_ijpe_sci -f fisheye_1280_1080_yuv420.yuv -fr 1280x1080 -of out.jpg -v 3 -q 75
nvmedia: main: Encode start from frame 0, imageSize=2073600
nvmedia: PopulateNvSciBufAttrList: Color Format:4 isYUV:1 isPlanar:0 planeCount:2
nvmedia: 0: Color:84 4 Addr:256 W:1280 H:1080
nvmedia: 1: Color:76 4 Addr:256 W:640 H:540
nvmedia: Using NvMediaIJPECreateEx API to create JPEG ENCODER instance
nvmedia: main: NvMediaIJPECreate, 0xaaab080b1450
nvmedia: main: Created EOF NvSciSyncObj
nvmedia: main: Created Pre NvSciSyncObj
nvmedia: main: Registered EOF NvSciSyncObj
nvmedia: main: Registered NvSciSyncObjs
nvmedia: main: Set EOF NvSciSyncObj
nvmedia: main: Registered NvSciBufObj
nvmedia: main: Reading YUV frame 0 from file fisheye_1280_1080_yuv420.yuv to image surface location: 0xaaab080a8aa0. (W:1280, H:1080)
nvmedia: main: ReadYUVFrame 0/4 done
nvmedia: main: Encoding frame #0
nvmedia: main: Opening output file
nvmedia: main: Reading YUV frame 1 from file fisheye_1280_1080_yuv420.yuv to image surface location: 0xaaab080a8aa0. (W:1280, H:1080)
nvmedia: main: ReadYUVFrame 1/4 done
nvmedia: main: Encoding frame #1
nvmedia: main: Opening output file
nvmedia: main: Reading YUV frame 2 from file fisheye_1280_1080_yuv420.yuv to image surface location: 0xaaab080a8aa0. (W:1280, H:1080)
nvmedia: main: ReadYUVFrame 2/4 done
nvmedia: main: Encoding frame #2
nvmedia: main: Opening output file
nvmedia: main: Reading YUV frame 3 from file fisheye_1280_1080_yuv420.yuv to image surface location: 0xaaab080a8aa0. (W:1280, H:1080)
nvmedia: main: ReadYUVFrame 3/4 done
nvmedia: main: Encoding frame #3
nvmedia: main: Opening output file
nvmedia: main: Reading YUV frame 4 from file fisheye_1280_1080_yuv420.yuv to image surface location: 0xaaab080a8aa0. (W:1280, H:1080)
nvmedia: main: ReadYUVFrame 4/4 done
nvmedia: main: Encoding frame #4
nvmedia: main: Opening output file

Total Encoding time for 5 frames: 6.523 ms
Encoding time per frame 1.2616 ms
Get bits time per frame 0.0430 ms

Total encoded frames = 5, avg. bitrate=19082544

***ENCODING PROCESS ENDED SUCCESSFULY***

Are you using a different platform other than p3710. If so, please file a bug and reach out to your NV Representative for support.

Hello,
Thank you for confirming. I did discover that the default DTB has ‘nvjpg’ disabled, and I set the ‘nvjpg’ status to ‘okay’ to enable it, so the error issue was gone.
However there was new issue that process was blocked while encoding frame #0.
Please help to check this problem, thanks.

./nvm_ijpe_sci -f fisheye_1280_1080_yuv420.yuv  -fr 1280x1080 -of output.jpg -v 3 -q 75
command: ./nvm_ijpe_sci -f fisheye_1280_1080_yuv420.yuv -fr 1280x1080 -of output.jpg -v 3 -q 75
nvmedia: main: Encode start from frame 0, imageSize=2073600
nvmedia: PopulateNvSciBufAttrList: Color Format:4 isYUV:1 isPlanar:0 planeCount:2
nvmedia: 0: Color:84 4 Addr:256 W:1280 H:1080
nvmedia: 1: Color:76 4 Addr:256 W:640 H:540
nvmedia: Using NvMediaIJPECreateEx API to create JPEG ENCODER instance
nvmedia: main: NvMediaIJPECreate, 0x1cc83470
nvmedia: main: Created EOF NvSciSyncObj
nvmedia: main: Created Pre NvSciSyncObj
nvmedia: main: Registered EOF NvSciSyncObj
nvmedia: main: Registered NvSciSyncObjs
nvmedia: main: Set EOF NvSciSyncObj
nvmedia: main: Registered NvSciBufObj
nvmedia: main: Reading YUV frame 0 from file fisheye_1280_1080_yuv420.yuv to image surface location: 0x1cc81a00. (W:1280, H:1080)
nvmedia: main: ReadYUVFrame 0/4 done
nvmedia: main: Encoding frame #0

Dear @liu.xiaoxu,
Could you confirm the used platform? Is it DRIVE AGX Orin Devkit or any other platform based on Orin SOC?

It is p3898 on DRIVE OS 6.0.7 release

Dear @liu.xiaoxu,
As clarified earlier, this forum is intended to support issues in p3710 platform. Please reach out to your NVIDIA representative for support on this issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.