Silence Picture YUV422 images converter to JPEG, PNG and BMP

3,278 views
Skip to first unread message

mindogas

unread,
Mar 25, 2012, 4:35:48 AM3/25/12
to Magic Lantern firmware development
Hello everyone,
One function in ML for me is very good for me, it's Silence Picture.
I'm using it for testing motorized timelapse slider and it's motor/
camera controller. I'm doing lots off shoots while testing and without
this function my camera would be in the middle of it's shutter
resource. However nightmare starts then comes time to convert images
to JPEG. Python program 422-jpg-v2.exe is the way too slow. For
example in Intel Xeon E5606 2,13GHz, 4 Core and 6GB RAM workstation
this program converted only 1.6 frames per second. This software first
of all was using only one core from four, so i suggested to make
software which will utilize all of them.

So after same work with I finished with it. Programming was done with
C# language in Visual Studio 2010 environment. In mentioned
workstation this software doing 29 frames per second performance. To
compare speed i made few videos in my home PC.

422-jpg-v2.exe processing 100 pictures in 1024x680:
http://www.youtube.com/watch?v=71ePP8SA-_0
My software processing same files: http://www.youtube.com/watch?v=AuASER6CU1U
And one more time my software doing 999 pictures: http://www.youtube.com/watch?v=X_k8Rhq4xAA

So at the end this software looks promising. Now to convert lots of
files we do not need to wait long time. Event with one core CPU this
program doing it's job faster because software constructing new image
using Fast Bitmap methodology.

Software features:
*Multi-core utilization;
*Managing photos list;
*JPEG (with quality choise), PNG and BMP output formats;
*Supports Simple mode resolution: 1056 x 704, 1720 × 974, 580 × 580,
1280 × 580, 640 × 480, 1024 × 680, 512 × 340, 720 × 340, 1680 × 945,
1280 × 720, 928 × 616, 1576 × 1024, 1120 × 1872 × 746 and 1079;
*Supported HiRes modes: 2 x1, 2 × 2, 3 × 2, 3 × 3, 4 × 3, 4 × 4, 4 x
5 and 5 × 5;

Windows binaries could be downloaded here: http://mindaugas.hostzi.com/files/422ToImageV1.zip
Visual Studio 2010 source code: http://mindaugas.hostzi.com/files/422ToImageV1Source.zip

In my blog you may find more information about program and it's
performance. Unfortunetly blog written n Lithuanian language but you
can try Google Translate:
http://translate.google.lt/translate?sl=lt&tl=en&js=n&prev=_t&hl=lt&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fmindaugas.hostzi.com%2F%3Fp%3D1070&act=url

I think someone will find this software usable.

nanomad

unread,
Mar 25, 2012, 5:31:42 AM3/25/12
to ml-d...@googlegroups.com
Nice job!
Do you mind uploading a couple of .422 images somewhere? I'd like to
port it to Linux but I don't have a "working" ML camera at the moment

mindogas

unread,
Mar 25, 2012, 6:33:10 AM3/25/12
to Magic Lantern firmware development
I uploaded my 100 testing files here: http://depositfiles.com/files/w5ssge9ep
I do not have proper HiRes pictures, because 50D are not taking them
well. Maybe someone else will help you with them.
Message has been deleted
Message has been deleted

Tim Robinson

unread,
Mar 25, 2012, 8:41:48 AM3/25/12
to Magic Lantern firmware development
Thankyou very much Mindaugas, I am a huge fan of Silent picture mode
and have become addicted to creating time lapse sequences ;p

Tim Robinson

unread,
Mar 25, 2012, 8:43:18 AM3/25/12
to Magic Lantern firmware development
Thank you very much, very nice job *thumbs up*

On Mar 25, 12:32 pm, Mindaugas Markauskas
<markauskas.mindau...@gmail.com> wrote:
> Uploaded my 100 testing images:http://depositfiles.com/files/w5ssge9ep
> While 50D aren't making proper HiRes Silence Photos i can't help you with
> sample of them.
> > --
> >http://magiclantern.wikia.com/
>
> > To post to this group, send email to ml-d...@googlegroups.com
> > To unsubscribe from this group, send email to
> > ml-devel+u...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/ml-devel?hl=en

mindogas

unread,
Mar 26, 2012, 5:02:44 AM3/26/12
to Magic Lantern firmware development
Moved source to https://bitbucket.org/mindogas/422toimage/
Please make free to post issues here.
> can try Google Translate:http://translate.google.lt/translate?sl=lt&tl=en&js=n&prev=_t&hl=lt&i...

Alvaro F R Santos

unread,
Mar 26, 2012, 6:22:20 AM3/26/12
to ml-d...@googlegroups.com
Hi,

Nice job, thanks!

By the way: should be possible the code (with somes changes) to be
used in the new "LUA Scripting support" or "plugin"?

Thanks,
Álvaro

No dia 26 de Março de 2012 10:02, mindogas
<markauskas...@gmail.com> escreveu:

mindogas

