Wednesday, January 5, 2011

Three Web Wishes For 2011

Happy New Year! I hope you all had a great week to relax and
reboot for the year ahead.


MY THREE WEB WISHES FOR 2011 - - - - - - - - - - - - - - - - -

1. MICROSOFT WOULD RELEASE IE9 ON WINDOWS XP

Microsoft is obviously excited about HTML5. Their conferences,
articles, and products are all pushing the technology as the next
"big thing." So why produce an HTML5-aware browser which can't be
installed by 60% of their users? HTML5 could be held back years
if Microsoft do not release a compatible browser for their most
successful and widespread OS. The main arguments for not
releasing IE9 on XP are:

1. IE9 uses Windows Vista/7 rendering technology. I don't doubt
it, but there's no fundamental reason why it can't be ported to
XP. Isn't DirectX supposed to be a solution which solves OS and
hardware incompatibilities? Besides, all the other browser
vendors support XP without whining -- and several offer IE9-like
video acceleration. If others have the resources to support XP,
Microsoft certainly does.

1. XP is a ten year-old OS and support is being phased out.
That's true, but it's currently Microsoft's most popular OS. If
they were really serious about scrapping XP, they could stop
selling the OS and release Vista/7-only versions of Office!

If you think IE6 development is tough now, consider how bad
it'll be supporting IE8 in 2018.

2. WIDESPREAD AVAILABILITY OF SERVER-SIDE JAVASCRIPT

Desktop application developers have it easy. They pick a single
development language and perhaps add a sprinkling of SQL for
complex systems. However, a half-decent web developer must learn
HTML, CSS, JavaScript, a server-side language such as PHP, SQL
and possibly XML for good measure. Wouldn't it be great if we
could use JavaScript on the server and reduce the workload?
node.js [2] may be the best solution, but it's yet to achieve the
widespread appeal and is dwarfed by the availability of PHP and
ASP.NET. Perhaps that will change in 2011?

3. WEB DEVELOPERS WOULD BACKTRACK ON BANDWIDTH-HOGGING WEBSITES

There's an annoying web development trend which considers
bandwidth to be unimportant. Why do some sites insist on
multi-megabyte pages? Why is the total file size larger than the
browser used to render it? I have some sympathy for those
developing complex web applications, although there are few
excuses. Google and other vendors can provide full online office
suites in a few hundred Kb, so there's rarely a need for larger
applications. But it's an entirely different matter for
content-only websites. Bandwidth is not necessarily cheap or
unlimited -- especially for those using mobile devices. Trim that
bulk or have your web development license revoked!

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.