Re: [gentoo-user] Re: mplayer(2) ???

2011-09-24 Thread Mick
On Friday 23 Sep 2011 21:26:56 Nikos Chantziaras wrote:
 On 09/23/2011 12:54 AM, Mick wrote:
  On Thursday 22 Sep 2011 09:15:42 Nikos Chantziaras wrote:
  On 09/22/2011 12:58 AM, Mick wrote:
  On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:
  Does mplayer2 work with smplayer or kmplayer?
  
  I use mplayer2 with smplayer for a few month now and everything works
  just fine for me.
  
  Any idea when ffmpeg-mt might make it to the main portage tree?
  
  It's already in the tree.  Both ffmpeg as well as libav now have it.
  
  Sorry I can't see a USE flag or ffmpeg-mt package in portage:
  
  $ eix -l ffmpeg | grep mt
  $
  
  or are you saying that the code has been merged in the vanilla ffmpeg and
  libav without the need for a USE flag?
 
 ffmpeg-mt is not a package.  It's the name of the git branch the code
 was in.  That code was merged into the fmmpeg and libav projects.  That
 means that ffmpeg and libav now do multi-threading.

Yes, I didn't understand this initially.  Thanks.  :-)


 Furthermore, the threads USE flag does *not* control this.  You get
 multi-threading regardless of that flag.  threads only controls
 another type of multi-threading that was there since a long time now,
 but doesn't perform well.

Yes, that's how I remembered this, posix compatible threads (pthreads - since 
2004 or so IIRC).

However, my experience with USE=threads which I just switched on to test it, 
is the opposite:

The video rendering in mplayer is sharper and the picture therefore shows 
greater definition.  Not much, but enough for me to notice a clearer image.

The impact of threads on the CPU is not noticeable.


 It would split decoding of each frame into
 multiple threads, and the CPU cores would not start decoding again until
 the whole frame was finished.  The speed-up you get by this is minimal.
   Real multithreading, meaning the code from the ffmpeg-mt branch
 which allows every CPU core to fully decode its own video frame, cannot
 be controlled by a USE flag.
 
 To verify if multi-threading works for you, simply play an h264 video
 file in mplayer2 (using -lavdopts threads=N, where N is the number of
 CPU cores in your system) and use something like top or htop to
 check CPU load of each core.

I've removed USE=threads and emerged mplayer2.  Multithreading works fine (5 
threads are shown in top with 4 CPUs and threads=4).  However, the quality of 
the video is inferior to vanilla mplayer and USE=threads enabled ... o_O
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: mplayer(2) ???

2011-09-23 Thread Florian Philipp
Am 22.09.2011 23:54, schrieb Mick:
 On Thursday 22 Sep 2011 09:15:42 Nikos Chantziaras wrote:
 On 09/22/2011 12:58 AM, Mick wrote:
 On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:
 Does mplayer2 work with smplayer or kmplayer?

 I use mplayer2 with smplayer for a few month now and everything works
 just fine for me.

 Any idea when ffmpeg-mt might make it to the main portage tree?

 It's already in the tree.  Both ffmpeg as well as libav now have it.
 
 Sorry I can't see a USE flag or ffmpeg-mt package in portage:
 
 $ eix -l ffmpeg | grep mt
 $
 
 or are you saying that the code has been merged in the vanilla ffmpeg and 
 libav without the need for a USE flag?

The bug I linked to mentioned that it has been merged into ffmpeg and
libav. Both packages have USE=threads. If you use mplayer2, you also
see some output that mentions starting ffmpeg with x threads.

The bug also mentions that work on ffmpeg-mt continues so maybe you can
expect more merges or a new ebuild if the features are worth the effort.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: mplayer(2) ???

