Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild for multi-threaded ("multi-core") mplayer (ffmpeg-mt)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Wed Oct 06, 2010 10:50 pm    Post subject: Reply with quote

mplayer-1.0_rc4_p20101004

Updated ffmpeg-mt (revision ed42183) and mplayer (revision 32419.)

Ebuild synced with Portage.
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 582

PostPosted: Sun Oct 10, 2010 7:17 pm    Post subject: Reply with quote

this looks cool since I do a lot of encoding, thanks.

I have a couple questions. I have an older 32b mplayer for my 64b env which works fine. it's mplayer-1.0_rc2_p20090322 so:

1. there isn't any reason multi-threading w/32b app in 64b env wouldn't work is there?

2. the 2009 patch links in your bugzilla are dead and all I see are the 2010 versions here: http://foss.math.aegean.gr/~realnc/mplayer/

when I click "parent" I just get an animation so do you still have the 2009 patches? if so do you mind saying where so I can grab it?

thanks
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Mon Oct 11, 2010 12:55 am    Post subject: Reply with quote

nordic bro wrote:
there isn't any reason multi-threading w/32b app in 64b env wouldn't work is there?

I can't think of a reason why this could be a problem. The needed 32-bit threading libraries are there, so it should work.

Quote:
the 2009 patch links in your bugzilla are dead and all I see are the 2010 versions here: http://foss.math.aegean.gr/~realnc/mplayer/

when I click "parent" I just get an animation so do you still have the 2009 patches? if so do you mind saying where so I can grab it?

I don't keep them around. I only keep the last 5 or so.

But you can create them on your own by fetching a 2009 commit from ffmpeg-mt's Git repo, and then fetching a commit from the same date from mplayer's SVN repo.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Thu Oct 14, 2010 9:45 am    Post subject: Reply with quote

mplayer-1.0_rc4_p20101014

Updated ffmpeg-mt (revision 3f75218) and mplayer (revision 32476.)

Ebuild synced with Portage. As a result, there are many changes and clean-ups (like removed gmplayer support.)
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sun Oct 24, 2010 5:03 pm    Post subject: Reply with quote

mplayer-1.0_rc4_p20101024

Updated ffmpeg-mt (revision 18893e1) and mplayer (revision 32533.)
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sun Oct 31, 2010 6:40 pm    Post subject: Reply with quote

Thanks for the ebuild. I've installed it and it works great. Even many nagging issues with MPlayer from portage (such as flickering xv when moving windows) do not occur. Multi-threaded decoding works great.
Back to top
View user's profile Send private message
aoeuaoue
n00b
n00b


Joined: 26 Feb 2010
Posts: 31

PostPosted: Tue Nov 02, 2010 8:30 pm    Post subject: system threaded ffmpeg Reply with quote

hey,

Which is the system's threaded FFMPEG package? Which combination of ebuilds would I need in order to use system's ebuilds?

Currently I am using media-video/mplayer-1.0_rc4_p20101024 in the multimedia overlay, but as I understand its ffmpeg-mt USE flag uses some sort of built in ffmpeg, right? Is there in gentoo or in multimedia overlay ffmpeg that's multithreaded and mplayer that uses it?

I've tried mplayer -lavdopts threads=4 and it's pretty cool how it uses al the cores.

Thanks
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Wed Nov 03, 2010 11:52 am    Post subject: Re: system threaded ffmpeg Reply with quote

aoeuaoue wrote:
hey,

Which is the system's threaded FFMPEG package?

I don't think that there is a multi-threaded ffmpeg in portage, and mplayer prefers using its own version anyway.
Back to top
View user's profile Send private message
aoeuaoue
n00b
n00b


Joined: 26 Feb 2010
Posts: 31

PostPosted: Wed Nov 03, 2010 6:15 pm    Post subject: Re: system threaded ffmpeg Reply with quote

pingufunkybeat wrote:
aoeuaoue wrote:
hey,

Which is the system's threaded FFMPEG package?

I don't think that there is a multi-threaded ffmpeg in portage, and mplayer prefers using its own version anyway.


Even the mplayer version in portage uses its own built-in ffmpeg??
8O

I never new this.
Back to top
View user's profile Send private message
M
Guru
Guru


Joined: 12 Dec 2006
Posts: 432

PostPosted: Wed Nov 03, 2010 6:29 pm    Post subject: Reply with quote

Quote:
Even the mplayer version in portage uses its own built-in ffmpeg??

mplayer-9999 version from portage has external-ffmpeg use flag, and it works, I use it for some time, but than, you still need ffmpeg-mt ebuild in local overlay. I prefer it because I have other stuff depending on ffmpeg.


Last edited by M on Thu Nov 04, 2010 2:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Wed Nov 03, 2010 11:41 pm    Post subject: Re: system threaded ffmpeg Reply with quote

aoeuaoue wrote:
pingufunkybeat wrote:
aoeuaoue wrote:
hey,

Which is the system's threaded FFMPEG package?

I don't think that there is a multi-threaded ffmpeg in portage, and mplayer prefers using its own version anyway.


Even the mplayer version in portage uses its own built-in ffmpeg??
8O

I never new this.

It's what upstream recommends. Using external ffmpeg works but is "unsupported."
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Fri Nov 05, 2010 6:55 am    Post subject: Reply with quote

mplayer-1.0_rc4_p20101105

Updated ffmpeg-mt (revision ea396d3) and mplayer (revision 32577.)

Ebuild synced with Portage.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1979
Location: Poland

