multithreaded vlc

Feature requests for VLC.
arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

multithreaded vlc

Postby arobro » 07 Mar 2009 00:45

i have been using the experimental multithreaded version of mplayer and it now means i can play hd videos while deinterlacing properly
the multithreaded mplayer uses a lots less cpu than the vlc so i believe its time to release an experimental multithreaded version of vlc
using the FFmpeg-mt branch
here a link with information about multithreaded mplayer http://www.mplayerhq.hu/design7/news.html
Last edited by arobro on 08 Mar 2009 00:03, edited 1 time in total.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: multithreaded vlc

Postby VLC_help » 07 Mar 2009 17:12

the multithreaded mplayer uses a lots less cpu
Multithreading uses more CPU time, less real world time.

And decoder speedups will come to public VLC releases when multithread FFmpeg becomes stable. Naturally you can compile VLC with newer FFmpeg (libavcodec, libavformat, etc.) if you want to test it.

napx
Blank Cone
Blank Cone
Posts: 30
Joined: 23 Aug 2009 18:49

Re: multithreaded vlc

Postby napx » 23 Aug 2009 19:00

Hello VLC forum,

I came around and registred to check up on this feature.

I recently installed a nightly build of ffdshow-tryouts and enabled the ffmpeg-mt decoder instead of libavcodec and was pleased to see that I could watch in Mpc-HC some tough 20mbit AVCHD clips on my 1.8ghz C2D laptop for the first time!

I am eager to see VLC pickup ffmpeg-mt from the ffmpeg project as it is my favorite video player ever, is this planned any time soon? Can I see this in action now in VLC nightlies?
If not, how can I "compile VLC with newer FFmpeg" myself? I would love to test this out on all my setups; win32, win x64, Linux etc..

arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

Re: multithreaded vlc

Postby arobro » 23 Aug 2009 22:07

hello
Unfortuntly vlc still doesn't have ffmpeg-mt in it even in the svn, However from version 1.0.0 the vlc x264 encoding is mutlithreaded

Before you can compile vlc-mt you need to compile vlc
This is harder than it sounds, but here are some links

http://wiki.videolan.org/Win32CompileCygwinNew
http://wiki.videolan.org/Win32CompileMSYS

then you need to compile ffmpeg-mt
gitorious.org/projects/ffmpeg/repos/ffmpeg-mt
then you copy the *.a files from ffmpeg (eg avcodec.a) to vlc folder usr\win32\lib\
and if all goes well you would have vlc-mt!

I haven't actualy got vlc to compile yet. but i have added ffmpeg mt to mplayer and mythtv player so i have a reasonble understanding of what to do.
Although i have been compiling using the Win32CompileMSYS way so I might try with Cygwin and see if i have some beter luck with that.

As you can see though this is compicated proccess and I would really like to see a vlc devoloper upload an .exe and maybe even have a offical mt version as I can never see ffmpeg-mt being part of the "offical ffmpeg" and 8 core proccessers are coming end of next year.

If anyones got any help or any new tutorials for compiling vlc please let me know

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: multithreaded vlc

Postby VLC_help » 24 Aug 2009 22:41

ffmpeg-mt had some issues with H.264 decoding when used with VLC. I don't know if those problem are still there.

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: multithreaded vlc

Postby DGMurdockIII » 25 Aug 2009 19:32

I would also like to say that i think vlc should be multithreaded and i thnk vlc should try to brake away from always having to realy on ffmpeg all the time

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: multithreaded vlc

Postby VLC_help » 25 Aug 2009 22:14

realy on ffmpeg all the time
How would you achieve this?

napx
Blank Cone
Blank Cone
Posts: 30
Joined: 23 Aug 2009 18:49

Re: multithreaded vlc

Postby napx » 26 Aug 2009 15:50

ffmpeg-mt had some issues with H.264 decoding when used with VLC. I don't know if those problem are still there.
So is ffmpeg-mt integration in VLC on the agenda at all?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: multithreaded vlc

Postby VLC_help » 27 Aug 2009 13:21

So is ffmpeg-mt integration in VLC on the agenda at all?
ffmpeg-mt is prolly going to get to VLC stable release when it is stable branch.

napx
Blank Cone
Blank Cone
Posts: 30
Joined: 23 Aug 2009 18:49