2011-09-23 Thread Mick
On Friday 23 Sep 2011 09:58:35 Florian Philipp wrote:
 Am 22.09.2011 23:54, schrieb Mick:
  On Thursday 22 Sep 2011 09:15:42 Nikos Chantziaras wrote:
  On 09/22/2011 12:58 AM, Mick wrote:
  On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:
  Does mplayer2 work with smplayer or kmplayer?
  
  I use mplayer2 with smplayer for a few month now and everything works
  just fine for me.
  
  Any idea when ffmpeg-mt might make it to the main portage tree?
  
  It's already in the tree.  Both ffmpeg as well as libav now have it.
  
  Sorry I can't see a USE flag or ffmpeg-mt package in portage:
  
  $ eix -l ffmpeg | grep mt
  $
  
  or are you saying that the code has been merged in the vanilla ffmpeg and
  libav without the need for a USE flag?
 
 The bug I linked to mentioned that it has been merged into ffmpeg and
 libav. Both packages have USE=threads. If you use mplayer2, you also
 see some output that mentions starting ffmpeg with x threads.

Ah!  Yes, of course!

I was looking for the wrong thing.  Thanks!

I've enabled USE=threads and remerged ffmpeg (don't have libav installed). 
However, when I try to install mplayer2 it tells me that I should disable 
USE=threads.  Am I missing something?

# emerge -uaDv mplayer2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N ] media-sound/mpg123-1.13.2  USE=alsa ipv6 sdl sse (-3dnow) 
(-3dnowext) (-altivec) (-coreaudio) -jack (-mmx) -nas -oss -portaudio -
pulseaudio 747 kB
[ebuild   R] media-video/ffmpeg-0.7.5  USE=3dnow 3dnowext X aac alsa amr 
bzip2 encode faac hardcoded-tables mmx mmxext mp3 rtmp sdl ssse3 truetype v4l2 
vaapi vorbis x264 xvid zlib (-altivec) -avx -bindist (-celt) -cpudetection -
custom-cflags -debug -dirac -doc -frei0r -gsm -ieee1394 -jack -jpeg2k -network 
-oss -pic -qt-faststart -schroedinger -speex -static-libs -test -theora -
threads* -v4l -vdpau -vpx VIDEO_CARDS=-nvidia 0 kB
[ebuild  N ] media-video/mplayer2-2.0  USE=X a52 alsa ass cddb cdio 
cdparanoia dts dv dvd dvdnav enca faad gif iconv ipv6 jpeg live mad mmx mmxext 
mng mp3 network opengl osdmenu png quicktime rar rtc sdl shm speex sse sse2 
ssse3 theora truetype unicode v4l2 vorbis xscreensaver xv xvid xvmc -3dnow 
-3dnowext -aalib (-altivec) (-aqua) -bidi -bindist -bl -bluray -bs2b -
cpudetection -custom-cflags -custom-cpuopts -debug -dga -directfb (-doc) -dvb 
-dxr3 -esd -fbcon -ftp -ggi -jack -joystick -ladspa -libcaca -lirc -md5sum -
nas -nut -oss -pnm -pulseaudio -pvr -radio (-real) -samba -tga -v4l -vdpau (-
win32codecs) -xanim -xinerama VIDEO_CARDS=-mga -s3virge -tdfx -vesa 3,589 
kB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 4,336 kB

The following USE changes are necessary to proceed:
#required by virtual/ffmpeg-0.6.90, required by media-video/mplayer2-2.0, 
required by mplayer2 (argument)
=media-video/ffmpeg-0.7.5 -threads

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: mplayer(2) ???

