Solved

Digital video

Posted on 2002-05-22
4
432 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

15 Experts available now in Live!

Get 1:1 Help Now