You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this code i've made have the same expected output,but with the -t tag included:
cmd=""
for command in S.streams[list(S.streams.keys())[0]].cmd[:-1]:
cmd+=command+" "
cmd+="-flags:v +global_header -f tee"
print(cmd)
for site in S.streams:
if site!=list(S.streams.keys())[0]:
cmd +="|"
print(S.streams[site].sink)
cmd+="[f=flv]"+str(S.streams[site].sink)
print(cmd)
i think using the folowing line instead of the existing into the main code will fix the issue: for command in S.streams[list(S.streams.keys())[0]].cmd[:-1]:
Describe the bug
when using multiple stream as shown in test files,timout parameter not work
System Parameters
with the folowing code the resulting comand executed excludes de '-t' tag:
running only with youtube:
/usr/bin/ffmpeg -loglevel error -f x11grab -s 640x480 -i :0.0+50,30 -f pulse -i default -codec:v libx264 -pix_fmt yuv420p -preset veryfast -b:v 500k -g 60 -codec:a aac -b:a 128k -ar 44100 -maxrate 500k -bufsize 250k -strict experimental -f flv -t 5 rtmp://a.rtmp.youtube.com/
running with youtube and facebook:
/usr/bin/ffmpeg -loglevel error -f x11grab -s 640x480 -i :0.0+50,30 -f pulse -i default -codec:v libx264 -pix_fmt yuv420p -preset veryfast -b:v 500k -g 60 -codec:a aac -b:a 128k -ar 44100 -maxrate 500k -bufsize 250k -strict experimental -f flv -flags:v +global_header -f tee -map 0:v -map 1:a [f=flv]rtmp://a.rtmp.youtube.com/_______________________|[f=flv]rtmps://live-api-s.facebook.com:443/rtmp/
The text was updated successfully, but these errors were encountered: