VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Code:
    =====================================
    
    WVC1ENC: VC-1 Encoder Example
    
    
    Copyright (C) Micro$oft Corporation.
    All Right$ Re$erved.
    
    
    =====================================
    
    
    Avisynth, YV12 & Raw support added by Nic.
    
    
    =====================================
    
    
    *BUGGY* VC-1 Encoder
    Based on the source-code for "avi2asf.exe".
    
    Avisynth, YV12 & Raw support added by Nic.
    
    
    The only required parameters are the input and output files, although results
    may not be what you want! Check CONFIG_PROPERTIES (using -showparms) in the
    job output and adjust any parameters accordingly.
    
    Syntax:
    WVC1ENC.exe -i <inputfile> -o <outputfile>
            [Option 1] <value1> [Option 2] <value2> ...
    
    
    Command-line options:
    
    -i <input AVI file name>
    
    -o <output file name>
            Use suffix .vc1 for VC-1 Elementary Stream output (no audio).
            Use suffix .asf for ASF output.
    
    [-rate] <output rate (kilobits per second)>
    
    [-complexity] <encoder complexity>
            0 to 5, 0 = very fast, 5 = maximum compression.
    
    
    [-qp] <quantization parameter (QP)>
            Fixed QP if -ratecontrol equals 1 (1-pass VBR)
            Max QP if -ratecontrol equals 0 or 2 (CBR)
    
    [-interlaced]
            Specifies interlaced source.
    
    [-maxkeydist] <maximum distance between key frames>
    
    [-bframes] <number of B-frames per P-frame>
            Range is 0 to 7.
    
    [-peakrate] <peak bit rate (kilobits per second)>
    
    [-profiletype] <type specifier>
            0 = Simple, 1= Main, 2 = Advanced.
    
    [-ratecontrol]
            0 = 1-pass CBR
            1 = 1-pass VBR fixed QP
            2 = 2-pass CBR
            3 = 2-pass peak constrained VBR
            4 = 2-pass unconstrained VBR.
    
    [-vbv] <size of vbv buffer>
            Maximum is 4294967295
    
    [-colorformatflags] <colorformatflag> <colorprimaries> <transferchar>
                        <matrixcoef>
            - If colorformatflag is 1, then you must specify colorprimaries,
              transferchar, and matrixcoef.
            - If colorformatflag is 0, then no need to specify colorprimaries,
              transferchar, and matrixcoef because the decoder will generate them
              for you.
    
    [-denoise] <0 or 1>
            Turn on or off denoise filter.
    
    [-inloop] <0 or 1>
            Turn on or off in-loop filter.
    
    [-median] <0 or 1>
            Turn on or off median filter.
    
    [-overlap] <0 or 1>
            Turn on or off overlap smoothing.
    
    [-noiseedge] <0 or 1>
            Turn on or off noise edge removal.
    
    [-deltamvrange] <delta mv range index>
            0 = off, 1= horizontal, 2= vertical, 3 = h + v.
    
    [-motionsearchlevel] <level>
            0 = Luma only. (Default)
            1 = Luma w/ nearest-int chroma.
            2 = Luma w/ true chroma.
            3 = Macroblock-adaptive with true chroma.
            4 = Macroblock adaptive with nearest int chroma.
    
    [-mesearchmethod] <phase>
            0 = off, 1 = always use Hadamard, 2 = adaptive SAD/Hadamard.
    
    [-mbcost] <cost method>
            0 = SAD/Hadamard, 1 = RD cost.
    
    [-mvcost] <cost method>
            0 = static, 1 = dynamic.
    
    [-mvrange] <mv range>
            0 to 3 are increasing ranges, 4 is macroblock adaptive.
    
    [-dquantoption] <level>
            0 to 3, 0 = off, 1 = I-frame only, 2 = I/P-frame only, 3 = I/P/B frame.
    
    [-adaptivequant] <adaptive quantization>
            0 to 21
    
    [-dquantpstrength] <level>
            Range is 0 to 2.
            0 = VC-1 encoder-managed setting.
            Only valid when -dquantoption > 0.
    
    [-dquantbstrength] <level>
            Range is 0 to 4.
            0 = VC-1 encoder-managed setting.
            Only valid when -dquantoption > 0.
    
    [-bdeltaqp] <qp increase for B-frames>
            0 to 30
    
    [-closedentrypt] <closed-entry point value>
    
    [-dw] <display width (pixels)>
    
    [-dh] <display height (pixels)>
    
    [-ew] <encode width (pixels)>
    
    [-eh] <encode height (pixels)>
    
    [-lbpresent]
            Indicates letterboxing is present.
    
    [-lookahead]
            Indicates use lookahead.
            -ratecontrolmode must equal 0.
    
    [-adaptiveGOP]
            Indicates use adaptive GOP.
    
    [-keyPop] <key pop level>
            Indicates use key frame pulse reduction.
            Range is 0 to 4. 0 = Off, 1 -4 are strength levels.
    
    [-threads] <num threads>
            Maximum is 4.
    
    [-affinity] <affinity mask>
            Processor mapping.
    
    [-aspectratio] <aspectratioindex> <aspectratiowidth> <aspectratioheight>
            If aspectratioindex is 15, then you must specify aspectratiowidth and
            aspectratioheight.
    
    [-sarx] <sar x value> [-sary] <sar y value>
            If sar values are specified then they override -aspectratio,
            -dw and -dh.
    
    [-videotype] <type>
            0 = progressive, 1 = interlaced frames, 2 = interlaced fields
            3 = detect interlacing type, 4 = automatic.
    
    [-tff]
            Indicates top field first.
    
    [-rff]
            Indicates repeat first field.
    
    [-pr] <path to .prx file>
            Specifies a .prx file to use for audio profile data.
            By default, the encoder looks for an appropriate audio codec.
    
    [-showparms]
            Shows the parameters used by the encoder.
    
    
    
    ABOUT WVC1ENC:
    
    Compiled by TinTime, hex-edited by El Heggunte.
    
    Have fun! ^_^
    * * * * * * * * * *
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I have been tinkering around with some flv files that I downloaded from CBS.com. I am trying to remux them into mp4 containers so that I can push them up to my Tivo to watch them. I am having no luck. I tried flvextract to extract the elementary streams. That seems to work fine. Then I try to remux them with either mp4box or mp4creator and I end up with a mp4 file that is roughly half the total size as the flv. It doesn't play back in MPCHC (blank screen and timeline doesn't progress).

    I found a thread on this where someone uses ffmpeg to copy both streams into a mp4, and then extracts the elementary streams with mp4box and then remuxes them again with mp4box. That doesn't work either.

    I then tried encoding the file with avisynth (ffmpegsource2+assumefps(24)) and x264 (r1745). That also doesn't play in MPCHC.

    This is on a new laptop, so it is possible that I don't have something set up correctly. Don't know.

    What am I doing wrong? Also, flvextract will output a timecode file when I demux a flv. What is that used for?

    MediaInfo on flv:
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!