bad video settings
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. " my ffmpeg command is : ffmpeg -r 25 -rtsp_transport tcp -i rtsp://admin:admin@192.168.2.21/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: boxcolor=red@0.8 , 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: boxcolor=white@0.8 , 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: boxcolor=aqua@0.8 , 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: boxcolor=yellow@0.8[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
пт, 27 окт. 2023 г., 15:14 frhun <frobihun@gmail.com>:
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:admin@192.168.2.21/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: boxcolor=red@0.8 , 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: boxcolor=white@0.8 , 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: boxcolor=aqua@0.8 , 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: boxcolor=yellow@0.8[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 ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
hello thanks for your answer I found one of these because what you posted was unfortunately not good, but it helped me find the one below, and I realize that with the setup you read here it will be fine. < https://community.antmedia.io/topic/1532-youtube-saying-please-use-a-keyfram...
the setup is: ffmpeg -i input.mp4 -qscale 0 -g 2 outputFile.mp4 I use this option : -qscale 0 -g 2 must be written strictly before the output Robert 2023. 10. 27. 14:22 keltezéssel, Andrew Randrianasulu írta:
пт, 27 окт. 2023 г., 15:14 frhun <frobihun@gmail.com>:
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:admin@192.168.2.21/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: boxcolor=red@0.8 , 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: boxcolor=white@0.8 , 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: boxcolor=aqua@0.8 , 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: boxcolor=yellow@0.8[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 ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Is there any way to directly save IPC video streams to cloud storage as files? Can the uploading be done through webdav for streaming transmission?
Is there any way to directly save IPC video streams to cloud storage as files? Can the uploading be done through webdav for streaming transmission?
participants (3)
-
Andrew Randrianasulu -
frhun -
好买卖