Hi! I’m trying to verify that nvEnc h264 encoding is lossless, but whenever I run the video_decoder with a lossless h264 file, it crashes with an ‘invalid argument’ error. I was curious whether it was user error, or whether Im missing something regarding hardware requirements. I’ve pasted my command history and prompt below.
$ gst-launch-1.0 videotestsrc num-buffers=30 ! ‘video/x-raw, width=(int)1920, height=(int)1080, format=(string)Y444’ ! filesink location=~/origfile.yuv
$ ./video_encode ~/origfile.yuv 1920 1080 H264 ~/comp.h264 --elossless --max-perf -p high444
$ ./video_decode H264 --disable-rendering -o ~/decomp.yuv --max-perf ~/comp.h264
No protocol specified
No protocol specified
No protocol specified
No protocol specified
nvbuf_utils: Could not get EGL display connection
No protocol specified
No protocol specified
No protocol specified
No protocol specified
nvbufsurftransform: Could not get EGL display connection
Set governor to performance before enabling profiler
Creating decoder in blocking mode
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Setting frame input mode to 1
Starting decoder capture loop thread
NVMEDIA: NvMMLiteNVMEDIAProcessVES: 1837: NvMediaParserParse Unsupported Codec
NVMEDIA: NvMMLiteNVMEDIAProcessVES: 1837: NvMediaParserParse Unsupported Codec
Input file read complete
NVMEDIA: NvMMLiteNVMEDIADecDoWork: 2243: NVMEDIA Video Dec Unsupported Stream
Got EoS at output plane
[ERROR] (NvV4l2Element.cpp:114) Error while DQing event: Invalid argument
Error in dequeueing decoder event
Exiting decoder capture loop thread
App run failed