Re: multithreaded vlc

Postby napx » 07 Sep 2009 12:49

The ffmpeg changelog for "version <next>" doesn't seem to have anything about multithread..
(http://ffmpeg.org/changelog.html)
Could ffmpeg-mt be moved to "stable" regardless?

Damn I wish ffmpeg version changes didn't occur so slowly..

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

Re: multithreaded vlc

Postby coobox » 02 Dec 2009 10:51

no news about it?
--<Coobox>--

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

Re: multithreaded vlc

Postby coobox » 02 Dec 2009 11:49

--sout-transcode-threads
--<Coobox>--

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: multithreaded vlc

Postby VLC_help » 02 Dec 2009 13:15

sout-transcode-threads is for transcoding, not for playback.

arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

Re: multithreaded vlc

Postby arobro » 09 Feb 2010 09:07

I have now got vlc to compile with ffmpeg-mt!

Unfortunalty there are still some things I need to do.

* I haven't compiled in the gui yet
* Some formats crash or dont work (probaly due to missing libaries)
* Directx doesn't seem to have compiled properly witch causes some crashes
* Compiler needs updating from gcc 3.4 to 4.5

I think a mutithreaded vlc needs to be put to the top of the list as the chance of ffmpeg-mt becoming stable is about the chance of ffmpeg have version 1.0

If any one interested, I haven't used any patches, I have just compiled it like normal except with ffmpeg mt. The fact I have got it to compile shows that it shouldn't be a big job to get it into the stable versions

jocamero
New Cone
New Cone
Posts: 4
Joined: 22 Feb 2010 21:53

Re: multithreaded vlc

Postby jocamero » 04 Mar 2010 06:31

Hey arobro, any chance you could give a quick tutorial for the technically minded on how you compiled VLC w/ ffmpeg-mt? Thanks in advance!
I have now got vlc to compile with ffmpeg-mt!

Unfortunalty there are still some things I need to do.

* I haven't compiled in the gui yet
* Some formats crash or dont work (probaly due to missing libaries)
* Directx doesn't seem to have compiled properly witch causes some crashes
* Compiler needs updating from gcc 3.4 to 4.5

I think a mutithreaded vlc needs to be put to the top of the list as the chance of ffmpeg-mt becoming stable is about the chance of ffmpeg have version 1.0

If any one interested, I haven't used any patches, I have just compiled it like normal except with ffmpeg mt. The fact I have got it to compile shows that it shouldn't be a big job to get it into the stable versions

napx
Blank Cone
Blank Cone
Posts: 30
Joined: 23 Aug 2009 18:49

Re: multithreaded vlc

Postby napx » 17 Mar 2010 21:28

ffdshow tryouts has a new release (beta 7) that advertises ffmpeg-mt. come on VLC !

News
2010-02-14 Beta 7 has been released! Highlights of this release:

* Support for DTS-HD and Dolby TrueHD bitstreaming
* New H.264 decoder "ffmpeg-mt" takes better advantage of multi-core CPUs
* Improved subtitle rendering

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: multithreaded vlc

Postby Jean-Baptiste Kempf » 17 Mar 2010 21:37

ffmpeg-mt is still broken for many formats.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

anda
New Cone
New Cone
Posts: 1
Joined: 30 Apr 2010 17:11

Re: multithreaded vlc

Postby anda » 30 Apr 2010 17:16

ffmpeg-mt is still broken for many formats.

But it can be selectively enabled, and works perfectly on 720/1080p h.264, which is the only thing most people with older machines can't play. I'm using the Chromium nightlies with -mt on HTML5 video, mplayer with -mt for everything else, and haven't had a problem yet.


(edit: just saw a similar thread below, sorry for bumping this one too - came in from google)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: multithreaded vlc

Postby Jean-Baptiste Kempf » 30 Apr 2010 21:31

ffmpeg-mt is still broken for many formats.

But it can be selectively enabled, and works perfectly on 720/1080p h.264, which is the only thing most people with older machines can't play. I'm using the Chromium nightlies with -mt on HTML5 video, mplayer with -mt for everything else, and haven't had a problem yet.


(edit: just saw a similar thread below, sorry for bumping this one too - came in from google)
VLC is quite different in the way it handles pts and dts so far. Patches are welcome, though :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests