Hello
How to convert this video:
MediaInfo
General
Complete name : test.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 2.41 GiB
Duration : 49s 640ms
Overall bit rate : 416 Mbps
Video
ID : 0
Format : RGB
Codec ID : 0x00000000
Codec ID/Info : Basic Windows bitmap format. 1, 4 and 8 bpp versions are palettised. 16, 24 and 32bpp contain raw RGB samples
Duration : 49s 640ms
Bit rate : 416 Mbps
Width : 1 924 pixels
Height : 1 082 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Bit depth : 8 bits
Bits/(Pixel*Frame) : 8.000
Stream size : 2.41 GiB (100%)
into this
I use:Format settings, Matrix : Default (H.263)
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 4s 760ms
Bit rate : 13.1 Mbps
Width : 1 924 pixels
Height : 1 082 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
VirtualDub 1.10.0 build: 33848
ffdshow beta7 rev3154 20091209
Why I still have grayscale video?
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 11 of 11
			
		- 
	
- 
	You can't make color from grayscale. In a grayscale image all the color information has been removed. 
- 
	Then use a debayering or demosaicing filter: 
 
 https://forum.videohelp.com/threads/331647-YUY2-vs-RGB24-vs-Y800?highlight=debayering
 
 That thread links to one for VirtualDub.
 
 https://forum.videohelp.com/threads/331647-YUY2-vs-RGB24-vs-Y800?p=2057308#post2057308
- 
	Debayering Filter v1.0 plugin crash VirtualDub  
 It works only to 1280x720px
 how to resize from 1 924 to 1 920 without crash?Last edited by Fixer; 15th Aug 2011 at 09:51. 
- 
	I didn't realize that. 
 
 I would use the crop filter before debayering. Crop to 1/4 the size and debayer. Do the same for all four quadrants. Then you can paste the four pieces together in a paint program.
 
 Or try using the AviSynth debayering filters.
- 
	Now I try AviSynth debayering filter 
 
 1. download filter: http://moodub.free.fr/video/Avisynth_DebayerFilter.zip
 
 2. unzip to: C:\Program Files\AviSynth 2.5\plugins\
 
 3. make file.avs
 
 4. paste this script
 5. open file.avs into VirtualDubLoadPlugin("C:\Program Files\AviSynth 2.5\plugins\rawsource.dll")
 LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DebayerFilter.dll")
 DirectShowSource("Z:\test.avi")
 Crop(0,0,-4,-2)
 ConvertToYV12()
 FlipVertical()
 FlipHorizontal()
 DebayerFilter(swap=0)
 FlipHorizontal()
 LanczosResize(1280,720)
 
 6. save as avi...
 
 7. done  Last edited by Fixer; 15th Aug 2011 at 19:12. 
- 
	Could you post a short sample of your source video? 
 
 Did you try cropping the source before using the VirtualDub Debayering filter? Did you get proper colors results in the output pane?
- 
	1. no, in zip archive (http://www.infognition.com/VirtualDubFilters/mirror/debayering.zip) you have sample movie "Test.avi" 
 
 2. yes I try this with no positive results VirtualDub just crash when you try crop movie in RAW RGB mode VirtualDub just crash when you try crop movie in RAW RGB mode 
 probably I have wrong offset 1924, VD suspect 1920
 but you can use a litle "hack" to crop RAW RGB without crash VD
 a) open file.avs
 b) paste script:
 c) now you can use filter cal: "null transorm" and crop (or trim timeline) movieLoadPlugin("C:\Program Files\AviSynth 2.5\plugins\rawsource.dll")
 LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DebayerFilter.dll")
 DirectShowSource("Z:\test.avi")
 Crop(0,0,-4,-2)
 d) save as... it works for me 
 e) now we have nice RAW RGB movie + crop, without debayering filter
 
 3. yes, after debayering filter I have proper colors  Last edited by Fixer; 17th Aug 2011 at 06:01. 
- 
	I took that sample video and mosaiced it into a 2160x1152 frame: 
 
 The debayering filter in VirtualDub had no problems with it. It looks like the debayering filter requires mod 16 frame sizes. Crop or pad your source video to suit. I cropped a 1924x1080 video down to 1920x1072 with VirtualDub's crop feature then used the debayering filter -- it worked fine.AviSource("Test.avi", audio=false)
 StackHorizontal(last,last,last)
 StackVertical(last,last)
 
 If you're going to use AviSynth to crop you might as well use one of the debayering filters for AviSynth.
 
 import("C:\Program Files (x86)\AviSynth 2.5\plugins\Demosaic.avs")
 AviSource("Test.avi", audio=false)
 StackHorizontal(last,last,last)
 StackVertical(last,last)
 Demosaic(xoffset=2,yoffset=2)Last edited by jagabo; 17th Aug 2011 at 10:22. 
Similar Threads
- 
  Getting Avisynth to import raw avi without converting to RGBBy Asterra in forum Video ConversionReplies: 18Last Post: 22nd May 2011, 21:08
- 
  RGB 32 Color Output Playback ProblemBy Shone in forum Software PlayingReplies: 0Last Post: 12th Nov 2009, 03:45
- 
  YV12 to RGB color problemBy wydesenej in forum Video ConversionReplies: 2Last Post: 30th Oct 2009, 08:42
- 
  Is there a way to convert grayscale video to colorBy ussmillerco in forum Video ConversionReplies: 9Last Post: 28th Feb 2009, 02:29
- 
  Raw RGB video viewingBy masrepus in forum Software PlayingReplies: 2Last Post: 4th Feb 2008, 11:11


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote
