Thursday, November 25, 2010

How to add ticker text effect using MLT framework?

Here is the code for adding ticker text effect to your video using MLT.The following code is working fine.


melt color:black out=2000 -blank 0 -track avformat:video1.flv out=2000 -move in=0 out=3510 -track -blank 2520 avformat:video2.flv out=2000 -move in=0 out=1920 -track "+sample ticker text.txt" out=800 -transition composite start="0%,0%:100%x100%" halign=center valign=center out=2000 a_track=0 b_track=1 progressive=1 -transition composite start="10%,10%:100%x100%" halign=left valign=top out=2000 progressive=1 a_track=0 b_track=2 -transition composite a_track=0 b_track=3 out=800 titles=1 start=10%,80%:299%x20% end=-299%,80%:299%x20% -consumer avformat:ticker_text_test.mp4 fullscreen=1 rescale=bilinear -profile 3d


With Regards,
Er.Animesh Nanda
WEB DEVELOPER
Manusis Technology,Bengaluru,Karnataka,INDIA.

Friday, November 19, 2010

Use of MLT filters

filters:
- BurningTV
- burningtv
- avcolour_space
- avcolor_space
- avdeinterlace
- avresample
- deinterlace
- frei0r.3dflippo
- frei0r.B
- frei0r.G
- frei0r.R
- frei0r.alpha0ps
- frei0r.alphagrad
- frei0r.alphaspot
- frei0r.balanc0r
- frei0r.baltan
- frei0r.bluescreen0r
- frei0r.brightness
- frei0r.bw0r
- frei0r.c0rners
- frei0r.cartoon
- frei0r.cluster
- frei0r.coloradj_RGB
- frei0r.colordistance
- frei0r.contrast0r
- frei0r.curves
- frei0r.d90stairsteppingfix
- frei0r.defish0r
- frei0r.delay0r
- frei0r.delaygrab
- frei0r.distort0r
- frei0r.edgeglow
- frei0r.equaliz0r
- frei0r.flippo
- frei0r.gamma
- frei0r.glow
- frei0r.hueshift0r
- frei0r.invert0r
- frei0r.lenscorrection
- frei0r.letterb0xed
- frei0r.levels
- frei0r.luminance
- frei0r.mask0mate
- frei0r.nervous
- frei0r.nosync0r
- frei0r.perspective
- frei0r.pixeliz0r
- frei0r.pr0be
- frei0r.pr0file
- frei0r.primaries
- frei0r.saturat0r
- frei0r.scanline0r
- frei0r.select0r
- frei0r.sobel
- frei0r.sopsat
- frei0r.squareblur
- frei0r.tehroxx0r
- frei0r.three_point_balance
- frei0r.threelay0r
- frei0r.threshold0r
- frei0r.tint0r
- frei0r.transparency
- frei0r.twolay0r
- frei0r.vertigo
- oldfilm
- dust
- lines
- grain
- tcolor
- vignette
- chroma
- chroma_hold
- threshold
- shape
- boxblur
- freeze
- wave
- affine
- charcoal
- invert
- sepia
- telecide
- gtkrescale
- resample
- motion_est
- vismv
- crop_detect
- autotrack_rectangle
- volume
- audioconvert
- audiowave
- brightness
- channelcopy
- channelswap
- crop
- data_feed
- data_show
- gamma
- greyscale
- grayscale
- imageconvert
- luma
- mirror
- mono
- obscure
- panner
- region
- rescale
- resize
- transition
- watermark

So here is the coding for the developers who are facing problems....

$melt avformat:video1.flv -filter -consumer avformat:filtervideo.mp4

To find the properties associated with these above filter you can use the following command..........

$melt -query -filter

note-:Do not include '<' and '>' in the command lines.


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

Thursday, November 18, 2010

How to add text as overlay track using MLT framework ?

Hey........just try this and you will find something interesting..............