2011-09-23 Thread Joost Roeleveld
On Friday, September 23, 2011 01:56:38 PM Mick wrote:
 On Friday 23 Sep 2011 09:58:35 Florian Philipp wrote:
  Am 22.09.2011 23:54, schrieb Mick:
   On Thursday 22 Sep 2011 09:15:42 Nikos Chantziaras wrote:
   On 09/22/2011 12:58 AM, Mick wrote:
   On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:
   Does mplayer2 work with smplayer or kmplayer?
   
   I use mplayer2 with smplayer for a few month now and
   everything works just fine for me.
   
   Any idea when ffmpeg-mt might make it to the main portage tree?
   
   It's already in the tree.  Both ffmpeg as well as libav now have
   it.
   
   Sorry I can't see a USE flag or ffmpeg-mt package in portage:
   
   $ eix -l ffmpeg | grep mt
   $
   
   or are you saying that the code has been merged in the vanilla
   ffmpeg and libav without the need for a USE flag?
  
  The bug I linked to mentioned that it has been merged into ffmpeg and
  libav. Both packages have USE=threads. If you use mplayer2, you also
  see some output that mentions starting ffmpeg with x threads.
 
 Ah!  Yes, of course!
 
 I was looking for the wrong thing.  Thanks!
 
 I've enabled USE=threads and remerged ffmpeg (don't have libav installed).
 However, when I try to install mplayer2 it tells me that I should disable
 USE=threads.  Am I missing something?
 
 # emerge -uaDv mplayer2
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 [ebuild  N ] media-sound/mpg123-1.13.2  USE=alsa ipv6 sdl sse (-3dnow)
 (-3dnowext) (-altivec) (-coreaudio) -jack (-mmx) -nas -oss -portaudio -
 pulseaudio 747 kB
 [ebuild   R] media-video/ffmpeg-0.7.5  USE=3dnow 3dnowext X aac alsa
 amr bzip2 encode faac hardcoded-tables mmx mmxext mp3 rtmp sdl ssse3
 truetype v4l2 vaapi vorbis x264 xvid zlib (-altivec) -avx -bindist (-celt)
 -cpudetection - custom-cflags -debug -dirac -doc -frei0r -gsm -ieee1394
 -jack -jpeg2k -network -oss -pic -qt-faststart -schroedinger -speex
 -static-libs -test -theora - threads* -v4l -vdpau -vpx
 VIDEO_CARDS=-nvidia 0 kB
 [ebuild  N ] media-video/mplayer2-2.0  USE=X a52 alsa ass cddb cdio
 cdparanoia dts dv dvd dvdnav enca faad gif iconv ipv6 jpeg live mad mmx
 mmxext mng mp3 network opengl osdmenu png quicktime rar rtc sdl shm speex
 sse sse2 ssse3 theora truetype unicode v4l2 vorbis xscreensaver xv xvid
 xvmc -3dnow -3dnowext -aalib (-altivec) (-aqua) -bidi -bindist -bl -bluray
 -bs2b - cpudetection -custom-cflags -custom-cpuopts -debug -dga -directfb
 (-doc) -dvb -dxr3 -esd -fbcon -ftp -ggi -jack -joystick -ladspa -libcaca
 -lirc -md5sum - nas -nut -oss -pnm -pulseaudio -pvr -radio (-real) -samba
 -tga -v4l -vdpau (- win32codecs) -xanim -xinerama VIDEO_CARDS=-mga
 -s3virge -tdfx -vesa 3,589 kB
 
 Total: 3 packages (2 new, 1 reinstall), Size of downloads: 4,336 kB
 
 The following USE changes are necessary to proceed:
 #required by virtual/ffmpeg-0.6.90, required by media-video/mplayer2-2.0,
 required by mplayer2 (argument)
 =media-video/ffmpeg-0.7.5 -threads

Short answer:
Please add virtual/ffmpeg threads to /etc/portage/package.use and try 
again.

Longer answer:
 required by virtual/ffmpeg means that the virtual-ebuild is asking for that 
change and that ebuild also has a threads USE-flag.

I actually have threads enabled in /etc/make.conf.

--
Joost



[gentoo-user] Re: mplayer(2) ???

2011-09-23 Thread Nikos Chantziaras

On 09/23/2011 12:54 AM, Mick wrote:

On Thursday 22 Sep 2011 09:15:42 Nikos Chantziaras wrote:

