In the Jetson AGX Xavier board, I have one 1080p mp4 file, that conains video as well as audio.
Now using gstreamer, I want to play the video with audio and I also want to downscale the video to 720p, mux with the audio and store it to new mp4 file.
I used the following pipeline.
gst-launch-1.0 filesrc location=stopwatch_1080p.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! nvv4l2decoder ! tee name=tee tee. ! queue ! nv3dsink demux.audio_0 ! queue ! aacparse ! faad ! audioconvert ! tee name=tee2 tee2. ! audioresample ! alsasink tee. ! nvvidconv ! ‘video/x-raw(memory:NVMM),width=1280,height=720’ ! nvv4l2h264enc profile=4 bitrate=1081000 ! ‘video/x-h264, stream-format=(string)byte-stream’ ! h264parse ! mux. tee2. ! ‘audio/x-raw,format=(string)S16LE,layout=(string)interleaved,rate=(int)48000’ ! voaacenc ! mux. qtmux name=mux ! filesink location=new.mp4
After launching the pipeline, screen comes with the video playing and immediately hangs.
So if someone give any suggestion on this, it will helpful.