пт, 27 окт. 2023 г., 15:14 frhun <[email protected]>: > > Hello everyone > > I have a problem > > youtube say this: > > " > ffmpeg For the keyframe frequency, set a maximum of four seconds. > Currently sending frames is not frequent enough, which causes buffering. > The current key frame rate is 9.0 seconds. Processing errors may cause > incorrect GOP (group of pictures) size. > > " >
may be try "-g 25" for keyframe every 25 frames, or up to 100 for 4 seconds of 25 fps video .... I think default is 250? > my ffmpeg command is : > > ffmpeg -r 25 -rtsp_transport tcp -i > rtsp://admin:[email protected]/Streaming/Channels/1 -c:v libx264 -b:v > 2M -c:a aac -vf "[in]drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': > textfile='Z\:\\kolibry2\\verseny\\T_A\\Piros.txt': x=115: y=20: > reload=1: fontcolor=black: fontsize=30: box=1: boxborderw=5: > [email protected] , drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': > textfile='Z\:\\kolibry2\\verseny\\T_A\\Feher.txt': x=115: y=55: > reload=1: fontcolor=black: fontsize=30: box=1: boxborderw=5: > [email protected] , drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': > textfile='Z\:\\kolibry2\\verseny\\T_A\\Ora.txt': x=20: y=20: reload=1: > fontcolor=black: fontsize=35: box=1: boxborderw=5: [email protected] , > drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': > textfile='Z\:\\kolibry2\\verseny\\T_A\\Merkozes.txt': x=20: y=53: > reload=1: fontcolor=black: fontsize=28: box=1: boxborderw=5: > [email protected][out]" -preset ultrafast -f flv > rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx-xxxx > > I found many variations, none of them worked, youtube always complains > about wrong settings. > > The point is to get the picture from the ethernet camera, add some text > and send it to youtube > > If it is not transcoded this way, then direct copy will get youtube > without errors. > > > thanks in advance > Robert > _______________________________________________ > ffmpeg-user mailing list > [email protected] > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
