Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-02-03 Thread Carl Eugen Hoyos
2019-02-03 18:37 GMT+01:00, frhun :
> Please write example

$ ffmpeg -i input -i raw.yuv -filter_complex overlay out.mov.

Please don't top-post here, Carl Eugen
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-02-03 Thread frhun

Please write example
thanks!
Robert

2019. 02. 01. 20:11 keltezéssel, Carl Eugen Hoyos írta:

2019-01-28 19:39 GMT+01:00, frhun :

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:x@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.


Is the performance ok if you use a yuv420p image file
and use the overlay filter?
(If this works, you could try to update this file instead
of the text file.)
The overlay filter recently has seen optimizations and
I believe it is unlikely that you can get better than overlay.

Carl Eugen
___
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".


___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-02-01 Thread Carl Eugen Hoyos
2019-01-28 19:39 GMT+01:00, frhun :
> 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:x@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.

Is the performance ok if you use a yuv420p image file
and use the overlay filter?
(If this works, you could try to update this file instead
of the text file.)
The overlay filter recently has seen optimizations and
I believe it is unlikely that you can get better than overlay.

Carl Eugen
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-31 Thread Michael Shaffer
I was looking at this, it lists decode capability but not encode.
https://trac.ffmpeg.org/wiki/Hardware/QuickSync

As for putting text on the video, there's a library called OpenCV that lets
you put text on the video and do lots of other things. It probably would be
too much trouble though, since OpenCV can read an RTSP stream, but can't
send it to youtube. You'd have to capture the OpenCV window or something.

On Thu, Jan 31, 2019 at 3:47 AM frhun  wrote:

> excuse me, at first I did not read properly what you wrote
>
> you look ,I delete the drawtext, and do not use c:v copy
> but the cpu usage same with drawtext ~30%
>
> ffmpeg -r 25 -rtsp_transport tcp -i
> rtsp://admin:12341@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v
> 2M -c:a copy -preset ultrafast -f flv
> rtmp://a.rtmp.youtube.com/live2/x-x-x-x
>
>
> I seen the gpu, this is Ironlake-M
> the cpu is Mobile Dual Core i5-560M
>
> whether can be used ffmpeg with gpu ?
>
> thank you for dealing my problem!
> Robert
>
> 2019. 01. 30. 14:36 keltezéssel, Moritz Barsnick írta:
> > On Wed, Jan 30, 2019 at 13:25:26 +0100, frhun wrote:
> >> if -c:v copy then not working drawtext!
> >
> > Of course not! What I asked was "how does this performance change if you
> omit all the
> > filters" - and you are *not* supposed to use "-c:v copy", so we can see
> > approximately how much of your CPU performance is used by the encoding
> > process, and how much by the filter.
> >
> >> so the drawtext re encoding do high cpu usage, I use the notebook (
> >> thinkpad i5 3 generations) gpu is no to perfect :)
> >
> > That's not true. The filter *implies* not being able to do "-c:v copy",
> > but it may not be the actual filter using all the compute power, but
> > the CPU-based encoding. And if so, we might be able to help you by
> > recommending other encoding parameters or use of a GPU based encoder.
> >
> > Moritz
> > ___
> > 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".
> >
> ___
> 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".
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-31 Thread frhun

excuse me, at first I did not read properly what you wrote

you look ,I delete the drawtext, and do not use c:v copy
but the cpu usage same with drawtext ~30%

ffmpeg -r 25 -rtsp_transport tcp -i 
rtsp://admin:12341@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v 
2M -c:a copy -preset ultrafast -f flv 
rtmp://a.rtmp.youtube.com/live2/x-x-x-x



I seen the gpu, this is Ironlake-M
the cpu is Mobile Dual Core i5-560M

whether can be used ffmpeg with gpu ?

thank you for dealing my problem!
Robert

2019. 01. 30. 14:36 keltezéssel, Moritz Barsnick írta:

On Wed, Jan 30, 2019 at 13:25:26 +0100, frhun wrote:

if -c:v copy then not working drawtext!


Of course not! What I asked was "how does this performance change if you omit 
all the
filters" - and you are *not* supposed to use "-c:v copy", so we can see
approximately how much of your CPU performance is used by the encoding
process, and how much by the filter.


