Re: [FFmpeg-user] Reg: CPU Usage Issue

2014-07-23 Thread Tom Evans
On Wed, Jul 23, 2014 at 8:45 AM, subeesh.babu
subeesh.b...@industeqsite.com wrote:
 Any one suggest how to reduce the CPU usage .

I thought I'd collate all the advice you have been given so far in to
one list, so that when you re-post asking the same thing again without
having tried any of them, people can see the whole list of things that
you've ignored.

1) Use an up to date ffmpeg, it might fix things, and it is the only
version supported on this list
2) Show your complete command line and uncut output
3) Don't encode the content on the slow CPU, simply copy it with -c copy
4) Use a different encoder, eg MPEG-2 or libx264
5) Tune your encoder, eg libx264 can produce the same quality with a
low bitrate and a high bitrate, producing it with a low bitrate is
slower since it needs to do more work. Control it with -preset.

Cheers

Tom
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Reg: CPU Usage Issue

2014-07-18 Thread subeesh.babu


Hi ,

1 . I am using DM8148 Davinci Processor and in that Arm7 core is using with 
a speed of 600MHz.

2 . ffmpeg-1.1.4 is using .
3. Command used for streaming the video shall be given below . It streams 
the data but is slow and takes 99% of CPU usage.

ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234
4. The above command is what i am using for streaming an MP4 video file .
Can any one suggest how to reduce the CPU usage .


Regards,
Subeesh babu
Mob: +91-8939229627

- Original Message - 
From: Moritz Barsnick barsn...@gmx.net

To: FFmpeg user discussions ffmpeg-user@ffmpeg.org
Sent: Saturday, July 05, 2014 4:40 PM
Subject: Re: [FFmpeg-user] Reg: CPU Usage Issue



On Fri, Jul 04, 2014 at 11:39:19 +0530, subeesh.babu wrote:

 ffmpeg -re -i video.mp4 -f mpegts udp:10.5.4.69:1234
  a.. It takes 99% of CPU usage . Any one suggest how to reduce my 
CPU usage .


If video.mp4 already contains the correct codecs with the correct
parameters for your streamed mpegts, you could avoid recoding totally
by adding:
-c copy
(or -c:v copy, if it shall only apply to video).

That avoids very much of the CPU usage.


Apart from that, we usually expect your full ffmpeg command line and
the complete, uncut output on this list, to better understand your
scenario.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 


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


Re: [FFmpeg-user] Reg: CPU Usage Issue

2014-07-18 Thread Moritz Barsnick
On Fri, Jul 18, 2014 at 11:31:36 +0200, Moritz Barsnick wrote:
 On Fri, Jul 18, 2014 at 14:56:22 +0530, subeesh.babu wrote:
  Can any one suggest how to reduce the CPU usage .
 
 Did you even read my reply? (You quoted it.) Have you tried the
 suggestion? Did it help?

Furthermore, if you do wish/need to recode, and if your ffmpeg uses
libx264 as the default encoder (as you don't state an encoder
explicitly on your command line, you can use one of the presets to get
a better encoding framerate, at the cost of a higher bandwidth (roughly
speaking). E.g. -preset veryfast.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user