Is vlc multithreaded?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
hplus
New Cone
New Cone
Posts: 1
Joined: 22 Dec 2006 08:48

Is vlc multithreaded?

Postby hplus » 22 Dec 2006 09:00

I was wondering if vlc is multithreaded or not...
I mean if i am transcoding something would the decoding create a thread and the encoding another one?
I am thinking to buy a dual core if it would benefit from that... now for some heavy format the real time transcoding can be little bit choppy...

thanks

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

Postby Jean-Baptiste Kempf » 22 Dec 2006 10:44

VLC is multithreaded.
But I am not sure you will get a lot of improvement with Dual Core. Maybe someone else could help you.
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.

geo
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 23 Dec 2003 05:48
Location: Canberra, Australia
Contact:

Postby geo » 23 Dec 2006 05:33

On a multi core Mac, transcoding can run on multiple CPUs if you set the preference to do so in Stream Output/Sout Stream/Transcode/Number of Threads.

punkypogo
New Cone
New Cone
Posts: 8
Joined: 26 Jan 2007 15:08

Postby punkypogo » 26 Jan 2007 15:42

Hello,

Can I have some informations about the gain with the multithread option on ?
(with which proc, etc).

Thanks in advance.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 26 Jan 2007 22:46

VLC is multi threaded, but most decoders aren't. Which means that the video decoder will only run on one thread. So you won't gain much. (basically you'll have the video decoder on one cpu, and other threads on the other ... if your Video is complex to decode)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

punkypogo
New Cone
New Cone
Posts: 8
Joined: 26 Jan 2007 15:08

Postby punkypogo » 29 Jan 2007 09:34

Ok, I was more thinking about the ability to multithread during the encoding process (encoding video in one thread, encoding 1st audio track in another, etc.).

Do you know if it is possible ? With which efficiency ?

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 29 Jan 2007 21:45

The issue with decoders is also true of encoders.

punkypogo
New Cone
New Cone
Posts: 8
Joined: 26 Jan 2007 15:08

Postby punkypogo » 30 Jan 2007 11:05

Damn it ! :D

Ok, so if I want to earn some time, I have to run as many instances of VLC as there are streams, to encode each stream independtly; and finally mux them with another instance of VLC ...

Thank you all.

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 30 Jan 2007 11:09

Dream on!

pjwhite
Blank Cone
Blank Cone
Posts: 15
Joined: 09 Jan 2007 18:51
Location: canader

Postby pjwhite » 01 Feb 2007 18:11

I am pretty sure x264 itself support multi-threads (found out on the doom9 forums), however I am using x264 inside vlc for streaming purposes, so is there any way to set the prefs for x264 through vlc? I can't find any conf files for x264 (i installed with yum, so i may need to install from source with --enable-pthreads ?). Also: is there any advanced vlc conf files that i can find? I see the one in ~/.vlc , however most of it is actually commented out (except for the titles)

any help to my poorly phrased questions would be great...

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 01 Feb 2007 18:31

Preferences, Input /Codecs, Video codecs, x264

pjwhite
Blank Cone
Blank Cone
Posts: 15
Joined: 09 Jan 2007 18:51
Location: canader

Postby pjwhite » 01 Feb 2007 18:35

sorry, i forgot to mention that i was using linux (fc6) and am idealy looking for the conf/text files to edit so I can be sure of what is going on...

thanks, and sorry!

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 01 Feb 2007 19:00

VLC's configuration file should not be edited. Use the command line to alter options or batch file commands.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests