I am using DirectShow to capture and play video files in our application. I am facing one issue, whenever I play any HD video in our application, it is not of the same quality as it plays in any other Media player ( Windows Media Player, VLC etc....).
Does anybody have any idea what can be the problem...What should I do to Improve the quality of a video.
Do I need any specific codec or any dll which might be required for the same.
I have not gone too far. I was thinking I might go in the wrong direction.
Please let me know if you need any specific information:
Here I have elaborated what I want:
I am working on a project in which I capture a video using a camera. Now that video plays fine. it will be of the same quality as captured using the camera. I have downloaded some HD video from the net. when I play that video in my application, that video doesn't look like its a HD video. its quality deteriorates somewhat. if I play the same video in any other software (Windows Media player, VLC or any other player which can encode/decode HD video), it plays fine.
Wherever I search on any forum or on any site, I'll found that codecs which uses H.264 standard can better encode/decode HD videos and plays a video with high quality.
I have installed this codec pack on my PC...It does not seem to make any difference....Still playing HD videos shows some blurness at the edges of the objects.
I have seen when playing the same HD video in Windows Media Player, it is quite bright and of good quality. I was wondering what could be the difference in playing a video using DirectShow in Windows Media Player and my Application. Whatelse extra they are implementing or shipping with their product. What special codec or filter is being used.?
I want to ask one thing if you have an idea. I have also searched and found that H.264 is the standard used for HD videos.... Now there are various codec using H.264 as the standard for encoding and decoding. One such is x264 codec which is open source and freely available. I have downloaded that codec, now will that work for my application also, if I play any HD file in my application. I mean to ask is it sufficient that a codec is installed on your PC and if you play any HD file in your application, it will encode HD automatically.?
<pre lang="Thanks, next time I'll ask something more complex if stuff like this is inappropriate"></pre>
Richard - this is what happens when I post as "plain text". Aslo there is no preview.
So here is the message as code - again "Thanks, next time I'll ask something more complex if stuff like this is inappropriate"
You need to clear the checkbox at the bottom that says "Treat my content as plain text, not as HTML". There are lots of useful features to the edit pages on these forums, created by the CodeProject staff's hard work and dedication to making this site easy to use. It would be a good idea to spend some time getting familiar with them all.
I am writing a pure C based win32 applications. I have drawn line. Now i want to translate that line, move the line whereved user wants to move on screen. Then again I drawn another line, I am drawing multiple lines.
I have created rectangle region for each line and trying to move the line.
When I move the 2nd line over the 1st line on screen the 1st line is getting wiped out. Because I am InvalidateRect() of the rect for the line being moved, so when that rectangle is crossing the other line then the other line is getting removed from the screen.
How can I rectify it. How can I have all the lined being on the screen and moved according to the user's wish. The code should be pure C and win32 no MFC. Please help me how can I do it. Any help is highly appreciated. Thanks Sujan
You should draw all the lines in the code that handles the WM_PAINT message. Each time a new line is created, you save the details in a list or similar array. Then as your paint code is called, it should iterate that list and draw each line.
how can I implement a transform for each line. I want to pick a line by mouse and then move it anywhere on the screen and place it. drag and move.
Currently I am defining a a rect for each line and doing InvalidateRect() and moving and when this line is crossing other line , the other line is getting removed or wiped out. How can I move lines on screen without affecting other lines.
I just explained what you have to do; redraw them all, not just the one that has moved. You need to invalidate the entire Window, or ensure that you check each line within the invalidated rectangle. Understanding this basic concept is key to writing Windows applications.
Use the best guess
Last Visit: 31-Dec-99 19:00 Last Update: 11-Dec-23 2:45