-
-
Notifications
You must be signed in to change notification settings - Fork 513
Description
Describe the bug
Hi, when adding a new camera using the Setup-Wizard and choose "Silence Audio" in audio settings, the stream gets a wrong channel configuration. It instead creates a stream with 2 video channels.
Currently you can workaround by editing the audio settings again manually when the Setup-Wizard finished.
To Reproduce
Steps to reproduce the behavior:
- Add a new camera / open Setup-Wizard
- Add a network source (here tested with RTSP and HLS)
- Set Silence Audio in Audio Setup
- Probe the HLS / RTMP / SRT Server. You'll get a signal with 2 video channels. You can also see Restreamer showing double the bandwith.
Expected behavior
Using silence audio option adds an audio channel with silence audio.
Desktop (please complete the following information):
- Raspberry Pi OS
- Firefox 143
- Restreamer v2.12.0
Additional context
This is the ffmpeg command generated by Restreamer, with -map 0:0 set twice and -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 is completely missing:
ffmpeg -loglevel level+info -err_detect ignore_err -y -fflags +genpts -thread_queue_size 512 -probesize 5000000 -analyzeduration 5000000 -timeout 5000000 -rtsp_transport udp -i rtsp://192.168.178.36:1935 -dn -sn -map 0:0 -codec:v copy -map 0:0 -codec:a aac -b:a 64k -shortest -metadata title=http://raspberrypi.fritz.box:8080/35256559-f0be-4ed8-b8ca-7d1d36e1775e/oembed.json -metadata service_provider=datarhei-Restreamer -flags +global_header -tag:v 7 -tag:a 10 -f tee [f=hls:start_number=0:hls_time=2:hls_list_size=6:hls_flags=append_list+delete_segments+program_date_time+temp_file:hls_delete_threshold=4:hls_segment_filename=http\\://admin\\:icVUiGkrpCIE1JBxW0@localhost\\:8080/memfs/35256559-f0be-4ed8-b8ca-7d1d36e1775e_output_0_%04d.ts:master_pl_name=35256559-f0be-4ed8-b8ca-7d1d36e1775e.m3u8:master_pl_publish_rate=2:method=PUT]http://admin:icVUiGkrpCIE1JBxW0@localhost:8080/memfs/35256559-f0be-4ed8-b8ca-7d1d36e1775e_output_0.m3u8|[f=flv]rtmp://localhost:1935/35256559-f0be-4ed8-b8ca-7d1d36e1775e.stream|[f=mpegts]srt://localhost:6000?mode=caller&transtype=live&latency=20000&streamid=35256559-f0be-4ed8-b8ca-7d1d36e1775e,mode:publish