VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. 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
    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
    I use:
    VirtualDub 1.10.0 build: 33848
    ffdshow beta7 rev3154 20091209

    Why I still have grayscale video?
    Quote Quote  
  2. You can't make color from grayscale. In a grayscale image all the color information has been removed.
    Quote Quote  
  3. I need to use debayering method...
    Quote Quote  
  4. 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.
    Quote Quote  
  5. Originally Posted by Fixer View Post
    Debayering Filter v1.0 plugin crash VirtualDub
    It works only to 1280x720px
    I didn't realize that.

    Originally Posted by Fixer View Post
    how to resize from 1 924 to 1 920 without crash?
    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.
    Quote Quote  
  6. 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)
    5. open file.avs into VirtualDub

    6. save as avi...

    7. done
    Last edited by Fixer; 15th Aug 2011 at 19:12.
    Quote Quote  
  7. 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?
    Quote Quote  
  8. 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
    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)
    c) now you can use filter cal: "null transorm" and crop (or trim timeline) movie
    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.
    Quote Quote  
  9. I took that sample video and mosaiced it into a 2160x1152 frame:

    AviSource("Test.avi", audio=false)
    StackHorizontal(last,last,last)
    StackVertical(last,last)
    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.

    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.
    Quote Quote  
  10. big thx for help, on weekend i will be test your advice.
    Quote Quote  



Similar Threads