Solved

Digital video

Posted on 2002-05-22
4
433 Views
Last Modified: 2013-11-20
I am writing a Windows NT application using VC++ 6.0.
I am receiving digital video data in through a HOTLink interface card.
I am required to save this digital video frame information to file.( that's the easy part)
Later, I am required to display this video frame data.  (frame by frame) or "real-time" from file.
I understand the digital video frame data format.  And can extract window size, and each pixel word data.
It seems that this will be a cumbersome task to do display all this information back to the user frame by frame, painting pixel by pixel.  
Not knowing to much about displaying video or video in general my questions are:

1) What is the file format of uncompressed video?
2) Is there a tool to display, what I am assuming is called uncompressed video?
3) Should I try to compress the video data?  
4) Will compressing the video data change the file format to JPEC or MPEG or whatever it is that will make it easier to replay this digital video?

Thanks for any help you can give.
Vida
0
Comment
Question by:vpomona
  • 3
4 Comments
 
LVL 1

Expert Comment

by:orange_juice
ID: 7036181
previously i built my own low speed frame grabber card with raw data.
i use DirectX DirectDraw, that enable me to directly map the entire screen to memory location. By just directly memcpy all your raw data to this memory, your video gets displayed on pc, .... as for frame, you have to some how use a way to control the timing. DirectDraw won't help

but lately there is all this DirectShow stuff which unfortunately i not quite know, if not mistaken, it support video, through some standard format

since u have raw data format, i think better to use the first approach

may i know what video card u use? is it an off the shell product?
0
 
LVL 1

Expert Comment

by:orange_juice
ID: 7036188
don't need to compress the video, or save in jpeg... just make ur thing most complex

compression is useful only at the hardware level, when it gets transfered through the cable. At software level, it adds overhead only. If u already have the raw data, i don't see any point why u want to compress it.

anyway, there are some pro, standard compressed format like jpeg, mpeg..... there exist many open source decoder works on www. u can just grab one and use, may be make ur life easier. But if u can do directdraw, why bother that??
0
 

Author Comment

by:vpomona
ID: 7038258
I am using a Wintriss PCI HOTLink card. COTS card
I will check into using direct draw.  and get back later.
It also sounds like I do not need to compress the video data.
I am still unclear if there is a standard form for uncompressed video?  *.avi *.jpeg ????????
thanks Vida
0
 
LVL 1

Accepted Solution

by:
orange_juice earned 100 total points
ID: 7039834
standard form for uncompressed video? I also don't know.
But for frame grabber card, normally when accessible to their buffer, the data is all raw, either RGB, YUV, or monochrome... we directly map/ BitBlt to DirectDraw surface (meaning our display card memory, e.g our monitor screen) .

   i manage to get my card working in this manner previously, can show 'slow' motion, or capture still picture. Lots of hardware issue though.

you can take a look on it at
http://www.geocities.com/cheah_wei

to see if the simple ddraw program is useful to you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now