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.
Everything is always created twice, first in the mind and then in reality.
Thursday, November 25, 2010
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.
- 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
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.
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.
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
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
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.
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.
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.
Subscribe to:
Posts (Atom)