Thursday, December 16, 2010

How to enable audio of a base track when overlay tracks are there?

Hi friends,

Today I got the solution of your question asked about audio control in MLT . Previously what happened when you tried with multiple video tracks that means you had one base video track and one overlay video track then you could able to hear the audio of the overlay video track. So for this issue I have a solution i.e instead of declaring a video as a track like '-track' you can declare the overlay video track as only video track, i.e. ' -video-track '.


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

Thursday, December 9, 2010

VP8 Could Become a Standard in HTML5

Mozilla will lobby for the VP8 video codec to become the recommended standard video technology on the web, the company’s CEO says. Mozilla will propose the idea to the World Wide Web Consortium (W3C) in order to have the technology, which has just been open sourced, added to the specification for HTML5.

“That’s our hope,” Mozilla CEO John Lilly tells CNet’s Stephen Shankland. “We’d love for VP8 to be specified in the HTML5 standard. Once it’s in the spec, it can really get better traction from other players.”

The company would need to rally support from all the major browser vendors and the W3C to get such a proposal into the spec. Mozilla isn’t saying just yet how it plans to go about doing so, but we can expect a statement in the coming days, according to Shankland’s report.

For its part, the W3C is anxious to arrive at a standard recommendation for a single native web video solution. The consortium has a policy that any technology it recommends adheres to its own royalty-free patent policy. The WebM project, the group behind VP8, is confident the codec does not infringe on any patents.


One of the promises of HTML5 is that, once finalized, it will allow developers to embed videos in web pages so people can view them without the use of plug-ins like Silverlight and Flash. But that particular part of the HTML5 draft specification remains in limbo, as browser makers can’t agree on a single video codec to support. As a result, the W3C has refrained from recommending any single video technology as a standard for all browsers.

The landscape changed significantly last week, when Google announced the VP8 codec it recently acquired would be released under a permissive open source license, meaning other browser makers could incorporate it into their browsers and play embedded VP8 videos natively at no cost. Mozilla and Opera joined Google in launching the WebM Project to speed VP8’s adoption. Soon after that, Microsoft pledged support for VP8 playback in IE9 if the user has the video codec installed on Windows.

Apple, which supports H.264 in Safari, has remained quiet on VP8 so far. But if Mozilla succeeds in getting VP8 approved as the recommended video codec in the HTML5 specification, Safari would be more likely to add support for it. Otherwise, Safari would become the only “non-HTML5-compliant” browser from a major vendor. That’s some bad marketing.



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

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"

Sunday, August 1, 2010

TEL NET COMMANDS

Starting a Single Remote Session
The simplest way to start NCSA Telnet is from the DOS prompt:
c:\ telnet hostname
This command will, if the remote system is available, make an instantaneous connection. The user then logs in with a
username and password if required.
Pressing Alt-H will bring up the help screen, overlaying the current session:
.............................
Alt-A add a session Alt-Y Interrupt Process
Alt-N next session Alt-B Previous Session
Alt-D Dump Screen to Capture file Alt-O Abort Output
Alt-Z message screen Alt-Q Are you there?
Alt-E escape to DOS shell Alt-U Erase line
Alt-G graphics menu Alt-K Erase Kharacter
Alt-C toggle capture on/off Alt-V Paste Capture to Session
Alt-R reset VT100 screen HOME exit graphics mode
Alt-H this help screen Ctrl-HOME clear/enter graphics mode
ScrLock pause/restart screen (DO NOT use Ctrl-NumLock)
ScrLock enter/exit scroll-back mode
Alt-F start file transfer as if typed:ftp [internet address]
Alt-I send my internet address to host as if typed
Alt-S skip scrolling, jump ahead
Alt-P change a parameter, one of: color, capture file name, backspace,
session name, screen mode
Alt-X close connection
CTRL-Shift-F3 abort program completely. STRONGLY discouraged
Press ESC for information page, space bar to return to session:

Sunday, April 4, 2010

HISTORY OF MY CITY ,KATAK


Early history of Cuttack is associated with the Keshari dynasty. As stated by the distinguished historian A. Stirling, present-day Cuttack was established as a military cantonment by king Nrupa Keshari of Keshari dynasty in 989 A.D. Stirling based his opinion on Madala Panji, a chronicle of Jagannath temple of Puri. The reign of Markata Keshari was distinguished for the stone embank built to protect the new capital from flood in 1002 A.D.
Historical evidence suggests Cuttack becoming capital of a Kingdom founded by
Anangabhimadeva of Ganga dynasty in 1211 A.D. After the end of Ganga rule, Orissa passed to the hands of the Gajapati Kings (1435-1541 A.D.) of Solar dynasty under whom Cuttack continued to be the capital of Orissa. After the death of Mukunda deva, the last Hindu king of Orissa, Cuttack first came under Muslim rules and later under Mughals.
By 1750, Cuttack came under
Maratha rules and it grew fast as a business centre being the convenient point of contact between the Marathas of Nagpur and the English Merchants of Bengal. It was occupied by the British in 1803 and later became the capital of Orissa division in 1816. From 1948 onwards, when the capital was shifted to Bhubaneswar, the city remained the administrative headquarters of Orissa.
Remnants of an old fort called Barabati still exist in the heart of Cuttack with the moat around the fort. Nearby is a modern stadium called the
Barabati Stadium, host to many national and international cricket matches. Recently the stadium was updated with floodlights and D/N matches are taking place. Recent growth of the city has resulted in expansion across the river Kathjori and a newer township towards the head of the delta formed between the tributary Kathjori river and the Mahanadi. Cuttack is referred to as a city with Babaan Bazaar, Teppan Galee i.e. a city having 52 markets and 53 streets.

Thursday, March 18, 2010

Microsoft Silverlight

Microsoft Silverlight is a web application framework that provides functionalities similar to those in Adobe Flash, integrating multimedia, graphics, animations and interactivity into a single runtime environment. Initially released as a video streaming plugin, later versions brought additional interactivity features and support for .NET languages and development tools. The current version, 3.0, was released on July 9, 2009.[1]
It is compatible with multiple web browser products used on Microsoft Windows, Linux (using Novell Moonlight), and Mac OS X operating systems. Mobile devices, starting with Windows Mobile 7 and Symbian (Series 60) phones, will likely become supported in 2010.[2][3] A free software implementation named Moonlight, developed by Novell in cooperation with Microsoft, is available to bring compatible functionality to Linux, FreeBSD and other open source platforms.