From 4b82e3cedcfc9871671bb613cd979de6995dcb4e Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Wed, 7 Jan 2009 17:38:29 +0000 Subject: [PATCH] Add some lossless h.264 encoding presets as suggested by Jason Originally committed as revision 16478 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffpresets/libx264-lossless_fast.ffpreset | 19 ++++++++++++++++++ ffpresets/libx264-lossless_max.ffpreset | 20 +++++++++++++++++++ ffpresets/libx264-lossless_medium.ffpreset | 19 ++++++++++++++++++ ffpresets/libx264-lossless_slow.ffpreset | 20 +++++++++++++++++++ ffpresets/libx264-lossless_slower.ffpreset | 20 +++++++++++++++++++ ffpresets/libx264-lossless_ultrafast.ffpreset | 19 ++++++++++++++++++ 6 files changed, 117 insertions(+) create mode 100644 ffpresets/libx264-lossless_fast.ffpreset create mode 100644 ffpresets/libx264-lossless_max.ffpreset create mode 100644 ffpresets/libx264-lossless_medium.ffpreset create mode 100644 ffpresets/libx264-lossless_slow.ffpreset create mode 100644 ffpresets/libx264-lossless_slower.ffpreset create mode 100644 ffpresets/libx264-lossless_ultrafast.ffpreset diff --git a/ffpresets/libx264-lossless_fast.ffpreset b/ffpresets/libx264-lossless_fast.ffpreset new file mode 100644 index 0000000000..dcf418afda --- /dev/null +++ b/ffpresets/libx264-lossless_fast.ffpreset @@ -0,0 +1,19 @@ +coder=0 +flags=+loop +cmp=+chroma +partitions=-parti8x8+parti4x4+partp8x8-partp4x4-partb8x8 +me_method=hex +subq=3 +me_range=16 +g=250 +keyint_min=25 +sc_threshold=40 +i_qfactor=0.71 +b_strategy=1 +qcomp=0.6 +qmin=10 +qmax=51 +qdiff=4 +directpred=1 +flags2=+fastpskip +cqp=0 diff --git a/ffpresets/libx264-lossless_max.ffpreset b/ffpresets/libx264-lossless_max.ffpreset new file mode 100644 index 0000000000..b8506c227f --- /dev/null +++ b/ffpresets/libx264-lossless_max.ffpreset @@ -0,0 +1,20 @@ +coder=1 +flags=+loop +cmp=+chroma +partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8 +me_method=esa +subq=8 +me_range=16 +g=250 +keyint_min=25 +sc_threshold=40 +i_qfactor=0.71 +b_strategy=1 +qcomp=0.6 +qmin=10 +qmax=51 +qdiff=4 +refs=16 +directpred=1 +flags2=+mixed_refs+dct8x8+fastpskip +cqp=0 diff --git a/ffpresets/libx264-lossless_medium.ffpreset b/ffpresets/libx264-lossless_medium.ffpreset new file mode 100644 index 0000000000..99fb6b9d07 --- /dev/null +++ b/ffpresets/libx264-lossless_medium.ffpreset @@ -0,0 +1,19 @@ +coder=1 +flags=+loop +cmp=+chroma +partitions=-parti8x8+parti4x4+partp8x8+partp4x4-partb8x8 +me_method=hex +subq=5 +me_range=16 +g=250 +keyint_min=25 +sc_threshold=40 +i_qfactor=0.71 +b_strategy=1 +qcomp=0.6 +qmin=10 +qmax=51 +qdiff=4 +directpred=1 +flags2=+fastpskip +cqp=0 diff --git a/ffpresets/libx264-lossless_slow.ffpreset b/ffpresets/libx264-lossless_slow.ffpreset new file mode 100644 index 0000000000..2ecb55b07e --- /dev/null +++ b/ffpresets/libx264-lossless_slow.ffpreset @@ -0,0 +1,20 @@ +coder=1 +flags=+loop +cmp=+chroma +partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8 +me_method=umh +subq=6 +me_range=16 +g=250 +keyint_min=25 +sc_threshold=40 +i_qfactor=0.71 +b_strategy=1 +qcomp=0.6 +qmin=10 +qmax=51 +qdiff=4 +refs=2 +directpred=1 +flags2=+dct8x8+fastpskip +cqp=0 diff --git a/ffpresets/libx264-lossless_slower.ffpreset b/ffpresets/libx264-lossless_slower.ffpreset new file mode 100644 index 0000000000..dd499c7afd --- /dev/null +++ b/ffpresets/libx264-lossless_slower.ffpreset @@ -0,0 +1,20 @@ +coder=1 +flags=+loop +cmp=+chroma +partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8 +me_method=umh +subq=8 +me_range=16 +g=250 +keyint_min=25 +sc_threshold=40 +i_qfactor=0.71 +b_strategy=1 +qcomp=0.6 +qmin=10 +qmax=51 +qdiff=4 +refs=4 +directpred=1 +flags2=+mixed_refs+dct8x8+fastpskip +cqp=0 diff --git a/ffpresets/libx264-lossless_ultrafast.ffpreset b/ffpresets/libx264-lossless_ultrafast.ffpreset new file mode 100644 index 0000000000..1c429f21ff --- /dev/null +++ b/ffpresets/libx264-lossless_ultrafast.ffpreset @@ -0,0 +1,19 @@ +coder=0 +flags=+loop +cmp=+chroma +partitions=-parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 +me_method=dia +subq=0 +me_range=16 +g=250 +keyint_min=25 +sc_threshold=40 +i_qfactor=0.71 +b_strategy=1 +qcomp=0.6 +qmin=10 +qmax=51 +qdiff=4 +directpred=1 +flags2=+fastpskip +cqp=0