I have a USB 1080p stream with audio and video. I was able to successfully save the stream as a .ts file with audio without any error. Below is the pipeline
gst-launch-1.0 -e v4l2src device=/dev/video0 ! 'video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1' ! queue ! nvvidconv ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! h264parse ! mux. pulsesrc device="alsa_input.usb-VXIS_Inc_ezcap_U3_capture-02.analog-stereo" ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! queue ! audioconvert ! voaacenc ! aacparse ! mpegtsmux name=mux ! filesink location="av_hdmi_9.ts"
Now I need to save the stream using above while streaming it to an rtmp server.
How can I achieve this?