PostPosted: Wed Nov 17, 2010 2:14 pm    Post subject: Reply with quote

Thanks for your efforts!
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Fri Dec 24, 2010 9:07 am    Post subject: Reply with quote

mplayer-1.0_rc4_p20101216

Updated ffmpeg-mt (revision 2bbb64d) and mplayer (revision 32716.)

Ebuild synced with Portage.

Warning: This version has a bug where Ogg Vorbis audio in *.ogm files is not being played. Upstream ffmpeg bug:

http://roundup.ffmpeg.org/issue2428

If this is important to you, continue to use 1.0_rc4_p20101105 and don't upgrade yet.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Fri Dec 24, 2010 11:38 am    Post subject: Reply with quote

There is mplayer-uau in multimedia overlay, multithreaded with other goodies like support for ordered mkv.
_________________
BitBucket -- better-initramfs
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Fri Dec 24, 2010 11:48 am    Post subject: Reply with quote

And?
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Wed Jan 12, 2011 11:28 am    Post subject: Reply with quote

fanthom wrote:
@RealNC

any chance of getting mplayer-ffmpeg-mt updated to p20101114 (official version in portage)?

p20101216 is the latest version. Three posts above :-)
Back to top
View user's profile Send private message
fanthom
n00b
n00b


Joined: 31 May 2007
Posts: 60

PostPosted: Wed Jan 12, 2011 11:36 am    Post subject: Reply with quote

yes - sorry.
i have realized that after a minute and deleted my post :)


EDIT:\\
just compiled mplayer with your patch:
http://foss.math.aegean.gr/~realnc/mplayer/mplayer-1.0_rc4_p20101105-ffmpeg-mt.patch
and:
http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/mplayer-vaapi-20101115.tar.bz2

seems to work fine :)

Thanks!
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Wed Jan 12, 2011 11:50 am    Post subject: Reply with quote

Note that you can usually grab ffmpeg-mt yourself from http://gitorious.org/ffmpeg/ffmpeg-mt and replace the "ffmpeg" directory of mplayer with that, *except* for the "ffmpeg/libswscale/" dir.

Also note that ffmpeg-mt is not kept in sync with upstream ffmpeg, so using ffmpeg-mt you're using an older ffmpeg. This is the reason I only bump this ebuild after new ffmpeg-mt Git commits, something that happens once every few months.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Tue Mar 29, 2011 4:12 am    Post subject: Reply with quote

ffmpeg-mt has been merged in upstream ffmpeg now. The mplayer2 fork (I think) already has it, and I guess future mplayer ebuilds will also have it as a result of the upstream merge.

So I think there's no need anymore for me to keep doing these ebuilds :D
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Sun Apr 03, 2011 1:55 am    Post subject: Reply with quote

RealNC wrote:
ffmpeg-mt has been merged in upstream ffmpeg now. The mplayer2 fork (I think) already has it, and I guess future mplayer ebuilds will also have it as a result of the upstream merge.

So I think there's no need anymore for me to keep doing these ebuilds :D


Thanks for doing them, it's been very much appreciated.
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
rimsky
n00b
n00b


Joined: 06 Aug 2011
Posts: 12

PostPosted: Tue Nov 08, 2011 2:37 pm    Post subject: Reply with quote

USE="-ffmpeg-mt" emerge mplayer

* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild R ] media-video/mplayer-1.0_rc4_p20110322-r1 USE="X a52 alsa amr ass cddb cdio dirac dts dv dvd dvdnav enca encode faac faad ftp gif iconv ipv6 jpeg jpeg2k libcaca lirc live mmx mp3 network openal opengl osdmenu png quicktime rar real rtc samba schroedinger shm speex sse sse2 tga theora toolame tremor truetype twolame unicode v4l vdpau vorbis win32codecs x264 xscreensaver xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) (-aqua) -bidi -bindist -bl -bluray -bs2b -cdparanoia -cpudetection -custom-cpuopts -debug -dga -directfb -doc -dvb (-dxr3) -esd -fbcon -ggi -gsm -jack -joystick -ladspa -libmpeg2 -lzo -mad -md5sum -mmxext -mng -mpg123 -nas -nut -oss -pnm -pulseaudio -pvr -radio -rtmp -sdl -ssse3 -vidix -vpx -xanim -xinerama -zoran (-v4l2%*)" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" 0 kB

emerge --sync
where is there ffmpeg-mt flag, people.

November 2011 year
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 675

PostPosted: Tue Nov 08, 2011 4:46 pm    Post subject: Reply with quote

rimsky wrote:
where is there ffmpeg-mt flag, people.
There isn't one.

Do multithreaded decoding with 'mplayer -lavdopts threads=2'. Or threads=8 or whatever.
Back to top
View user's profile Send private message
rimsky
n00b
n00b


Joined: 06 Aug 2011
Posts: 12

PostPosted: Sat Nov 12, 2011 9:06 am    Post subject: Reply with quote

pigeon768 wrote:
rimsky wrote:
where is there ffmpeg-mt flag, people.
There isn't one.

Do multithreaded decoding with 'mplayer -lavdopts threads=2'. Or threads=8 or whatever.


And if I want take image seqences from movie?
mplayer use "-s" key only. manual mode. or one screen per movie. All use ffmpeg.
ffmpeg -i movie.mov -r 2 pic/ss%07d.png
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sat Nov 12, 2011 10:00 am    Post subject: Reply with quote

As already explained, media-video/ffmpeg (and also media-video/libav) have merged the ffmpeg-mt patches. Everything is now properly multithreaded and you don't need to do anything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum