Results 1 to 12 of 12

Thread: [RESOLVED] Building frame around video

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Resolved [RESOLVED] Building frame around video

    I'm trying to build a frame around a video (would like to use VLC, but WMP would work too). The frame will make the video look like an old-timey TV (rounds the corners). However I'm not sure how to make a layer that could allow video to pass through it in some spots, but block the video in others. I've tried using transparencies, however the video doesnt show through, it just shows the form underneath.

    Any ideas on how to do this?

  2. #2
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Building frame around video

    Use the VLC activeX control to embed the video and then design the form to be the "old tv".
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Re: Building frame around video

    Quote Originally Posted by .NetNinja
    Use the VLC activeX control to embed the video and then design the form to be the "old tv".

    Thats what I'm doing. However the "old tv" is just a part of it. the "Old tv" image needs to be overtop the video (so part if the image needs to block the video, while still allowing some of the movie to peek though.) I basically need to fillet (rounded) the corners of the video, even have images or text sit ontop of the video.

    Does this need to be done on a much lower level then VB can handle?

  4. #4
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Building frame around video

    No. Do you have a png or bmp or anything designed that has the image of the TV on it? If so just put the image in an imagebox and place it on TOP of the VLC ActiveX.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Re: Building frame around video

    Quote Originally Posted by .NetNinja
    No. Do you have a png or bmp or anything designed that has the image of the TV on it? If so just put the image in an imagebox and place it on TOP of the VLC ActiveX.

    I tried, I think video is pulled right from memory, or is managed at a lower level then my form, so the transparent part of my image sees though the video to the form.

  6. #6
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Building frame around video

    Post the image and I will work with a sample solution.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Re: Building frame around video

    Quote Originally Posted by .NetNinja
    Post the image and I will work with a sample solution.
    Here is an example of what I'm trying to do.


    Imagine the image in the picture above is a movie. See how the image has rounded edges? thats what I would like it to be. At first I tried to make the black frame an image file with the "screen" as a transparency, so the corners of the movie will be clipped off by my bitmap, but the transparency in the bitmap only showed the form, not the movie.

  8. #8
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Building frame around video

    I am currently not at a computer with VB.NET installed. Give me some time and I will post the solution.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  9. #9
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: Building frame around video

    It appears that VLC does not support this. I have been working with it most of the night and I can not get a control to be transparent over a VLC ActiveX object.
    "Don't try to be a great man. Just be a man and let history make its own judgement."

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Re: Building frame around video

    Quote Originally Posted by .NetNinja
    It appears that VLC does not support this. I have been working with it most of the night and I can not get a control to be transparent over a VLC ActiveX object.

    I assume that if VLC can not do this, neither will WMP or anything else really. Bummer

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Re: Building frame around video

    I figured it out!


    Along time ago there was a little easter egg found on the web, that if you opened MsPaint, and painted with a specific colour, a WMP movie could be seen behind the MsPaint window, almost like a transparent colour!

    So I found VLC uses a slightly different colour than WMP, but I was able to paint the "TV Screen" this magical colour and the "TV set" like normal, then save the image as a BMP. Then loaded up the image in a picture box that was sitting on top of VLC. The video only played on the special colour, while any other colour blocked the video.


    FIY: the colour for VLC is R:0/G:0/B:1 - Hue:160/Sat:240/Lum:0

  12. #12
    Hyperactive Member .NetNinja's Avatar
    Join Date
    Oct 2008
    Location
    USA
    Posts
    281

    Re: [RESOLVED] Building frame around video

    Crazy. Nice research though!
    "Don't try to be a great man. Just be a man and let history make its own judgement."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width