so the drawtext re encoding do high cpu usage, I use the notebook (
thinkpad i5 3 generations) gpu is no to perfect :)


That's not true. The filter *implies* not being able to do "-c:v copy",
but it may not be the actual filter using all the compute power, but
the CPU-based encoding. And if so, we might be able to help you by
recommending other encoding parameters or use of a GPU based encoder.

Moritz
___
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".


___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-30 Thread Moritz Barsnick
On Wed, Jan 30, 2019 at 13:25:26 +0100, frhun wrote:
> if -c:v copy then not working drawtext!

Of course not! What I asked was "how does this performance change if you omit 
all the
filters" - and you are *not* supposed to use "-c:v copy", so we can see
approximately how much of your CPU performance is used by the encoding
process, and how much by the filter.

> so the drawtext re encoding do high cpu usage, I use the notebook ( 
> thinkpad i5 3 generations) gpu is no to perfect :)

That's not true. The filter *implies* not being able to do "-c:v copy",
but it may not be the actual filter using all the compute power, but
the CPU-based encoding. And if so, we might be able to help you by
recommending other encoding parameters or use of a GPU based encoder.

Moritz
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-30 Thread frhun

if -c:v copy then not working drawtext!

only -c:v copy using the cpu usage 2-3% , it is working long ago
but now need use draw text on the video stream

so the drawtext re encoding do high cpu usage, I use the notebook ( 
thinkpad i5 3 generations) gpu is no to perfect :)


Robert

2019. 01. 30. 11:05 keltezéssel, Moritz Barsnick írta:

On Wed, Jan 30, 2019 at 07:47:24 +0100, frhun wrote:

so I try lot of ffmpeg switch

ffmpeg -r 25 -rtsp_transport tcp -i
rtsp://admin:1234@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v 2M
-c:a copy -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]" -preset
ultrafast -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x

I fixed the rate, and the output bitrate , and -preset utltrafast set

cpu usage 50% down to 20% it is better but not enough
because i using 4 cameras, processor usage ~80% , I cooked my notebook...
How to go below cpu usage


How does this performance change if you omit all the filters, i.e. just
RTSP demuxing/decoding and re-encoding to YouTube? (In other words: Do
the filters "cook" your CPU, or is it the encoding?) Not with "-c:v
copy, as in your original e-mail.

If the encoding is the bottleneck, you should try using your GPU for
that.

Moritz
___
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".


___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-30 Thread Moritz Barsnick
On Wed, Jan 30, 2019 at 07:47:24 +0100, frhun wrote:
> so I try lot of ffmpeg switch
> 
> ffmpeg -r 25 -rtsp_transport tcp -i 
> rtsp://admin:1234@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v 2M 
> -c:a copy -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]" -preset 
> ultrafast -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x
> 
> I fixed the rate, and the output bitrate , and -preset utltrafast set
> 
> cpu usage 50% down to 20% it is better but not enough
> because i using 4 cameras, processor usage ~80% , I cooked my notebook...
> How to go below cpu usage

How does this performance change if you omit all the filters, i.e. just
RTSP demuxing/decoding and re-encoding to YouTube? (In other words: Do
the filters "cook" your CPU, or is it the encoding?) Not with "-c:v
copy, as in your original e-mail.

If the encoding is the bottleneck, you should try using your GPU for
that.

Moritz
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-29 Thread frhun

so I try lot of ffmpeg switch

ffmpeg -r 25 -rtsp_transport tcp -i 
rtsp://admin:1234@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v 2M 
-c:a copy -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]" -preset 
ultrafast -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x


I fixed the rate, and the output bitrate , and -preset utltrafast set

cpu usage 50% down to 20% it is better but not enough
because i using 4 cameras, processor usage ~80% , I cooked my notebook...
How to go below cpu usage

Or there are other ways to text write video stream?

Robert


2019. 01. 29. 22:02 keltezéssel, Michael Shaffer írta:

Ok, I didn't know that. I guess it must be the encoding to h264 that the
GPU is helping with.

On Mon, Jan 28, 2019 at 11:23 PM Carl Eugen Hoyos 
wrote:


2019-01-29 0:06 GMT+01:00, Michael Shaffer :

Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
putting text on the image but are using the "-vf curves" command to
eliminate fog. The CPU was unable to do the curves filter at 30fps above
1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use

