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.