| 1 | # Video bitrate (kb/s)
|
|---|
| 2 | b=300k
|
|---|
| 3 |
|
|---|
| 4 | ##
|
|---|
| 5 | # Frame-type options
|
|---|
| 6 | ##
|
|---|
| 7 |
|
|---|
| 8 | # Baseline H.264 profile
|
|---|
| 9 | # - disable CABAC entropy coding
|
|---|
| 10 | # - no B-frames
|
|---|
| 11 | coder=0
|
|---|
| 12 | bf=0
|
|---|
| 13 |
|
|---|
| 14 | # Number of I reference frames (up to 16)
|
|---|
| 15 | refs=4
|
|---|
| 16 |
|
|---|
| 17 | # GOP max (maximum distance between I-frames)
|
|---|
| 18 | g=200
|
|---|
| 19 |
|
|---|
| 20 | # GOP min (minimum distance between I-frames)
|
|---|
| 21 | keyint_min=25
|
|---|
| 22 |
|
|---|
| 23 | # Level 3.0 (40500 macroblocks/s, max 720x480@30)
|
|---|
| 24 | # Level 3.1 (108000 macroblocks/s, max 1280x720@30)
|
|---|
| 25 | level=30
|
|---|
| 26 |
|
|---|
| 27 | # Enable loop filter
|
|---|
| 28 | flags=+loop
|
|---|
| 29 |
|
|---|
| 30 | # Scene cut detection (default)
|
|---|
| 31 | sc_threshold=40
|
|---|
| 32 |
|
|---|
| 33 | # full pel me compare function
|
|---|
| 34 | cmp=+chroma
|
|---|
| 35 |
|
|---|
| 36 | ##
|
|---|
| 37 | # Rate control (keep default settings)
|
|---|
| 38 | ##
|
|---|
| 39 | qcomp=0.6
|
|---|
| 40 | qmin=10
|
|---|
| 41 | qmax=51
|
|---|
| 42 | qdiff=4
|
|---|
| 43 |
|
|---|
| 44 | # Qscale difference between I-frames and P-frames
|
|---|
| 45 | i_qfactor=0.71
|
|---|
| 46 |
|
|---|
| 47 | # VBV (video buffering verifier) parameters
|
|---|
| 48 | maxrate=1500000
|
|---|
| 49 | bufsize=8000000
|
|---|
| 50 |
|
|---|
| 51 | ##
|
|---|
| 52 | # Analysis
|
|---|
| 53 | ##
|
|---|
| 54 |
|
|---|
| 55 | # Weighted prediction analysis for p-frames (requires ffmpeg>=SVN-20600)
|
|---|
| 56 | # 0: off
|
|---|
| 57 | # 1: fast blind weighting (one reference duplicate with -1 offset)
|
|---|
| 58 | # 2: smart weighting (full fade detection analysis)
|
|---|
| 59 | # Warning: put 1 or 2 here will switch to Main profile
|
|---|
| 60 | wpredp=0
|
|---|
| 61 |
|
|---|
| 62 | # Macroblock subpartition sizes to consider
|
|---|
| 63 | partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8
|
|---|
| 64 |
|
|---|
| 65 | # Motion estimation (dia, hex, uhm, esa, tesa)
|
|---|
| 66 | # tesa (transformed exhaustive) is an algorithm which attempts to approximate the effect of running a Hadamard transform comparison at each motion vector
|
|---|
| 67 | me_method=tesa
|
|---|
| 68 |
|
|---|
| 69 | # Subpixel estimation complexity. [0-10]
|
|---|
| 70 | subq=10
|
|---|
| 71 |
|
|---|
| 72 | # Controls the max range of the motion search.
|
|---|
| 73 | me_range=24
|
|---|
| 74 |
|
|---|
| 75 | # Performs Trellis quantization to increase efficiency. [0-2]. Requires CABAC?
|
|---|
| 76 | # 0: disabled. uniform deadzone quantizer
|
|---|
| 77 | # 1: enabled only on the final encode of a MB
|
|---|
| 78 | # 2: enabled on all mode decisions
|
|---|
| 79 | trellis=2
|
|---|
| 80 |
|
|---|
| 81 | # None, Spatial, Temporal, Auto
|
|---|
| 82 | directpred=3
|
|---|
| 83 |
|
|---|
| 84 | # dct8x8: high profile 8x8 transform (H.264)
|
|---|
| 85 | # wpred: weighted biprediction for b-frames (H.264)
|
|---|
| 86 | # mixed_refsd: one reference per partition, as opposed to one reference per macroblock
|
|---|
| 87 | # fastpskip: early skip detection on P-frames (H.264)
|
|---|
| 88 | flags2=-mixed-refs-dct8x8-fastpskip-wpred |
|---|