Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8335921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:49:16+00:00 2026-06-09T03:49:16+00:00

Is it possible to apply custom visual effects (such as grayscale) to the input

  • 0

Is it possible to apply custom visual effects (such as grayscale) to the input stream of a tag in HTML5/Javascript? My goal is to be able to display a filtered webcam’s output to the user, but the user should be able to pick from a variety of filters, not just grayscale.

All help is greatly appreciated and I always accept an answer!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:49:17+00:00Added an answer on June 9, 2026 at 3:49 am

    The way to do it is to grab each frame of a video element and process and then displaay it with canvas. Here’s an example I did recently for my book (warning: I know there are some issues with this example in IE9 currently), which used a greyscale filter from HTML5 Rocks. The main loop looks something like this, assume video is a reference to the element and context is a 2d canvas context, requestAnimFrame comes from Paul Irish:

    function draw() {
        if(video.paused || video.ended) return false;
        context.clearRect(0,0,720,480);
        context.drawImage(video,0,0,720,480);
        context.putImageData(grayscale(context.getImageData(0,0,720,480)),0,0);
        requestAnimFrame(draw);
    }
    

    The getUserMedia() function that Alex W mentions is only currently available in Opera and Chrome, you can read some blog posts about it and see some demos here. Once you’ve got a media stream you can pipe it into a video element and do exactly the same thing as above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to apply a custom background to each Listview item via the
Is it possible to apply custom (added to the app) font to UILabel text
I would like to ask - is it possible to apply my custom CSS
Is it possible to create a custom @Aspect and apply it to the Classes/Methods
Is it possible to apply a workflow in Sitecore only for a particular user?
Is it possible to apply a heading style (especially heading 3 as in excel
Is it possible to apply formatting to a specific row in Slickgrid? I am
Is it possible to apply a css(3) style to a label of a checked
Is it possible to apply (and remove) Windows group policy settings using .NET? I
Is it possible to apply reactive framework (Rx) in MVC application? or is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.