melt -blank 0 avformat:basevideo.flv out=3930 -move in=0 out=3930 -track -blank 630 avformat:overlayvideo.flv out=3060 -move in=0 out=2430 -filter chroma key=#00FF00 variance=0.38 -transition composite geometry="0%,0%:100%x100%" halign=center valign=center out=3930 a_track=0 b_track=1 -transition composite geometry="0%,0%:100%x100%" halign=left valign=top out=3060 a_track=0 b_track=2 -track "+Sample Text.txt" in=0 out=1440 -transition composite titles=1 start="299%,70%:999%x20%" in=45 out=1440 a_track=0 b_track=2 -consumer avformat:testvideo.flv frequency=22050 fullscreen=1 fps=30 -profile dvd_ntsc



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

Wednesday, November 17, 2010

How to convert time into pixel(frame) using flex?

The following code is working fine........you can try this one ,but remember the time should be in seconds.


package common
{
import mx.controls.ComboBox;
public class Utils
{
public static var timeInPixel:Number = 60 * 0.033;//60 * 0.033;//
public static var pixelInTime = 60/30;
public static var inversePixelInTime = 30/60;//3/60;
public function Utils()
{
}

public static function toTimeString(seconds:uint)
{
var secs:int = seconds%60;
var mins:int = seconds/60;
var hrs:int = 0;
if(mins > 60)
{
hrs = mins/60;
mins = mins%60;

//return hrs+':'+mins+':'+secs;
}

return ((hrs>0)?(hrs+':'):(''))+((mins<10)?('0'+mins):(mins))+':'+((secs<10)?('0'+secs):(secs));
}

public static function getPixelForTime(time, unit= 'second'){
var pixel = time * pixelInTime; //( 60 total time 3sec time per pixel)
return pixel;
}

public static function getTimeForPixel(pixel, unit = 'second'){
var time = pixel * timeInPixel;
if(unit == 'minute'){
time = time / 60;
}
return time;
}

public static function positionText(seconds:Number):String
{
var min:Number = Math.floor(seconds / 60);
var sec:Number = Math.floor(seconds % 60);
if(sec < 0) sec = 0;
if(min <0) min = 0;
if (isNaN(min) || isNaN(sec))
{
return "";
}
return min + ":" + (sec < 10 ? "0" + sec:sec);
}


public static function presetComboBox(combo:ComboBox,presetValue=""){
for(var i= 0 ; i < combo.dataProvider.length; i++){
if(combo.dataProvider[i].data == presetValue){
combo.selectedIndex = i;
}
}
}

}
}


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

Windows XP Command Line Syntax

Parameters Command Line Parameters
Variables Create/read environment variables
Redirection Spooling output to a file, piping input
AND/OR Logic Conditional Execution (If-Then-Else)
Loops Loops and Subroutines
functions How to package blocks of code
Evaluating expressions
Using brackets to Group and expand expressions
Delayed Expansion Manage and text
SET /A Environment variable arithmetic
VarSubstring Extract part of a variable (substring)
VarSearch Search & replace part of a variable
Escape chars, delimiters and quotes
Wildcards Match multiple files

Batch Files
DateMath Add or subtract days from any date
GetDate.cmd Get todays date (any region, any OS)
GetTime.cmd Get the time now
GetGMT.cmd Time adjusted to Greenwich Mean Time
datetime.vbs Get Date, Time and daylight savings
deQuote Remove quotes from a string
DelOlder.cmd Delete files more than n days old
StampMe.cmd Rename a file with the date/time
Which.cmd Display full path to any command
DragDrop.cmd Drag and drop onto a batch script

Reference/How to
RUN commands Start-Run Snap-Ins and Control panel applets
Slow Browsing Speed up network browsing
Printing Printer connections and print drivers
Qchange Script to change Printer connections
Desktop Heap Memory configuration
Permissions Local vs Global workgroups
Long Filenames NTFS filename issues
WorkGroups Built-In Users and Security Groups
autoexec Run commands at startup
Recovery The Recovery Console
WinXP Registry User interface settings

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"