much

CPU at all now. Here is the command we're using that uses the Nvidia GPU.


This may not be related but allow me to add that the curves filter can
only run on CPU, and does not use GPU at all.

Carl Eugen
___
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".

___
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".


___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-29 Thread Michael Shaffer
Ok, I didn't know that. I guess it must be the encoding to h264 that the
GPU is helping with.

On Mon, Jan 28, 2019 at 11:23 PM Carl Eugen Hoyos 
wrote:

> 2019-01-29 0:06 GMT+01:00, Michael Shaffer :
> > Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
> > putting text on the image but are using the "-vf curves" command to
> > eliminate fog. The CPU was unable to do the curves filter at 30fps above
> > 1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use
> much
> > CPU at all now. Here is the command we're using that uses the Nvidia GPU.
>
> This may not be related but allow me to add that the curves filter can
> only run on CPU, and does not use GPU at all.
>
> Carl Eugen
> ___
> 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".
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-28 Thread frhun

Hi

I try to put on the text image.

ffmpeg -re -rtsp_transport tcp -i 
rtsp://admin:x@192.168.2.25:554/Streaming/Channels/1 -f image2 -loop 
1 -i C:\k\v\T\A.bmp -filter_complex "overlay=10:10" -vcodec libx264 
-pix_fmt yuv420p  -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x


the image file size is ~200kb, lot of time to write to disk, and ffmpeg 
do not open some times, and the last image show static.


that method is good for a short time, but rather this is good show logos 
on the video


and I do not put videocard the pc, but it is a notebook.

I did not say, the text information change per second.

I like to made example football video brodcasting, is shown at the top 
of the image the result, time, and others ( flags..)


Thanks
Robert

2019. 01. 29. 0:06 keltezéssel, Michael Shaffer írta:

Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
putting text on the image but are using the "-vf curves" command to
eliminate fog. The CPU was unable to do the curves filter at 30fps above
1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use much
CPU at all now. Here is the command we're using that uses the Nvidia GPU.

c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -y -i "rtsp://
admin:12345@192.168.1.64:554" -f lavfi -f dshow -rtbufsize 2000M
-thread_queue_size 5096 -i audio="virtual-audio-capturer" -c:a libmp3lame
-ab 128k -ar 44100 -bufsize 5096k -c:v h264_nvenc -preset:v hq -rc cbr_hq
-b:v 12M -buffer_size 1k -vf curves=psfile=c22.acv -f flv "rtmp://
a.rtmp.youtube.com/live2/abcd-efgh-1234-1234"

If you an afford  it, a GPU would help a lot.
Michael

On Mon, Jan 28, 2019 at 1:47 PM frhun  wrote:


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:x@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:x@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".

___
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".


___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-28 Thread Carl Eugen Hoyos
2019-01-29 0:06 GMT+01:00, Michael Shaffer :
> Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
> putting text on the image but are using the "-vf curves" command to
> eliminate fog. The CPU was unable to do the curves filter at 30fps above
> 1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use much
> CPU at all now. Here is the command we're using that uses the Nvidia GPU.

This may not be related but allow me to add that the curves filter can
only run on CPU, and does not use GPU at all.

Carl Eugen
___
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".

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-28 Thread Michael Shaffer
Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
putting text on the image but are using the "-vf curves" command to
eliminate fog. The CPU was unable to do the curves filter at 30fps above
1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use much
CPU at all now. Here is the command we're using that uses the Nvidia GPU.

c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -y -i "rtsp://
admin:12345@192.168.1.64:554" -f lavfi -f dshow -rtbufsize 2000M
-thread_queue_size 5096 -i audio="virtual-audio-capturer" -c:a libmp3lame
-ab 128k -ar 44100 -bufsize 5096k -c:v h264_nvenc -preset:v hq -rc cbr_hq
-b:v 12M -buffer_size 1k -vf curves=psfile=c22.acv -f flv "rtmp://
a.rtmp.youtube.com/live2/abcd-efgh-1234-1234"

If you an afford  it, a GPU would help a lot.
Michael

On Mon, Jan 28, 2019 at 1:47 PM frhun  wrote:

> 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:x@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:x@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".
___
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".