Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 8053  / 2 Years ago, sat, january 1, 2022, 1:54:51

There's a post in mplayer's site from 2011-03-26, i.e. March 26, saying that mplayer is multi-threaded. So this is several months before Oneiric was released. Does this mean that the stock mplayer I get from "sudo apt-get install mplayer" in Ubuntu Oneiric is multithreaded, and I don't need to compile from SVN, or compile mplayer-mt, or do anything special?


More From » mplayer

 Answers
0

In 11.10 you probably will need to add an option, either per cli or to ~/.mplayer/config, "-lavdopts threads=X" where X = the number of threads, (1-8, default is 1



Ex. for 2, in cli



-lavdopts threads=2


or in ~/.mplayer/config



lavdopts=threads=2


mplayer2, which is also available in 11.10, should do mt by default



You can check in either htop or thru the use of mpstat, part of the sysstat package (man mpstat) as to whether mt is happeneing



if you use the above parameter it may show up in terminal, (does with mplayer2, may not with mplayer) as in -



==========================================================================



Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family



Asking decoder to use 2 threads if supported.



Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)



==========================================================================



I prefer mplayer2 though either should treat you ok.


[#41200] Saturday, January 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionverflow

Total Points: 500
Total Questions: 115
Total Answers: 120

Location: Northern Ireland
Member since Mon, Nov 14, 2022
1 Year ago
;