Hello, I have try it in Ubuntu precise 12.04 with libav 0.8.1
Better :-) but the idle time is in comparison to x264 still high: LIBAV - 13+14% X264 - 3+4% in top is the same core for all threads now used less times ... +- 6/10 better - THANKS - but could be even better. Below I present the case, when I caught the fortunate of the distribution of threads per core. May I ask - I am surprised that it is even possible to influence on what CPU the thread / process is routed ? If it would be random or load dependent (as I have though), so there would be no problem. Why are threads run just as inappropriate? ------------------------------------------------------ $ avconv -i public.ps.mpg -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec copy -threads 4 public+.ps.a$ ----------------------------------------------------- top - 18:22:02 up 11 min, 8 users, load average: 0.01, 0.13, 0.16 Tasks: 371 total, 2 running, 368 sleeping, 0 stopped, 1 zombie Cpu0 : 86.2%us, 0.7%sy, 0.0%ni, 13.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 84.5%us, 1.0%sy, 0.0%ni, 13.9%id, 0.7%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3767636k total, 2871152k used, 896484k free, 181044k buffers Swap: 0k total, 0k used, 0k free, 1928888k cached PID USER PR NI VIRT RES SHR S P %CPU %MEM TIME+ COMMAND 4863 ubuntu 20 0 175m 16m 3940 S 0 36.9 0.4 0:27.54 avconv 4864 ubuntu 20 0 175m 16m 3940 S 1 34.6 0.4 0:28.40 avconv 4861 ubuntu 20 0 175m 16m 3940 S 1 33.9 0.4 0:27.42 avconv 4862 ubuntu 20 0 175m 16m 3940 S 0 32.6 0.4 0:26.03 avconv 4865 ubuntu 20 0 175m 16m 3940 S 1 9.6 0.4 0:07.15 avconv 4867 ubuntu 20 0 175m 16m 3940 S 1 9.0 0.4 0:06.75 avconv 4866 ubuntu 20 0 175m 16m 3940 R 0 8.6 0.4 0:07.07 avconv 4860 ubuntu 20 0 175m 16m 3940 S 1 5.7 0.4 0:06.37 avconv 3418 ubuntu 20 0 65960 3496 2804 S 0 0.7 0.1 0:01.71 gvfsd-trash 3652 ubuntu 20 0 552m 24m 14m S 1 0.3 0.7 0:03.57 gnome-terminal 4858 ubuntu 20 0 17576 1648 1076 R 0 0.3 0.0 0:00.24 top 1 root 20 0 24420 2416 1376 S 0 0.0 0.1 0:00.57 init 2 root 20 0 0 0 0 S 1 0.0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0 0.0 0.0 0:00.03 ksoftirqd/0 6 root RT 0 0 0 0 S 0 0.0 0.0 0:00.00 migration/0 7 root RT 0 0 0 0 S 0 0.0 0.0 0:00.00 watchdog/0 8 root RT 0 0 0 0 S 1 0.0 0.0 0:00.00 migration/1 10 root 20 0 0 0 0 S 1 0.0 0.0 0:00.11 ksoftirqd/1 12 root RT 0 0 0 0 S 1 0.0 0.0 0:00.00 watchdog/1 13 root 0 -20 0 0 0 S 0 0.0 0.0 0:00.00 cpuset 14 root 0 -20 0 0 0 S 0 0.0 0.0 0:00.00 khelper 15 root 20 0 0 0 0 S 1 0.0 0.0 0:00.00 kdevtmpfs 16 root 0 -20 0 0 0 S 0 0.0 0.0 0:00.00 netns 18 root 20 0 0 0 0 S 0 0.0 0.0 0:00.00 sync_supers --kapetr ----- PŮVODNÍ ZPRÁVA ----- Od: "Luca Barbato" <[email protected]> Komu: [email protected] Předmět: Re: [libav-devel] multithreading problem Datum: 26.3.2012 - 18:29:55 > Try to use avconv from libav-0.8.1, it should have > some of those issue > fixed. Keep in mind that depending on the content > you won't be able to > max out all the cores. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
