Hi all

I am new in the mail list.
I from Hungary, I usualy helped sport competition, streaming to youtube...

I hope someone helps me.

I have a ip cam ( hikvision) , so far using only stream to youtube function.

( ffmpeg -re -rtsp_transport tcp -i rtsp://admin:xxxxx@192.168.2.25:554/Streaming/Channels/1 -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -ac 1 -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x )

working as well,
but now I want drawing text from dynamic text file.

ffmpeg -re -rtsp_transport tcp -i rtsp://admin:xxxxx@192.168.2.25/Streaming/Channels/1 -acodec aac -ar 8000 -b:a 64k -vcodec libx264 -vf "[in]drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': textfile='Z\:\\k\\v\\T_A\\P.txt': x=180: y=30: reload=1: fontcolor=black: fontsize=50: box=1: boxborderw=5: boxcolor=red@0.8 , drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': textfile='Z\:\\k\\v\\T_A\\F.txt': x=180: y=75: reload=1: fontcolor=black: fontsize=50: box=1: boxborderw=5: boxcolor=white@0.8 , drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': textfile='Z\:\\k\\v\\T_A\\O.txt': x=30: y=30: reload=1: fontcolor=black: fontsize=60: box=1: boxborderw=5: boxcolor=aqua@0.8 , drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': textfile='Z\:\\k\\v\\T_A\\M.txt': x=30: y=80: reload=1: fontcolor=black: fontsize=47: box=1: boxborderw=5: boxcolor=yellow@0.8[out]" -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x

4 txt files writing per second a program (scoreboard) names, points, time, line number

both bat files ( I using on win 10) working well, but first code cpu usage is 4-5 percent, and the second cpu usage is 50% !!!
it is not so good because 4-5 pieces stream send to youtube...

What is te perfect solution that the cpu usage be small.

Thanks!

Robert
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to