Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Video Screen Shots

C# Video Screen Shots

Scheduled Pinned Locked Moved C#
helpcsharpgraphicsgame-devhardware
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wraith256
    wrote on last edited by
    #1

    Hi guys I'm writing a program in which I need to be able to take screenshots from a video file running inside my application. I have gotten the program so far that it can actually take the screenshots I need, but only if I turn off hardware acceleration. Otherwise it only captures a black box where the video is supposed to be playing. Is there any way I could get around this hardware acceleration problem by rather using something like DirectX to perform the captures? At the moment I am using functions defined in GDI32.dll and User32.dll to perform the screen captures. Any help would be appreciated.

    L V 2 Replies Last reply
    0
    • W Wraith256

      Hi guys I'm writing a program in which I need to be able to take screenshots from a video file running inside my application. I have gotten the program so far that it can actually take the screenshots I need, but only if I turn off hardware acceleration. Otherwise it only captures a black box where the video is supposed to be playing. Is there any way I could get around this hardware acceleration problem by rather using something like DirectX to perform the captures? At the moment I am using functions defined in GDI32.dll and User32.dll to perform the screen captures. Any help would be appreciated.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      That is a common symptom when using Video Overlay, use the VMR7/9 modes rather.

      xacc.ide-0.1.2.15
      Now with a grid!

      1 Reply Last reply
      0
      • W Wraith256

        Hi guys I'm writing a program in which I need to be able to take screenshots from a video file running inside my application. I have gotten the program so far that it can actually take the screenshots I need, but only if I turn off hardware acceleration. Otherwise it only captures a black box where the video is supposed to be playing. Is there any way I could get around this hardware acceleration problem by rather using something like DirectX to perform the captures? At the moment I am using functions defined in GDI32.dll and User32.dll to perform the screen captures. Any help would be appreciated.

        V Offline
        V Offline
        VanEtienne
        wrote on last edited by
        #3

        Sorry I can't help, but I also made a screen capturing util. Also only displayed black where the video was supposed to be, didn't know it was because of hardware acceleration! Thanx, now at least I know why it only displayed black. :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups