I have been experimenting with Jetson Nano’s hardware decode/ encode engine with H265 codec. Particularly, I use the following pipeline to transcode H264 mp4 files to H265 mp4 files.
gst-launch-1.0 -e qtmux name=mx ! progressreport update-freq=1
! filesink location=output_h265.mp4 filesrc location=input_h264.mp4
! qtdemux name=dmx
dmx. ! queue ! h264parse ! nvv4l2decoder ! nvv4l2h265enc bitrate=10000000 ! h265parse ! mx.
dmx. ! queue ! aacparse ! faad ! audioresample ! audioconvert ! voaacenc ! mx.
It functioned properly with HD (1920 x 1080) videos but stopped working when the input file was in 4k resolution with approximately 20 mbps bitrate. The source file is approximately 2 hrs in lengths (some 7000 secs). Gstreamer stopped responding when transcode process hits 152 seconds:
progressreport0 (00:01:00): 152 / 7270 seconds ( 2.1 %)
Odd enough, I tried to cut the input files (in 4k with same bitrate) to approximately 30 mins (some 1500 secs) and the transcode process works like a charm.
Greatful for any advice, many thanks!