gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit 52fa6ace189fcfb635affe173ac98642655a1992
parent 796fc6fd59f3edc397032f5556b9250b2ead0358
Author: rbckman <rob@tarina.org>
Date:   Wed, 29 Jan 2025 21:52:09 +0000

no dsnoop

Diffstat:
Mgonzopi.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -5290,7 +5290,7 @@ def startstream(camera, stream, plughw, channels,network, updip, updport): #stream_cmd = 'ffmpeg -f h264 -r 25 -i - -itsoffset 5.5 -fflags nobuffer -f alsa -ac '+str(channels)+' -i hw:'+str(plughw)+' -ar '+soundrate+' -acodec mp2 -b:a 128k -ar '+soundrate+' -vcodec copy -map 0:0 -map 1:0 -g 0 -f mpegts udp://10.42.0.169:5002' #numbers_only = ' ','1','2','3','4','5','6','7','8','9','0' #newhost, hostport = newudp_ip(numbers_only, network) - stream_cmd = 'ffmpeg -f h264 -r 24.989 -i - -itsoffset 5.5 -fflags nobuffer -f alsa -ac '+str(channels)+' -i dsnoop:'+str(plughw)+' -ar '+soundrate+' -acodec mp2 -b:a 128k -ar '+soundrate+' -vcodec copy -f mpegts udp://'+updip+':'+updport + stream_cmd = 'ffmpeg -f h264 -r 24.989 -i - -itsoffset 5.5 -fflags nobuffer -f alsa -ac '+str(channels)+' -i hw:'+str(plughw)+' -ar '+soundrate+' -acodec mp2 -b:a 128k -ar '+soundrate+' -vcodec copy -f mpegts udp://'+updip+':'+updport try: stream = subprocess.Popen(stream_cmd, shell=True, stdin=subprocess.PIPE) camera.start_recording(stream.stdin, splitter_port=2, format='h264', bitrate = 5555555, quality=quality)