[FFmpeg-user] bad video settings

Andrew Randrianasulu randrianasulu at gmail.com
Fri Oct 27 15:22:06 EEST 2023


пт, 27 окт. 2023 г., 15:14 frhun <frobihun at 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 at 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 at 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 at 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 at 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 at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list