Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
As I Can Save The Bmp–frames From Uyvy Video?, INCORRECT COLORS in «UYVY to BMP»
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Avak_Avakyan
  Posted: Sep 26 2012, 04:26 PM


Newbie


Group: Members
Posts: 2
Member No.: 35490
Joined: 26-September 12



Hi!! As I can save the video–frame in BMP from the UYVY AVI video (UYVY Non–Planar Bpp 16)? I downloaded more 30 programms (video editors, players, etc); result — null!! sad.gif The UYVY AVI do NOT work with «Print Screen» (result — the black square). The players and editors create message about error, or create BMP with INCORRECT COLORS!! The many players (example: Media Player Classic) PLAY uyvy video CORRECTLY (but create BMP incorrectly). In old versions of VirtualDub we can see INCORRECT COLORS in two windows; in VirtualDub–1.9.11 we can see correct colors in the left window, but incorrect colors in the right window; and BMP with «Save image sequence» — incorrect in all VirtualDub versions. As I can save (correctly!!) the video–frame in normal BMP from the UYVY AVI video (UYVY Non–Planar Bpp 16)?

I ask about video–file (3169 Kb):
http://www.efkahomepage.ktk.ru/quartzite.avi
I create the image (png 521 Kb): see this my problem, please (the top frame I create with effects in graphic editor; this is «as UYVY AVI original»):
http://www.efkahomepage.ktk.ru/quartzite.png

P.S. The VirtualDub is greatest video editor in the world!!!!! THANK YOU VERY MUCH!!!!!
 
     Top
Abrazo
Posted: Sep 26 2012, 07:15 PM


Advanced Member


Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10



Maybe it will not help you much further, but only for your information I did a test with your AVI-file:

- In VirtualDub 1.9.11 (in Windows 7), the images of your AVI in the left and in the right pane have equal/same colors, no matter what I change in Video > Color depth.
- In File > File information..., I can see that "Microsoft YUV (UYVY)" decompressor is used. When explicitly choosing that color depth there is still no change in the colors.
- (On my pc) the colors resemble that of your PNG exemple "Save image sequence in VirtualDub".

So, I can not say that I see the colors correctly if they should resemble your 'original' picture, eventhough that you say they are correct.


Do you have the possibility to do the same test on an other pc ?
 
     Top
Avak_Avakyan
  Posted: Sep 26 2012, 10:26 PM


Newbie


Group: Members
Posts: 2
Member No.: 35490
Joined: 26-September 12



Thank You!!
This is a very interesting. My friend have a pc with Windows XP; I saved frame in Windows Movie Maker in this pc; result — as a middle frame in PNG, which You has looked (as «Save image sequence in VirtualDub»). My pc with Windows–98–SE1; DirectX–8.1; the file «msyuv.dll» (in «C:\WINDOWS\SYSTEM») — «Microsoft UYVY Video Decompressor 5.1.2258.400».

I create this video in the programm «amcap» («DirectShow Capture 2.72»); I set color (in this programm): «UYVY Non–Planar Bpp 16».

In many players («The Core Pocket Media Player», «Windows Media Player», «Media Player Classic», «Zoom Player», «Light Alloy», «KoolPlaya», etc) the PLAY function work with ideal color, as in top frame in PNG (which You has looked). But: if I click PAUSE in this players, then minimize player window to the Start panel, then restore player window, — I see the poor color frame, as «Save image sequence in VirtualDub». Then I click PLAY, and ideal color has restored. That is to say: this is as a «dynamic effect», «dynamic filter». If I restore the player window from Start panel (with poor color) and I click Print Screen, — Print Screen create result (save image with the poor color). But, if I click Print Screen, if in player window I see the frame with ideal color, — the Print Screen do not work — result — the black square in the screenshot of the player window.

This is a DirectX–8.1 error? I do not know. If the play function — well (in many players; NOT in VirtualDub all versions), as I can «interception» this («Print Screen» this)? I want save this «frame with ideal color» as normal BMP image!! As I can «convert» this «dynamic effect» to «static» BMP? P.S. If I convert the UYVY video to RGB video (use the «Video Color Depth» function in VirtualDub), the RGB video (result) I see in all my players with «poor color».
 
     Top
phaeron
Posted: Sep 29 2012, 09:38 PM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



The paler image you're getting out of VirtualDub and from the save screen option is the more correct image. The contrasted image you're getting from the top is an incorrect image due to video level mismatches: it most likely resulted from something decoding to 0-255 levels instead of 16-235. Another symptom of this kind of problem is that an operation that bypasses video acceleration -- disabling acceleration in the player or taking a screenshot -- produces a different result. A common cause is a poorly adjusted video driver -- some older video drivers had bad default video settings.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 replies since Sep 26 2012, 04:26 PM Track this topic | Email this topic | Print this topic

<< Back to Codec Discussion