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 08: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
LoadPlugin("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. doneLast edited by Fixer; 15th Aug 2011 at 18: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 resultsVirtualDub 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:
LoadPlugin("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 colorsLast edited by Fixer; 17th Aug 2011 at 05:01.
-
I took that sample video and mosaiced it into a 2160x1152 frame:
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 09:22.
Similar Threads
-
Getting Avisynth to import raw avi without converting to RGB
By Asterra in forum Video ConversionReplies: 18Last Post: 22nd May 2011, 20:08 -
RGB 32 Color Output Playback Problem
By Shone in forum Software PlayingReplies: 0Last Post: 12th Nov 2009, 02:45 -
YV12 to RGB color problem
By wydesenej in forum Video ConversionReplies: 2Last Post: 30th Oct 2009, 07:42 -
Is there a way to convert grayscale video to color
By ussmillerco in forum Video ConversionReplies: 9Last Post: 28th Feb 2009, 01:29 -
Raw RGB video viewing
By masrepus in forum Software PlayingReplies: 2Last Post: 4th Feb 2008, 10:11