I just got another idea for devede.

28 views
Skip to first unread message

Branden Capell

unread,
Jan 1, 2012, 9:43:37 PM1/1/12
to DeVeDe forum
To encode more than one video at the same time the only thing that
would be need would to make an option in preferences that could start
a few back ground processes for devede; After doing so you would save
it and devede would generate a bash file that be used to start up all
of the back ground processes, and on the restart of devede, devede can
send some information to the processes and start converting multiple
videos at the same time with the information given to the back ground
processes. These processes would not all finish at the same time, but
it would still be able to convert multiple videos at the same time.

Sergio Costas

unread,
Jan 2, 2012, 5:30:53 AM1/2/12
to devede...@googlegroups.com
Hi Branden:

Unfortunately it's not as easy, because I need to get the "work in
progress" value to update the progress bar.

I have some ideas about how to do it, but at this moment I'm pretty
busy, so until a month or so I think I won't be able to work on it.

Thanks, anyway.

And happy new year!!!!!!

El 02/01/12 03:43, Branden Capell escribi�:


--
Nos leemos
RASTER (Linux user #228804)
ras...@rastersoft.com http://www.rastersoft.com

Branden Capell

unread,
Jan 5, 2012, 2:18:55 PM1/5/12
to DeVeDe forum
How about make it write to a file every percent it completes and get
devede to check for the file and look at the last line. It would be a
file in the project directory, and if the last line thing takes to
long you could always have the back ground processes make a file and
within it, it has the percentage and have the main part of the program
delete the contents after every time it looks in it. In C to nuke the
file all that would be needed would to open the file in pure write
mode with fopen, and by writing nothing other than a space or
something.

Branden Capell

unread,
Jan 6, 2012, 12:08:24 AM1/6/12
to DeVeDe forum
In order to do the file thing I found it would be rough on a hard
drive to have the back ground processes updating all of the time and
the foreground part of the program constantly nuking the file. I am
thinking a once every 5 seconds would be a safe number as not to ware
down the cells on the hard drive.

Sergio Costas

unread,
Jan 6, 2012, 7:31:08 AM1/6/12
to devede...@googlegroups.com
Hi Branden:

Thanks for the suggestions, but there's no need to do such things: the
internal structure of Devede creates an object for each mencoder/ffmpeg
at the start of the conversion process, and each time one ends, the main
loop calls the next's "launch" method. So to implement a multithread
architecture, the change to do is just to call the launch method for
several objects simultaneously, and add several progress bars in the
progress dialog. Internally, the architecture of Devede is designed to
allow this easily, but obviously, it needs some changes, and I need time
to do it. Unfortunately, currently I'm really busy with my PhD, so I
have very little spare time for Devede :(

El 06/01/12 06:08, Branden Capell escribi�:

Branden Capell

unread,
Jan 8, 2012, 5:21:18 PM1/8/12
to DeVeDe forum
I got ffmpeg using the mpeg2video codec to use both of the threads in
my cpu using the --threads option.

Sergio Costas

unread,
Jan 8, 2012, 5:23:10 PM1/8/12
to devede...@googlegroups.com
In fact, currently Devede uses the --threads option if you mark it in
Edit->Preferences. Unfortunately, it's not as lineal as one would desire.

El 08/01/12 23:21, Branden Capell escribi�:


> I got ffmpeg using the mpeg2video codec to use both of the threads in
> my cpu using the --threads option.
>

Branden Capell

unread,
Jan 16, 2012, 12:42:40 AM1/16/12
to DeVeDe forum
I know your busy writing your thesis, but could you add an option that
allows the user to specify the amount of threads devede uses? (For
ffmpeg)
Reply all
Reply to author
Forward
0 new messages