On 09/22/2011 12:58 AM, Mick wrote:

On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:

Does mplayer2 work with smplayer or kmplayer?


I use mplayer2 with smplayer for a few month now and everything works
just fine for me.


Any idea when ffmpeg-mt might make it to the main portage tree?


It's already in the tree.  Both ffmpeg as well as libav now have it.


Sorry I can't see a USE flag or ffmpeg-mt package in portage:

$ eix -l ffmpeg | grep mt
$

or are you saying that the code has been merged in the vanilla ffmpeg and
libav without the need for a USE flag?


ffmpeg-mt is not a package.  It's the name of the git branch the code 
was in.  That code was merged into the fmmpeg and libav projects.  That 
means that ffmpeg and libav now do multi-threading.


Furthermore, the threads USE flag does *not* control this.  You get 
multi-threading regardless of that flag.  threads only controls 
another type of multi-threading that was there since a long time now, 
but doesn't perform well.  It would split decoding of each frame into 
multiple threads, and the CPU cores would not start decoding again until 
the whole frame was finished.  The speed-up you get by this is minimal. 
 Real multithreading, meaning the code from the ffmpeg-mt branch 
which allows every CPU core to fully decode its own video frame, cannot 
be controlled by a USE flag.


To verify if multi-threading works for you, simply play an h264 video 
file in mplayer2 (using -lavdopts threads=N, where N is the number of 
CPU cores in your system) and use something like top or htop to 
check CPU load of each core.





[gentoo-user] Re: mplayer(2) ???

2011-09-22 Thread Nikos Chantziaras

On 09/22/2011 12:58 AM, Mick wrote:

On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:

Does mplayer2 work with smplayer or kmplayer?


I use mplayer2 with smplayer for a few month now and everything works
just fine for me.


Any idea when ffmpeg-mt might make it to the main portage tree?


It's already in the tree.  Both ffmpeg as well as libav now have it.




Re: [gentoo-user] Re: mplayer(2) ???

2011-09-22 Thread Mick
On Thursday 22 Sep 2011 09:15:42 Nikos Chantziaras wrote:
 On 09/22/2011 12:58 AM, Mick wrote:
  On Wednesday 21 Sep 2011 09:19:39 Sebastian Beßler wrote:
  Does mplayer2 work with smplayer or kmplayer?
  
  I use mplayer2 with smplayer for a few month now and everything works
  just fine for me.
  
  Any idea when ffmpeg-mt might make it to the main portage tree?
 
 It's already in the tree.  Both ffmpeg as well as libav now have it.

Sorry I can't see a USE flag or ffmpeg-mt package in portage:

$ eix -l ffmpeg | grep mt
$

or are you saying that the code has been merged in the vanilla ffmpeg and 
libav without the need for a USE flag?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: mplayer(2) ???

2011-09-20 Thread James
James wireless at tampabay.rr.com writes:

 I have not kept up with the mplayer developments.

I did find this:
http://www.mplayer2.org/comparison.html


I'm still interested in folks experiences
or comparisons of mplayer1 and mplayer2


James






[gentoo-user] Re: mplayer(2) ???

2011-09-20 Thread Nikos Chantziaras

On 09/21/2011 12:07 AM, Stroller wrote:


On 20 September 2011, at 16:11, James wrote:

...
I have not kept up with the mplayer developments.

Now I see:   media-video/mplayer2
and media-video/mplayer
 Available versions:  1.0_rc4_p20101114


Any quick education on mplayer 2 would be appreciated.


I believe this would be better described as Uoti Urpala's mplayer.

http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2010-May/064672.html

The misunderstanding seems largely that to me - a misunderstanding between the Uoti and 
the other mplayer devs - rather than any kind of deliberate aggravation. I suspect that 
Uoti's version may well actually be better, but it's not official mplayer.


It's official mplayer2 ;-)