Tuesday, November 16, 2010

How to trim your video using MLT framework

Video Trimming is possible now.I used the following MLT command and got a trimmed video..


melt color:black out=1000 -track avformat:video1.flv out=1000 -move in=400 out=1400 -consumer avformat:trimvideo1.mp4 fullscreen=1 rescale=bilinear -profile 3d



With Regards,
Er.Animesh Nanda
Web Developer
Manusis Technology,Bengaluru,Karnataka.

How to make a slideshow using MLT framework?

So just now i discovered a new thing in MLT,i.e. SLIDE SHOW of pics.I implemented this code in one of my project and now it is working fine........so here is the code for you people facing problem to do this work

melt photos/.all.jpg ttl=75 -attach crop center=1 -attach affine transition.cycle=225
transition.geometry="0=0,0:100%x100%;74=-100,-100:120%x120%;75=-60,-60:110%x110%;149=0:0:110%x110%;150=0,-60:110%x110%;224=-60,0:110%x110%" -filter luma cycle=75 duration=25 -track demo/music1.ogg -transition mix -consumer avformat:test.mp4


With Regards,
Er.Animesh Nanda
Web Developer
Manusis Technology,Bengaluru,Karnataka.

Some basic codes for developing software using MLT Framework

SINGLE FILE

$ melt file
$ melt avformat:file.mpeg
$ melt avformat:file.mpeg in=50 out=100 something="somthing else"
$ melt file.flv -filter greyscale
$ melt file.flv -filter greyscale in=50 out=100

MULTIPLE FILES

$ melt file.mpg file1.flv file3.png
$ melt file.mpg in=50 out=100 file1.flv out=500 file3.png out=500
$ melt -group in=0 out=49 file1.flv file2.flv file3.flv.....
$ melt -group in=0 out=49 file1.flv file2.flv file3.flv..... -filter sepia/grayscale/threshold
$ melt -group in=0 out=49 clip* -filter greyscale
$ melt -group in=0 out=49 clip* -group -filter greyscale


With Regards,
Er.Animesh Nanda
Manusis Technology,Bengaluru,Karnataka.

Monday, November 15, 2010

How to have a bouncing effect using MLT framework?

MLT framework has many interesting features .So here is one of the effect in which the video will bounce like a ball..........do have a try and send me your valuable comments

melt clip2.dv -filter watermark:clip1.dv composite.start=10%,10%:20%x20% composite.key[33]=30%,70%:25%x25% composite.key[66]=70%,30%:15%x15% composite.end=70%,70%:20%x20%
composite.out=100 -consumer avformat:mixer.avi fps=30 fullscreen=1 -profile dvd_ntsc



With Regards,
Er. Animesh Nanda
Manusis Technology,Bengaluru,Karnataka.

How to add ticker text effect using MLT framework?

Ticker text is a big issue in MLT framework....many developers are facing problem while developing this effect...so on behalf of them the code is written below.......please do have a check

melt avformat:video1.flv out=500 -track colour:black out=400 -track "+Er.Animesh Nanda.txt" out=400 -transition composite a_track=0 b_track=1 out=500 progressive=1 start=0,70%:100%x64:100
-transition composite a_track=0 b_track=2 out=500 titles=1 start=100%,70%:999%x20%
end=-299%,70%:999%x20% -consumer avformat:TickerText_Test.mp4

You can vary the geometry as per your preference..



With Regards,
Er. Animesh Nanda
Manusis Technology,Bengaluru,Karnataka.

How to set a video clip and an audio track as overlay tracks using MLT framework?

Hi friends!!!!!! so here is the command for mixing a video and an audio clip as overlay tracks


melt color:black out=2000 -track avformat:mainVideo.flv out=2000 -track avformat:overlayVideo.mp4 out=2000 -track avformat:overlayAudio.mp3 out=2000 -transition composite geometry="0%,0%:100%x100%" out=2000 a_track=0 b_track=1 -transition composite geometry="0%,0%:100%x100%" out=2000 a_track=0 b_track=2 -consumer avformat:mixtest.avi fullscreen=1 rescale=bilinear -profile 3d



With regards,
Er.Animesh Nanda,
Manusis Technology,Bengaluru,Karnataka.

How to set chroma key effect using MLT framework ?

This is one of the big issue that every MLT developer faced while trying to set chroma effect to a video clip. I had a research on this issue and finally got its solution.....the solution is some how like this..........you first declare your video clip and then use the following expression...

"melt avformat:clip1.avi in=0 out=1000 -filter chroma key=#00FF00 variance=0.385"

in the above code "key" is nothing but the colors declared in a hexadecimal format .You can set multiple keys to the filter itself. "variance" is used to set opacity level .you can also vary it as per your preferences.

for any query on MLT framework you can contact me ..my email id is.."animeshnanda@gmail.com"