mercredi 23 octobre 2013

C++ tutorials

cout <<setiosflags(ios::fixed)<<setprecision(2) <<"t=" <<setw(5)<<mytime/1000<<" dt=" <<setw(3)<<dif<<" fps=" <<setw(6)<<fps<<" incr=" <<setw(3)<<incr<<"        \r"<<flush;
 


output formatting in c++ http://arachnoid.com/cpptutor/student3.html

Other c++ online tutorials

vendredi 14 juin 2013

convert a mpeg4 .mp4 video en h264 quicktime .mov

ffmpeg -i film.mp4 -f mov -acodec libfaac -ab 128k  -vcodec libx264  -preset medium  -y film.mov

samedi 11 mai 2013

ffmpeg commands to create a "drawing" style video

Enhancing local contrast and creating lines
ffmpeg -ss 60 -i film.avi -vf hue=s=0,\
lutyuv="y=2*val",smartblur=1:1:0,edgedetect=low=0.1:high=0.2\
-vcodec huffyuv -pix_fmt bgra -y dessin.avi

To extract an alpha channel
ffmpeg -i  film.avi -vf alphaextract -vcodec huffyuv -y alpha.avi
To merge a alpha channel to an existing movie
ffmpeg -i dessin.avi -vf "movie=alpha.avi[alpha];[in][alpha]alphamerge[out]" -vcodec huffyuv -y dessin2alpha.avi

mercredi 13 février 2013

Performance on Mint LMDE

My system (Mint LMDE 64 bits AMD PhenomII X4) was running at the base CPU Freq 800 MHz instead of 3.4GHz

I followed the advice mentionned here and with synaptic removed all cpufreqd from my system and according to system profiler the processors frequency now seems ok


lundi 21 janvier 2013

nedit uggly fonts

nedit was missing the xorg fonts
installing X.Org on my LMDE solved the problem

mardi 15 janvier 2013

Linux Mint LMDE

Ubuntu 10.10 ppa is not accessible since beginning of 2013, I switched to Linux Mint Debian (LMDE) kernel version 3.2.0-2-amd64

Installed AMD driver legacy 12.6  compatible with the current kernel

Everything works fine