I want to combine audio and video streams and save the resulting stream into a file. Following below is shown a command line I try to use.
gst-launch-1.0 avfvideosrc -e device-index=0 ! video/x-raw,width=720,height=576 ! tee name=t t. ! queue ! osxvideosink sync=false t. ! videoconvert ! vtenc_h264_hw realtime=true max-keyframe-interval=5 ! queue ! mux. osxaudiosrc device=0 ! audioconvert ! avenc_aac ! queue ! mux. mp4mux name=mux ! filesink location='output.mp4'
gst-launch shows an error:
illegal instruction: 4
The problem here is with avenc_aac encoder. What parameters should be added to avenc_aac encoder to get working command line?
May be it is possible to use another one encoder for such purposes?
GST_DEBUG=avenc_aac:2
or simplyGST_DEBUG=2
– gst