-
Notifications
You must be signed in to change notification settings - Fork 11
Description
“I’m running tests with the hang-gst plugin and gst-plugin-rs, but I’d like to have some example of how to send audio and video and view it in the watch. If it’s video-only it works fine, but I can’t get the audio to work. I’m interested in both AAC and Opus—whichever has the lowest latency. I’ve tried things like this:
command: gst-launch-1.0 -e multifilesrc location="/tmp/bbb.mp4" loop=true ! qtdemux name=demux demux.video_0 ! h264parse ! queue ! identity sync=true ! isofmp4mux name=mux chunk-duration=1 fragment-duration=1 ! hangsink url="https://192.168.88.128/anon
" broadcast="bbb" tls-disable-verify=true demux.audio_0 ! decodebin ! audioconvert ! audioresample ! opusenc bitrate=128000 frame-size=20 inband-fec=true ! queue ! mux.
command: gst-launch-1.0 -e multifilesrc location="/tmp/bbb.mp4" loop=true ! qtdemux name=demux demux.video_0 ! h264parse ! queue ! identity sync=true ! isofmp4mux name=mux chunk-duration=1 fragment-duration=1 ! hangsink url="https://192.168.88.128/anon
" broadcast="bbb" tls-disable-verify=true demux.audio_0 ! aacparse ! queue ! mux.
command: gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! queue ! x264enc bitrate=1500 speed-preset=ultrafast tune=zerolatency key-int-max=15 insert-vui=1 ! h264parse ! 'video/x-h264,stream-format=avc,alignment=au' ! queue ! identity sync=true ! isofmp4mux name=mux chunk-duration=1 fragment-duration=1 ! hangsink url="https://192.168.88.128/anon
" broadcast="bbb" tls-disable-verify=true audiotestsrc is-live=true wave=sine freq=440 ! audio/x-raw,rate=48000,channels=2 ! avenc_aac bitrate=128000 ! queue ! mux.
…but I’m getting errors, it never quite works, and I’ve never heard any audio.”