Jetson Nano H264 to H265 transcode


I am new to the Jetson Nano and would like to seek kind advice from members.

I have been trying to use the gstreamer to transcode existing H264 mp4 files to H265 mp4 files with reference from the development guide posted by Nvidia.

The pipeline I created is as below:

gst-launch-1.0 -e filesrc location=./h264_input.mp4
! qtdemux name=demux
! h264parse ! nvv4l2decoder ! nvv4l2h265enc bitrate=4000000
! h265parse
! progressreport update-freq=1
! qtmux name=mux
! filesink location=./h265_output.mp4

However, the above pipeline only transcode the video stream of the mp4 file and it seems that I have to write some pipeline for the audio stream as well.

Can any one share their advice or some good reference guide for creating such pipeline? Many thanks!

Please refer to audio part in this pipeline and apply to yours:

Thanks for the information. I have came up with the following pipeline that get the job done, posted here for other’s reference:

gst-launch-1.0 -e qtmux name=mx ! progressreport update-freq=1
! filesink location=output.mp4 filesrc location=input.mp4
! qtdemux name=dmx
dmx. ! queue ! h264parse ! nvv4l2decoder ! nvv4l2h265enc bitrate=4000000 ! h265parse ! mx.
dmx. ! queue ! aacparse ! faad ! audioresample ! audioconvert ! voaacenc ! mx.

1 Like