When using ffmpeg with AVS to transcode MPEG2 UDP TS to AVS, processor usage goes upto 100% (1.0 load average where max load average is 8 ) and output video freezing and breaking.

I'm using Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz processor with 4 cores and two threads per each core and Ubuntu server 14.4 64Bit operating system

When transcoding the same input with x264, CPU usage is about 80% (on a single thread).

On a different processor Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz, x264 uses 180% of the processor (1.8 load average where max load average is 4). On this processor too xavs loads to 100% (1.0 load average) Still the output video breaks.

This is my configure line for xavs

./configure --disable-shared

This is my configure line for ffmpeg

./configure \ --extra-libs="-ldl" \ --enable-gpl \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libxavs \ --enable-nonfree \ --enable-x11grab

And this is my ffmepg command for transcoding

ffmpeg \ -i udp://@xxx.xxx.xxx.xxx:1001:fifo_size=2000000 \ -async 30 \ -vcodec xavs \ -f xavs \ -b:a 96k \ -b:v 2000k \ -maxrate 2000k \ -minrate 2000k \ -bf 2 \ -mpegts_service_id 0x8009 \ -mpegts_pmt_start_pid 0x1010 \ -mpegts_start_pid 0x112 \ -metadata service_provider="BBB" \ -metadata service_name="AAA" \ -f mpegts udp://@xxx.xxx.xxx.xxx:1001

Pleases help me to fix this issue.

Thanks and Regards

Eranga Amarakkon