Trying to do some software video stabalization using transcode.
Using the following 2 commands:
transcode -J stabilize -i MOVIE -y null,null -o dummy
transcode -J transform -i MOVIE OUTPUTOPTIONS -o STABILE
Only issue is that the OUTPUTOPTIONS I use cause the video quality to drop a lot.
-y ...
@DavidFoerster Well After a week I got desperate and downloaded source code for tree command and was floored to learn it calls c-code called "quicksort". I reinvented a wooden wheel using a sharp rock sigh.
Most of wasted time was in LANG=C, en_CA-UTF-8, collating sequences and how tree command simply removes some punctuation characters rather than sorting them for "user-friendly" alphabet that hates "ASCIIabetical".
I guess the R&D knowledge will help me in the future shrugs
I did find some guy who wrote Quicksort for Bash in Stack Overflow but I couldn't wrap my mind around recursive nature, found bubbles easier to comprehend :)
The problem isn't LC_COLLATE on locale settings. I use tree command to generate initial database and only when I add a directory and subs do I need to resort. It's in the resorting I couldn't figure out tree logic because it was resorting it's elements.
I never used tree but it looks like it's main purpose is to display directory content and not to generate machine-readable output. find is usually better with that.
Before deleting all my "echo's" and various attempts at LANG=, declare -u ArrayName and search and replace \057 with \037 I copied it all to a file called "NIGHTMARE".
Even C may work out better but in my experience Python & Co. are better for prototyping algorithms. You can always write a C or C++ program if Python/Perl/whatever is too slow. A native module for either of those is another options.
Ruby and PHP are other quite suitable scripting languages.
Bash is ok for managing 20,000 directories on your laptop that are of interest but arrays break in YAD after 200,000 array elements (10 elements per directory name).
First time around I had 418,000 directories (4.18 million elements) because I didn't realize my /media pointed to my Windows 7 drive.
It broke horribly LOL
It was like 40 minutes to build the array... after I learned my mistake it was only a few seconds to build the directory names array for Linux only on SSD.
Yeah, (graphical) file managers really are a job for a "real" programming language. Bash lacks many of the niceties that you'd want and you don't profit a lot from Bash's simple command invocation.
I recommend any of the aforementioned scripting languages (minus PHP). They have bindings to various graphics toolkit libraries like GTK+, Qt and Tk for the UI.
it's the C code which will be the tricky part. You have to design your libraries carefully so certain binaries remain the same and other ones talk to the OS.
Thanks for the link. But They shouldn't have called it "WxWidgets" after microsoft sued them for using "WxWindows". They should have called it "WxWinner".
The kernel is written in C so that might be the platform of choice for me. I don't know what language MS Windows is written in but I'll probably never see that source code anyway so mute point.