nvh265dec: can't decode stream if coded resolution is larger than display resolution
The following pipeline fails. When I use 264 (ID=4) pipeline works. When I uncomment ENC , the pipeline works.
export GST_DEBUG=2
ID=5
ENC=" videoconvertscale ! video/x-raw, format=NV12, framerate=20/1, width=752, height=480 ! nvh26${ID}enc "
#ENC=" videoconvertscale ! video/x-raw, format=NV12 ! nvh26${ID}enc "
gst-launch-1.0 -e videotestsrc ! videoconvertscale ! ENC ! video/x-h26
{ID}, profile=main ! nvh26${ID}dec ! queue ! fakesink
0:00:00.232672072 508617 0x55a6948d50a0 WARN nvrtcloader gstnvrtcloader.c:137:gst_nvrtc_load_library: Could not open library libnvrtc.so, libnvrtc.so: cannot open shared object
file: No such file or directory
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'nvh265dec0': gst.cuda.context=context, gst.cuda.context=(GstCudaContext)"(GstCudaContext)\ cudacontext1", cuda-device-id=(uint)0;
Got context from element 'nvh265dec0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"(GstGLDisplayX11)\ gldisplayx11-0";
Redistribute latency...
0:00:00.342946507 508617 0x55a694797800 WARN nvdec gstnvdec.c:719:parser_decode_callback: CUDA call failed: CUDA_ERROR_INVALID_VALUE, invalid argument
0:00:00.342975360 508617 0x55a694797800 ERROR nvdec gstnvdec.c:720:parser_decode_callback: failed to decode picture
0:00:00.343023679 508617 0x55a6947979e0 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop: error: Internal data stream error.
0:00:00.343035151 508617 0x55a6947979e0 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop: error: streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:00.343251757 508617 0x55a6947979e0 WARN videodecoder gstvideodecoder.c:1416:gst_video_decoder_sink_event_default: error: No valid frames decoded before end of s
tream
0:00:00.343260613 508617 0x55a6947979e0 WARN videodecoder gstvideodecoder.c:1416:gst_video_decoder_sink_event_default: error: no valid frames found
ERROR: from element /GstPipeline:pipeline0/nvh265dec:nvh265dec0: No valid frames decoded before end of stream
Additional debug info:
../subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c(1416): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/nvh265dec:nvh265dec0:
no valid frames found
ERROR: pipeline doesn't want to preroll.
Freeing pipeline ...