Multicore support

Post any suggestions for new features in Openshot here.

Moderators: Andy, Cenwen, beats

Multicore support

Postby G19star » Mon Sep 26, 2011 12:25 pm

Hi OpenShot Users,

When I am right OpenShot only is able to use one core on Linux, that makes the progress pretty slow, i tested some creations of videos with my system monitor turned on, and seems like that only one core gets used, sometimes the program even swaps from core one to core 3 so example core one is running 100% then suddently all those 100% are moved to core 3. :?:

Im pretty new on exploring linux however would be nice of there was a way to get MultiCore support. :D

Best Regards,
G19star
G19star
New member
 
Posts: 1
Joined: Sat Sep 24, 2011 3:25 am

Re: Multicore support

Postby Cenwen » Tue Sep 27, 2011 8:06 pm

Hi G19star and Welcome in the Linux and Free world.

Currently, Openshot doesn't have the support multicore but not only it is planned but (the good news) is that he will come with our Big version 2.0 :D (and a total support :o ).
Le jour où j'ai découvert le libre, j'ai su que je ne reviendrai jamais en arrière
Mon blog sur le multimédia, la photo et Openshot : http://linuxevolution.wordpress.com/
Google+ : https://plus.google.com/u/0/111472725110173916234/posts
User avatar
Cenwen
Moderator
 
Posts: 1609
Joined: Wed Nov 18, 2009 4:07 pm
Location: Clermont-Ferrand-Auvergne-France

Re: Multicore support

Postby bratpit » Tue Oct 18, 2011 3:23 pm

Hi

There is temporary solution for 1.4.

Codec x264 and probably libvpx have option "threads" already.
To overwrite default settings MLT for x264 you can use ffmpeg's -vpre swich and x264 options storage will be .ffpreset file.

To do this change 2 files in openshot sources: video.py and render_cli.py,
after line:
if self.render_options["vcodec"] == "libx264":

erase all existing options for x264
and add 1 line:
self.c.set("vpre", "veryfast")

and recompile openshot.

all options for x264 are now will be stored in ffmpeg .ffpreset and mlt allow to overwrite its default settings. file looks like this and is equivalent "veryfast" x264 preset :

coder=1
flags=+loop
cmp=+chroma
partitions=+parti8x8+parti4x4-partp8x8-partb8x8
me_method=dia
subq=1
me_range=16
g=250
keyint_min=25
sc_threshold=40
i_qfactor=0.71
b_strategy=1
qcomp=0.6
qmin=10
qmax=51
qdiff=4
bf=3
refs=1
directpred=1
trellis=0
flags2=+bpyramid-mixed_refs+wpred+dct8x8+fastpskip-mbtree
wpredp=0
threads=auto
crf=18


Now we have editable file , and we can change presets from ultrafast to placebo /68 times more time consuming than ultrafast/, and can change it to various sort of devices . Someone complains that x264 is time consuming. With presets is flexible enough.

I also add option crf which do me Constant Quality of the rendering picture and somehow switch off bitrate setting from openshot, and do me benefits of using veryfast or ultrafast settings in x264 do not wasting any bit set of quality as regards to bitrate.

In this way 1 minute of 720p film rendered 3 times faster then before on my 2 core processor or 5 times in ultrafast preset with the same quality.

By the way
New ffmpeg allow using x264's "preset" swich directly but mlt 0.7.4 somehow does not allow change its default settings in this way.

Best regards
bratpit
New member
 
Posts: 1
Joined: Sun Oct 16, 2011 9:22 am

Re: Multicore support

Postby Cenwen » Wed Oct 19, 2011 5:16 pm

Thanks for the tip bratpit. :D
Le jour où j'ai découvert le libre, j'ai su que je ne reviendrai jamais en arrière
Mon blog sur le multimédia, la photo et Openshot : http://linuxevolution.wordpress.com/
Google+ : https://plus.google.com/u/0/111472725110173916234/posts
User avatar
Cenwen
Moderator
 
Posts: 1609
Joined: Wed Nov 18, 2009 4:07 pm
Location: Clermont-Ferrand-Auvergne-France


Return to Feature requests

Who is online

Users browsing this forum: No registered users