unread,
Mar 26, 2012, 6:34:55 AM3/26/12
to Magic Lantern firmware development
In my plans were is only standalone program developing. I'm not
planing to do any Lua or other (like DLL) version of it.

On 26 Kov, 13:22, Alvaro F R Santos <alvarosanto...@gmail.com> wrote:
> Hi,
>
> Nice job, thanks!
>
> By the way: should be possible the code (with somes changes) to be
> used in the new "LUA Scripting support" or "plugin"?
>
> Thanks,
> Álvaro
>
> No dia 26 de Março de 2012 10:02, mindogas
> <markauskas.mindau...@gmail.com> escreveu:
>
>
>
>
>
>
>
> > Moved source tohttps://bitbucket.org/mindogas/422toimage/

3pointedit

unread,
Mar 26, 2012, 9:48:40 PM3/26/12
to Magic Lantern firmware development
Wow thank you so much Mindogas, it is very fast. How do I change the
output frame size? Any chance of selecting an alternate path for
output?

mindogas

unread,
Mar 27, 2012, 12:04:48 AM3/27/12
to Magic Lantern firmware development
Output frame size i'm leaving the same size because re-sizing them
requires lots of job (accept ratio, quality and other important
things). I'm saying i'ts not possible to add this feature, maybe in
future i could do it, but for now re-size procedure you can make easy
with photo editing or viewing program (like Irfanview). Also if you
are making timelapse using VirtualDub the best way to re-size is to
use it's re-size filter (it's very powerful filter, includes cropping
feature too).
Alternate path feature I will add today in release 1.1 (this release
will include Drad and Drop feature too). For download track it in here
https://bitbucket.org/mindogas/422toimage/downloads

mindogas

unread,
Mar 27, 2012, 4:05:51 AM3/27/12
to Magic Lantern firmware development
I considered your proposal and made re-sizing possible. In version 1.2
you will find this feature. Re-size done by using Bicubic
interpolation and if you need better quality you should not use this
function. Latest version in downloads folder here
http://www.google.com/url?sa=D&q=https://bitbucket.org/mindogas/422toimage/downloads&usg=AFQjCNEgShNHqaEQcAsGr3DUHyHAP5VumA.
Re-sizing images will decrease performance 1/3 times so if you have
quicker programs for re-size images you should use it.

On 27 Kov, 04:48, 3pointedit <mcsween.da...@abc.net.au> wrote:

mindogas

unread,
Mar 27, 2012, 7:15:04 AM3/27/12
to Magic Lantern firmware development
One more time updated version. Now it's v1.3.
News:
*Added adidional information about progress: frames count, speed in
FPS and programs running times (incuding time left to finish quene);
*Optimized threads starting procedure; This speeds up performance a
little bit;

Download: https://bitbucket.org/mindogas/422toimage/downloads/

On 25 Kov, 11:35, mindogas <markauskas.mindau...@gmail.com> wrote:
> can try Google Translate:http://translate.google.lt/translate?sl=lt&tl=en&js=n&prev=_t&hl=lt&i...

3pointedit

unread,
Mar 27, 2012, 10:20:38 AM3/27/12
to Magic Lantern firmware development
They are great updates, thank you. It is good to have many steps
folded into one action (save opening more programs for image editing).
For future batch processing could we save a batch script to reuse our
favourite presets?
Message has been deleted

mindogas

unread,
Mar 27, 2012, 11:07:16 AM3/27/12
to Magic Lantern firmware development
Do you mean save current setup for later use? For now on i think we do
not
need this option because we do not have lots of parameters. Maybe
later if
program will become bigger and there will be need to load setting
this
proposal will be remembered of course.
Thank you for your support.

mindogas

unread,
Mar 28, 2012, 5:43:37 AM3/28/12
to Magic Lantern firmware development
I'm about to add big feature to program - HDR generating. I'm not
going to program HDR algorithm, but use Enfuse tool for it. My
question would be what parameters should I add to HDR setup? It would
be great to get advise from people who are working with enfuse. Who
are using another HDR software possible option could fine here in
section FusionOptions and ExpertOptions: http://wiki.panotools.org/Enfuse
Thanks for everyone.

On 25 Kov, 11:35, mindogas <markauskas.mindau...@gmail.com> wrote:
> can try Google Translate:http://translate.google.lt/translate?sl=lt&tl=en&js=n&prev=_t&hl=lt&i...

mindogas

unread,
Mar 30, 2012, 7:07:11 AM3/30/12
to Magic Lantern firmware development
Done HDR function. Version v1.4 features:
*CPU priority select option;
*Low quality preview after double click on Image List item;
*HDR generation using Enfuse software;
*Output, Resize and HDR settings saving in XML file (and automaticaly
loading during next program start);

For HDR function do not forgot to download Enfuse from here:
http://enblend.sourceforge.net/
Remanding were you could download 422ToImage v1.4:
https://bitbucket.org/mindogas/422toimage/downloads

Tichro

unread,
Mar 30, 2012, 10:24:07 AM3/30/12
to Magic Lantern firmware development
Nice update, thank you very much ;-)
Reply all
Reply to author
Forward
0 new messages