VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hi,

    I have a vob file which is in YUV format. I need to convert it to RAW format and then back to YUV.

    I need to know what are the command vsrawsource filter in avisynth would require to recognise correct format of video when i convert it back to YUV.

    Thanks
    Quote Quote  
  2. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    What do you believe is "YUV format", if not raw?

    Do you mean YUV4MPEG (*.y4m) – which is almost raw YUV video, just with a header?
    Quote Quote  
  3. If you want header-less, container-less, raw YUV data in a file you can use GraphEdit and the Dump filter.
    Quote Quote  
  4. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    I believe avs2pipemod and ffmpeg can be used as well, in both directions; conversions from headerless raw YUV just require a lot of parameters to specify the attributes which are not in any header.
    Quote Quote  
  5. For example, this script produces five frames of 320x240 YV12 colorbars:

    Code:
    ColorBars(width=320, height=240, pixel_type="YV12")
    Trim(0,4)
    Opened and run with this graph in GraphStudioNext (an modern version of GraphEdit):

    Image
    [Attachment 40474 - Click to enlarge]


    Created the attached file (zipped for upload). That's the DUMP filter at the top right of the filter chain, the NULL RENDERER at the bottom right (data goes nowhere).

    The raw file can be opened with:

    Code:
    RawSource("yv12.yuv", width=320, height=240, pixel_type="YV12")
    Image Attached Files
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!