MultiMedia Soft forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Author Topic: Activedj video  (Read 156 times)

dario

  • Newbie
  • *
  • Posts: 21
    • View Profile
Activedj video
« on: March 03, 2017, 10:01:24 PM »

Hello,
with your Activedj studio activex I am building a very nice video-viewer, taking advantage of its incredible power.
I confess that I am not very skilled in "picture-handling" but I wish you might help me in this topic:
in my program I'd like to "copy" the frame contained in the picturebox used to display the movie (with all its features: size and display adjustments) in another picturebox (or in a file). The simple Picture2.picture = Picture1.picture does not work. Also trying to "capture" the whole screen, in the captured picture the area corresponding to the "video display" appears either black or transparent
As you see my need is not accomplished by the "frame grab" capabilities of the control.
Do you have any advice?
Many thanks in advance.

Dario
Logged

Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 173
    • View Profile
    • MultiMedia Soft
Re: Activedj video
« Reply #1 on: March 03, 2017, 11:07:39 PM »

Hello,

the setup package of Active DJ Studio installs a sample project named "VideoFrameGrabber" that gives a good starting point about management of grabbed video frames: they can be saved into files or into HBITMAP objects that can be used later for GDI rendering.
If you should have problems in understanding the code, please, feel free to ask.

Kind regards

Severino Delaurenti
MultiMedia Soft

Logged

dario

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Activedj video
« Reply #2 on: March 04, 2017, 10:07:04 AM »

Hello,

many thanks for your reply.
Indeed I already use the "frame grab" feature to extract frames from the original video.
My question deals with a different aspect. Let me explain.
I create a video viewer whose frame "window" is different from that of the original frames (smaller or bigger, doesn't matter).
I play the movie and, during playback, I make brightness-contrast-hue ...  adjustements (it works perfectly).
So far, everything is fine.
I pause streaming. At this point I would like to "export" the image I actually see on the screen (and not the corresponding original frame), but I don't know how to do it. The Picturebox containing the video-frame seems to be empty and also a brutal "screen capture" is not able to grab the screen area corresponding to the video-display: it's transparent ... where are the coloured pixels?

Again, many thanks for your advices.

Dario




Logged

Administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 173
    • View Profile
    • MultiMedia Soft
Re: Activedj video
« Reply #3 on: March 04, 2017, 10:24:58 AM »

Hello,

you are welcome.

You may try to see if the VideoPlayer.ScreenshotSaveToFile method is what you need: it works at a lower level and should keep count of eventual adjustments and of eventual OSD items. If using the VideoMixer object, the corresponding VideoMixer.ScreenshotSaveToFile method is provided.

Hope this helps.

Kind Regards

Severino Delaurenti
MultiMedia Soft



Logged