high cpu uses

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

high cpu uses

Remo Rayamajhi
Hello ,

I m using 8 core cpu and  using ffmpeg to transcode udp input to rtmp out
to my Wowza server ... but only *2 ffmpeg script* is easily run . Is there
any idea so i can transcode* 5-6 stream *for that 8 core server . Os
install is centos .

*ffmpeg -i 'rtp://@239.1.2.10:8002 <http://239.1.2.10:8002>' -r "25"
-keyint_min 25 -refs 3 -level 3.1 -coder 1 -trellis 1 -b:v 800k -vf
"yadif,hqdn3d=1.5:1.5:6:6,scale=720:576" -aspect 16:9 -c:a aac -ar 44100
-ac 2 -b:a 128k -c:v libx264 -g 50 -f mpegts udp://@192.168.2.200:1243
<http://192.168.2.200:1243> </dev/null >/dev/null 2>/var/log/ffmpeg9.log &*
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: high cpu uses

Reindl Harald


Am 09.08.2018 um 13:16 schrieb Remo Rayamajhi:

> I m using 8 core cpu and  using ffmpeg to transcode udp input to rtmp out
> to my Wowza server ... but only *2 ffmpeg script* is easily run . Is there
> any idea so i can transcode* 5-6 stream *for that 8 core server . Os
> install is centos .
>
> *ffmpeg -i 'rtp://@239.1.2.10:8002 <http://239.1.2.10:8002>' -r "25"
> -keyint_min 25 -refs 3 -level 3.1 -coder 1 -trellis 1 -b:v 800k -vf
> "yadif,hqdn3d=1.5:1.5:6:6,scale=720:576" -aspect 16:9 -c:a aac -ar 44100
> -ac 2 -b:a 128k -c:v libx264 -g 50 -f mpegts udp://@192.168.2.200:1243
> <http://192.168.2.200:1243> </dev/null >/dev/null 2>/var/log/ffmpeg9.log &*
set -threads option and/or reduce quality
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: high cpu uses

Remo Rayamajhi
What is the best -threads  option that I can use

I m using onlu video bitrate of 880k , less than that will give me poor and useless quality .

Sent from Mail for Windows 10

From: Reindl Harald
Sent: Thursday, August 9, 2018 5:17 PM
To: [hidden email]
Subject: Re: [FFmpeg-user] high cpu uses



Am 09.08.2018 um 13:16 schrieb Remo Rayamajhi:

> I m using 8 core cpu and  using ffmpeg to transcode udp input to rtmp out
> to my Wowza server ... but only *2 ffmpeg script* is easily run . Is there
> any idea so i can transcode* 5-6 stream *for that 8 core server . Os
> install is centos .
>
> *ffmpeg -i 'rtp://@239.1.2.10:8002 <http://239.1.2.10:8002>' -r "25"
> -keyint_min 25 -refs 3 -level 3.1 -coder 1 -trellis 1 -b:v 800k -vf
> "yadif,hqdn3d=1.5:1.5:6:6,scale=720:576" -aspect 16:9 -c:a aac -ar 44100
> -ac 2 -b:a 128k -c:v libx264 -g 50 -f mpegts udp://@192.168.2.200:1243
> <http://192.168.2.200:1243> </dev/null >/dev/null 2>/var/log/ffmpeg9.log &*
set -threads option and/or reduce quality
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: high cpu uses

Reindl Harald


Am 09.08.2018 um 13:48 schrieb Remo Rayamajhi:
> What is the best -threads  option that I can use

just play around - whatever encodes fast enough for the reciever

you can't magically reduce cpu usage without compromises because x264
don't use the cpu just for fun

> From: Reindl Harald
> Sent: Thursday, August 9, 2018 5:17 PM
> To: [hidden email]
> Subject: Re: [FFmpeg-user] high cpu uses
>
>
>
> Am 09.08.2018 um 13:16 schrieb Remo Rayamajhi:
>> I m using 8 core cpu and  using ffmpeg to transcode udp input to rtmp out
>> to my Wowza server ... but only *2 ffmpeg script* is easily run . Is there
>> any idea so i can transcode* 5-6 stream *for that 8 core server . Os
>> install is centos .
>>
>> *ffmpeg -i 'rtp://@239.1.2.10:8002 <http://239.1.2.10:8002>' -r "25"
>> -keyint_min 25 -refs 3 -level 3.1 -coder 1 -trellis 1 -b:v 800k -vf
>> "yadif,hqdn3d=1.5:1.5:6:6,scale=720:576" -aspect 16:9 -c:a aac -ar 44100
>> -ac 2 -b:a 128k -c:v libx264 -g 50 -f mpegts udp://@192.168.2.200:1243
>> <http://192.168.2.200:1243> </dev/null >/dev/null 2>/var/log/ffmpeg9.log &*
> set -threads option and/or reduce quality
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: high cpu uses

DopeLabs
In reply to this post by Remo Rayamajhi
On Aug 9, 2018, at 4:16 58AM, Remo Rayamajhi <[hidden email]> wrote:
>
> Hello ,
>
> I m using 8 core cpu and  using ffmpeg to transcode udp input to rtmp out
> to my Wowza server ...

except what i see in the command you provided is rtp input to udp out...

also last time i checked wowza should be able to ingest both udp and rtp streams and transcode them

> but only *2 ffmpeg script* is easily run . Is there
> any idea so i can transcode* 5-6 stream *for that 8 core server . Os
> install is centos .
>
> *ffmpeg -i 'rtp://@239.1.2.10:8002 <http://239.1.2.10:8002>' -r "25"
> -keyint_min 25 -refs 3 -level 3.1 -coder 1 -trellis 1 -b:v 800k -vf
> "yadif,hqdn3d=1.5:1.5:6:6,scale=720:576" -aspect 16:9 -c:a aac -ar 44100
> -ac 2 -b:a 128k -c:v libx264 -g 50 -f mpegts udp://@192.168.2.200:1243
> <http://192.168.2.200:1243> </dev/null >/dev/null 2>/var/log/ffmpeg9.log &*

have you tried (usually at the expense of higher bitrate): -preset ultrafast


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".