Call for video encoding settings
Hello folks, I'd like to add some encoding settings examples in our HTML documentation. Those settings off course highly depend on personal preferences, so highlighting a certain encoding setting as "very high quality", "high quality", "fast", and "realtime" won't probably make everyone happy, but I guess it'll still be better than having nothing. Here is what I propose (for lavc MPEG-4, XviD and x264, but I'm also interested in MPEG-2, wmv... settings, also long as it's supported by MEncoder off course). * Very High Quality: lacv: ? XviD: chroma_opt:vhq=4:bvhq=1:gmc:quant_type=mpeg x264: subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b * High quality: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo XviD: vhq=2:bvhq=1:psnr:chroma_opt:quant_type=mpeg x264: subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b * Fast: lavc: vcodec=mpeg4:mbd=2:trell:v4mv XviD: -- (default) x264: subq=4:bframes=2:b_pyramid:weight_b * Realtime: lavc: vcodec=mpeg4:mbd=2:turbo XviD: turbo:nochroma_me:notrellis:max_bframes=0:vhq=0 x264: (irrevelant) Guillaume -- A lie gets halfway around the world before the truth has a chance to get its pants on. -- Winston Churchill
Hi, On Tue, Jul 19, 2005 at 12:03:02PM +0200, Guillaume POIRIER wrote:
* Very High Quality: lacv: ? XviD: chroma_opt:vhq=4:bvhq=1:gmc:quant_type=mpeg x264: subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b
I don't know what you consider Very High Quality, but for me this would mean constant quatizer of 2 and no B-frames... At least that possibility IMHO is worth mentioning... Greetings, Reimar Döffinger
On Tuesday 19 July 2005 14:52, Reimar Döffinger wrote:
I don't know what you consider Very High Quality, but for me this would mean constant quatizer of 2 and no B-frames...
Agree :-)
Hello folks, I'd like to add some encoding settings examples in our HTML documentation. Those settings off course highly depend on personal preferences, so highlighting a certain encoding setting as "very high quality", "high quality", "fast", and "realtime" won't probably make everyone happy, but I guess it'll still be better than having nothing.
I won't comment on the specific settings because I don't know enough to really say. I will say, however, that I think this is a wonderful idea. The settings you've shown have given me a much better picture of what sorts of settings are important for quality vs. speed. Thanks. Pete
Guillaume POIRIER wrote:
Hello folks, I'd like to add some encoding settings examples in our HTML documentation. Those settings off course highly depend on personal preferences, so highlighting a certain encoding setting as "very high quality", "high quality", "fast", and "realtime" won't probably make everyone happy, but I guess it'll still be better than having nothing.
Here is what I propose (for lavc MPEG-4, XviD and x264, but I'm also interested in MPEG-2, wmv... settings, also long as it's supported by MEncoder off course).
* Very High Quality: lacv: ?
That's an interesting question... It's been a long time since I did any big lavc comparisons, but I'll submit my personal favorite combination and the reasons I use each option. I wouldn't go so far as to say it's the best, but it's a path in the right direction. These are tuned specifically for color non-animated video with low graininess. I don't encode much else. mbd=2:mv0:trell:cbp:precmp=2:cmp=2:subcmp=2:predia=2:dia=2:preme=2:vme=5:naq:v4mv:qns=2 ----------------Justifications------------------ mbd=2:mv0:trell:cbp Based on personal experimentation, these options should never hurt. Note that in the (rather old) post linked below I say I like a certain set of options; ignore that, the set above is much better. http://article.gmane.org/gmane.comp.video.mplayer.user/22016/ precmp=2:cmp=2:subcmp=2 Although *cmp=6 gave very slightly higher PSNR on my test clip, *cmp=2 looked very slightly better in a frame-by-frame comparison. predia=2:dia=2:preme=2:vme=5:naq All these individually gave slightly higher PSNR on my test clip, and didn't seem to make a visual difference. v4mv Gave somewhat higher PSNR and looked a bit better. qns=2 Qns lowers PSNR slightly but ends up dramatically reducing the amount of ringing artifacts around sharp borders. This makes a large difference when bitrate is low enough that ringing would normally be there, but little difference when bitrate is already high enough to alleviate the ringing. There doesn't seem to be any adverse effect to using it when it's not needed, though. http://article.gmane.org/gmane.comp.video.mplayer.user/26054/ http://article.gmane.org/gmane.comp.video.mplayer.user/26148/ -Corey
On Tue, 19 Jul 2005 16:28:58 -0700 Corey Hickey <bugfood-ml@fatooh.org> wrote:
There doesn't seem to be any adverse effect to using it when it's not needed, though.
I'd call slowing down the encoding process by a factor of 5+ an adverse effect. But that's just me.
RC wrote:
On Tue, 19 Jul 2005 16:28:58 -0700 Corey Hickey <bugfood-ml@fatooh.org> wrote:
There doesn't seem to be any adverse effect to using it when it's not needed, though.
I'd call slowing down the encoding process by a factor of 5+ an adverse effect. But that's just me.
I forgot to mention that. :) -Corey
On 7/20/05, Corey Hickey <bugfood-ml@fatooh.org> wrote:
Guillaume POIRIER wrote:
Hello folks, I'd like to add some encoding settings examples in our HTML documentation. Those settings off course highly depend on personal preferences, so highlighting a certain encoding setting as "very high quality", "high quality", "fast", and "realtime" won't probably make everyone happy, but I guess it'll still be better than having nothing.
Here is what I propose (for lavc MPEG-4, XviD and x264, but I'm also interested in MPEG-2, wmv... settings, also long as it's supported by MEncoder off course).
* Very High Quality: lacv: ?
That's an interesting question... It's been a long time since I did any big lavc comparisons, but I'll submit my personal favorite combination and the reasons I use each option. I wouldn't go so far as to say it's the best, but it's a path in the right direction. These are tuned specifically for color non-animated video with low graininess. I don't encode much else.
mbd=2:mv0:trell:cbp:precmp=2:cmp=2:subcmp=2:predia=2:dia=2:preme=2:vme=5:naq:v4mv:qns=2
----------------Justifications------------------
mbd=2:mv0:trell:cbp
Based on personal experimentation, these options should never hurt. Note that in the (rather old) post linked below I say I like a certain set of options; ignore that, the set above is much better. http://article.gmane.org/gmane.comp.video.mplayer.user/22016/
precmp=2:cmp=2:subcmp=2
Although *cmp=6 gave very slightly higher PSNR on my test clip, *cmp=2 looked very slightly better in a frame-by-frame comparison.
predia=2:dia=2:preme=2:vme=5:naq
All these individually gave slightly higher PSNR on my test clip, and didn't seem to make a visual difference.
vme=5 is the same as vme=4 according to the man page :)
qns=2
Qns lowers PSNR slightly but ends up dramatically reducing the amount of ringing artifacts around sharp borders. This makes a large difference when bitrate is low enough that ringing would normally be there, but little difference when bitrate is already high enough to alleviate the ringing. There doesn't seem to be any adverse effect to using it when it's not needed, though. http://article.gmane.org/gmane.comp.video.mplayer.user/26054/ http://article.gmane.org/gmane.comp.video.mplayer.user/26148/
Nice benchmark. I'll add a note later about qns based on your findings. Here is an updated draft: Note: The following settings are examples of different encoding options combinations that affect the speed VS quality tradeoff given the same target bitrate. If you are aiming at perfect quality without too much thinking, a high constant quantizer encode with no B-frames will probably look very good, but will needlessly spend lots of bits to encode details that could be coded more wisely using some advanced settings. Note about High and very high encode settings: with lavc and XviD, you may want to try the "qpel" option, that may improve or diminish encode quality depending on the source you encode. * Very High Quality: lacv: vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:vme=5:naq:qns=2 XviD: chroma_opt:vhq=4:bvhq=1:quant_type=mpeg x264: subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b * High quality: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo:psnr XviD: vhq=2:bvhq=1:psnr:chroma_opt:quant_type=mpeg:psnr x264: subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr * Fast: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:turbo:psnr XviD: turbo:vhq=0:psnr x264: subq=4:bframes=2:b_pyramid:weight_b:psnr * Realtime: lavc: vcodec=mpeg4:mbd=2:turbo:psnr XviD: turbo:nochroma_me:notrellis:max_bframes=0:vhq=0:psnr x264: (irrevelant) -- A lie gets halfway around the world before the truth has a chance to get its pants on. -- Winston Churchill
Hi there, I've had a little bit of time to test those settings and run a full benchmark of those settings on a 2000 frames sample. I ran a constant quantiser encode to test the relative compressibility gain by each of the encode settings. I guess those results would need a bit of "re-normalization" given that the PSNR are fairly different, which makes a good comparison more difficult (I guess a 2-pass encode with all those settings would help a lot, but that's all for today for me: ;-) ) Short analysis of the results: lavc is very good to compress VERY fast and well, XviD seems a bit better for fast High quality encode, and x264 kicks ass when encoding for very high quality. On 7/20/05, Guillaume POIRIER <poirierg@gmail.com> wrote: [..]
* Very High Quality: lacv: vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:vme=5:naq:qns=2
3fps, 1886.141 kbit/s, PSNR: Y:50.05, Cb:51.94, Cr:52.51, All:50.66
XviD: chroma_opt:vhq=4:bvhq=1:quant_type=mpeg
12fps, 1748.798 kbit/s, Average PSNR y : 48.16 dB, u : 50.61 dB, v : 51.11 dB
x264: subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b
5fps, 1300.185 kbit/s, PSNR Mean Y:51.71 U:54.79 V:55.62 Avg:52.52 Global:50.80 ---------------------------------------------------------
* High quality: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo:psnr
13fps, 1968.337 kbit/s, PSNR: Y:50.18, Cb:52.06, Cr:52.62, All:50.79
XviD: vhq=2:bvhq=1:psnr:chroma_opt:quant_type=mpeg:psnr
18fps, 1790.227 kbit/s, Average PSNR y : 48.14 dB, u : 50.64 dB, v : 51.14 dB
x264: subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr
11fps, 1473.458 kbit/s, PSNR Mean Y:51.36 U:54.51 V:55.37 Avg:52.18 Global:50.59 --------------------------------------------------------
* Fast: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:turbo:psnr
34fps, 2043.167 kbit/s, PSNR: Y:49.89, Cb:52.04, Cr:52.57, All:50.56
XviD: turbo:vhq=0:psnr
28fps, 1898.784 kbit/s, Average PSNR y : 47.65 dB, u : 50.10 dB, v : 50.64 dB
x264: subq=4:bframes=2:b_pyramid:weight_b:psnr
15fps, 1554.404 kbit/s, PSNR Mean Y:51.37 U:54.37 V:55.21 Avg:52.14 Global:50.47 -----------------------------------------------------------
* Realtime: lavc: vcodec=mpeg4:mbd=2:turbo:psnr
49fps, 2018.563 kbit/s, PSNR: Y:49.09, Cb:51.50, Cr:52.12, All:49.82
XviD: turbo:nochroma_me:notrellis:max_bframes=0:vhq=0:psnr
38fps, 2436.407 kbit/s, Average PSNR y : 48.88 dB, u : 50.71 dB, v : 51.20 dB -- A legend is an old man with a cane known for what he used to do. I'm still doing it. -- Miles Davis
Hi, On 8/15/05, Guillaume POIRIER <poirierg@gmail.com> wrote:
Hi there,
I've had a little bit of time to test those settings and run a full benchmark of those settings on a 2000 frames sample.
I ran a constant quantiser encode to test the relative compressibility gain by each of the encode settings.
I guess those results would need a bit of "re-normalization" given that the PSNR are fairly different, which makes a good comparison more difficult (I guess a 2-pass encode with all those settings would help a lot, but that's all for today for me: ;-) )
Arf! Well, I did them anyway, adding Michael's Snow:
Short analysis of the results: lavc is very good to compress VERY fast and well, XviD seems a bit better for fast High quality encode, and x264 kicks ass when encoding for very high quality.
In two pass mode, in High Quality settings x264 kicks ass and takes names (PSNR-wise). Now, maybe a 'blind test" could give the "best open source codec" crown to one of the ASP codecs, or maybe Snow, as H.264 is advantaged by the inloop filter (at least, that's my undertanding). lavc is still the fastest and best codec when doing some fast/realtime encode, and XviD is both fast and of good quality for normal encode (note that 2-pass ratecontrol seems totally off by 10% in half of the encode, when x264 has the best ratecontrol around). Please discuss those results as I plan to add those "encoding profiles" to MEncoder XML docs.
On 7/20/05, Guillaume POIRIER <poirierg@gmail.com> wrote: [..]
* Very High Quality: lacv: vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:vme=5:naq:qns=2
3fps, 1886.141 kbit/s, PSNR: Y:50.05, Cb:51.94, Cr:52.51, All:50.66
XviD: chroma_opt:vhq=4:bvhq=1:quant_type=mpeg
12fps, 1748.798 kbit/s, Average PSNR y : 48.16 dB, u : 50.61 dB, v : 51.11 dB
x264: subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b
5fps, 1300.185 kbit/s, PSNR Mean Y:51.71 U:54.79 V:55.62 Avg:52.52 Global:50.80 ---------------------------------------------------------
* High quality: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo:psnr
13fps, 1968.337 kbit/s, PSNR: Y:50.18, Cb:52.06, Cr:52.62, All:50.79
XviD: vhq=2:bvhq=1:psnr:chroma_opt:quant_type=mpeg:psnr
18fps, 1790.227 kbit/s, Average PSNR y : 48.14 dB, u : 50.64 dB, v : 51.14 dB
x264: subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr
11fps, 1473.458 kbit/s, PSNR Mean Y:51.36 U:54.51 V:55.37 Avg:52.18 Global:50.59
--------------------------------------------------------
* Fast: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:turbo:psnr
34fps, 2043.167 kbit/s, PSNR: Y:49.89, Cb:52.04, Cr:52.57, All:50.56
XviD: turbo:vhq=0:psnr
28fps, 1898.784 kbit/s, Average PSNR y : 47.65 dB, u : 50.10 dB, v : 50.64 dB
x264: subq=4:bframes=2:b_pyramid:weight_b:psnr
15fps, 1554.404 kbit/s, PSNR Mean Y:51.37 U:54.37 V:55.21 Avg:52.14 Global:50.47
-----------------------------------------------------------
* Realtime: lavc: vcodec=mpeg4:mbd=2:turbo:psnr
49fps, 2018.563 kbit/s, PSNR: Y:49.09, Cb:51.50, Cr:52.12, All:49.82
XviD: turbo:nochroma_me:notrellis:max_bframes=0:vhq=0:psnr
38fps, 2436.407 kbit/s, Average PSNR y : 48.88 dB, u : 50.71 dB, v : 51.20 dB
Snow, constant quality: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 8fps 941.722 kbit/s, PSNR: Y:45.70, Cb:47.96, Cr:48.61, All:46.40 vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 8fps 931.956 kbit/s, PSNR: Y:45.77, Cb:47.91, Cr:48.55, All:46.45 Two pass encode: --------------------- All results are in decreasing level of the previously mentionned quality settings (Very High Quality, High quality, Fast, Realtime) The target bitrate was 900 kb/s Lavc 6fps 909.944 kbit/s PSNR: Y:45.28, Cb:47.61, Cr:48.48, All:46.02 15fps 908.248 kbit/s PSNR: Y:45.24, Cb:47.58, Cr:48.40, All:45.97 42fps 906.681 kbit/s PSNR: Y:44.43, Cb:47.32, Cr:48.20, All:45.28 54fps 905.553 kbit/s PSNR: Y:43.92, Cb:47.03, Cr:47.91, All:44.81 XviD 14fps 894.029 kbit/s, Average PSNR y : 44.80 dB, u : 47.72 dB, v : 48.41 dB 20fps 895.003 kbit/s, Average PSNR y : 44.66 dB, u : 47.68 dB, v : 48.41 dB 29fps 996.446 kbit/s, Average PSNR y : 44.19 dB, u : 46.95 dB, v : 47.63 dB 41fps 993.631 kbit/s, Average PSNR y : 43.67 dB, u : 45.88 dB, v : 46.58 dB x264 6fps 901.249 kbit/s, PSNR Mean Y:50.39 U:53.58 V:54.41 Avg:51.22 Global:48.84 13fps 901.408 kbit/s, PSNR Mean Y:49.53 U:52.89 V:53.75 Avg:50.39 Global:47.98 17fps 901.584 kbit/s, PSNR Mean Y:49.02 U:52.38 V:53.19 Avg:49.87 Global:47.36 (No realtime setting) Two pass: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 9fps 898.809 kbit/s, PSNR: Y:45.48, Cb:47.79, Cr:48.45, All:46.19 vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 9fps 898.991 kbit/s, PSNR: Y:45.41, Cb:47.72, Cr:48.36, All:46.12 -- A legend is an old man with a cane known for what he used to do. I'm still doing it. -- Miles Davis
Hi On Mon, Aug 15, 2005 at 10:11:21PM +0200, Guillaume POIRIER wrote: [...]
Short analysis of the results: lavc is very good to compress VERY fast and well, XviD seems a bit better for fast High quality encode, and x264 kicks ass when encoding for very high quality.
In two pass mode, in High Quality settings x264 kicks ass and takes names (PSNR-wise). Now, maybe a 'blind test" could give the "best open source codec" crown to one of the ASP codecs, or maybe Snow, as H.264 is advantaged by the inloop filter (at least, that's my undertanding).
lavc is still the fastest and best codec when doing some fast/realtime encode, and XviD is both fast and of good quality for normal encode (note that 2-pass ratecontrol seems totally off by 10% in half of the encode, when x264 has the best ratecontrol around).
Please discuss those results as I plan to add those "encoding profiles" to MEncoder XML docs.
i belive that x264 averages PSNR differently then lavc, i suggest you take a look at the source and hack either x264 or lavc in case they differ before comparing, allthough no doubt x264 will have better psnr then the mpeg4 codecs ... ahh, and no i didnt read the rest of the thread, just stumbed across this post PS: you could also try tinypsnr from ffmpeg cvs for comparing psnr to avoid any differences in the psnr calculation [...] -- Michael
Dirac and Snow I think are free of patents codecs also. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
On Sun, Aug 21, 2005 at 02:26:24AM -0700, Antonio wrote:
Dirac and Snow I think are free of patents codecs also.
Nonsense. Nothing is free of patents, not even a basic for loop... Rich
Rich Felker wrote:
On Sun, Aug 21, 2005 at 02:26:24AM -0700, Antonio wrote:
Dirac and Snow I think are free of patents codecs also.
Nonsense. Nothing is free of patents, not even a basic for loop...
Rich
Do you have the US patent number for that? Raphael
On Sun, Aug 21, 2005 at 03:49:22PM +0100, Raphael wrote:
Rich Felker wrote:
On Sun, Aug 21, 2005 at 02:26:24AM -0700, Antonio wrote:
Dirac and Snow I think are free of patents codecs also.
Nonsense. Nothing is free of patents, not even a basic for loop...
Rich
Do you have the US patent number for that?
Ask Michael. ;) Rich
Hi On Sun, Aug 21, 2005 at 12:44:10PM -0400, Rich Felker wrote:
On Sun, Aug 21, 2005 at 03:49:22PM +0100, Raphael wrote:
Rich Felker wrote:
On Sun, Aug 21, 2005 at 02:26:24AM -0700, Antonio wrote:
Dirac and Snow I think are free of patents codecs also.
Nonsense. Nothing is free of patents, not even a basic for loop...
Rich
Do you have the US patent number for that?
Ask Michael. ;)
cat /dev/random ;) but seriously, if a simple generic loop is patented and i wouldnt be terribly suprised if it is then such a patent would be invalid and wouldnt survive court assuming of course the one who is sued survives financially btw, maybe interresting: http://www.bbc.co.uk/rd/projects/dirac/documentation/faq.htm ---- Do the BBC have patents in Dirac? Yes. We have patent applications in train for some of the techniques involved in Dirac, and others that we intend to put into Dirac in the future. There has been some FUD about this, so we'll be clear: this does not affect the Open Source status of Dirac, nor does it affect its royalty-free status. The conditions of the MPL mean that we're licensing these patents for use within the Dirac software for free. Do you infringe any patents? The short answer is that we don't know for certain. We haven't employed armies of lawyers to trawl through the tens of thousands of video compression techniques. That's not the way to invent a successful algorithm. Instead we've tried to use techniques of long standing in novel ways. Where we think we're novel, we're in the process of getting patent protection ourselves, which will invalidate others' claims of priority. There are some areas that are more heavily patented than others. Arithmetic coding is one such, even though the technique itself has been around for 25 years. We're keeping an eye on the situation, and we'll adopt alternative techniques if we have to. ---- about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora [...] -- Michael
On Sun, Aug 21, 2005 at 09:20:48PM +0200, Michael Niedermayer wrote:
----
about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora
This is pure propaganda. One cannot grant any type of license, much less permenant/royalty-free/irrevocable, on patents held by third parties who are quite hostile to such things. :) Rich
Hi On Sun, Aug 21, 2005 at 07:45:52PM -0400, Rich Felker wrote:
On Sun, Aug 21, 2005 at 09:20:48PM +0200, Michael Niedermayer wrote:
----
about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora
This is pure propaganda. One cannot grant any type of license, much less permenant/royalty-free/irrevocable, on patents held by third parties who are quite hostile to such things. :)
well, why not fix the wiki then? [...] -- Michael
On Mon, Aug 22, 2005 at 02:08:13AM +0200, Michael Niedermayer wrote:
Hi
On Sun, Aug 21, 2005 at 07:45:52PM -0400, Rich Felker wrote:
On Sun, Aug 21, 2005 at 09:20:48PM +0200, Michael Niedermayer wrote:
----
about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora
This is pure propaganda. One cannot grant any type of license, much less permenant/royalty-free/irrevocable, on patents held by third parties who are quite hostile to such things. :)
well, why not fix the wiki then?
1, i don't have wikipedia account and don't feel like getting started on a new form of crack.. 2, i suspect correcting this misinformation will just bring huge flames. :( attacking xiph/theora is like attacking scientology... rich
Rich Felker wrote:
On Mon, Aug 22, 2005 at 02:08:13AM +0200, Michael Niedermayer wrote:
Hi
On Sun, Aug 21, 2005 at 07:45:52PM -0400, Rich Felker wrote:
On Sun, Aug 21, 2005 at 09:20:48PM +0200, Michael Niedermayer wrote:
----
about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora
This is pure propaganda. One cannot grant any type of license, much less permenant/royalty-free/irrevocable, on patents held by third parties who are quite hostile to such things. :)
well, why not fix the wiki then?
1, i don't have wikipedia account and don't feel like getting started on a new form of crack.. 2, i suspect correcting this misinformation will just bring huge flames. :( attacking xiph/theora is like attacking scientology...
rich
I am already regretting saying this but... who are the third parties in the case of VP3? Are these unnamed theoretical third parties or some specific group that On2 is in deniable about? Also, I am not sure a clear distinction is being made between patents that appear in the record (i.e. were accepted by the patent office) and patents that have any chance at all of standing up in court. There are plenty of patents on the books in the US that are clearly indefensible. Raphael
Hi On Mon, Aug 22, 2005 at 09:31:17AM +0100, Raphael wrote: [...]
about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora
This is pure propaganda. One cannot grant any type of license, much less permenant/royalty-free/irrevocable, on patents held by third parties who are quite hostile to such things. :)
well, why not fix the wiki then?
1, i don't have wikipedia account and don't feel like getting started on a new form of crack.. 2, i suspect correcting this misinformation will just bring huge flames. :( attacking xiph/theora is like attacking scientology... [...] I am already regretting saying this but... who are the third parties in the case of VP3? Are these unnamed theoretical third parties or some specific group that On2 is in deniable about? Also, I am not sure a
it is not our job to check theora against patents, even though i think the infamous vlc-rle coding patent with which jpeg was attacked might cover theora too ... and most important i dont claim that theora is covered by third party patents i just claim its likely covered and that noone can say its not many webpages about theora say its not patented which is simply a very missleading statement which gives theoras users a very false sense of safety, and this is morally very wrong, as the users should know about the risks instead of the theora: patent and royality free, mpeg: legally dangerous while in reality IMHO mpeg-1 is legally far less dangerous then theora as it has been used by many for many years and noone has been sued AFAIK furthermore mpeg-1 is a international standard and has a much cleaner internal design then theora
clear distinction is being made between patents that appear in the record (i.e. were accepted by the patent office) and patents that have any chance at all of standing up in court. There are plenty of patents on the books in the US that are clearly indefensible.
yes, there is a huge difference if you are a large company like microsoft if not well, it will be much cheaper to pay the requested license fees then going to court and getting the patent declared invalid, this is so by definition of being approached by the patent holder keep in mind the patent holder is very well aware of the validty of the patent and so he will not attack anyone who has any chance to win a patent lawsuit a small company with 3 products which all use the patented algorithm, the company wont survive a few years where it cant sell its products due to court orders and it probably cant pay court & lawyer costs for a patent lawsuit anyway, while OTOH paying 5$ for each sold copy isnt a problem [...] -- Michael
Michael Niedermayer wrote:
Hi
On Mon, Aug 22, 2005 at 09:31:17AM +0100, Raphael wrote: [...]
about theora, well lets try wikipedia: http://en.wikipedia.org/wiki/Theora ---- While VP3 is patented technology, On2 has irrevocably given royalty-free license of the VP3 patents to all of humanity, enabling the public to utilize Theora and other VP3-derived codecs for any imaginable purpose. ---- and yes vp3 == theora
This is pure propaganda. One cannot grant any type of license, much less permenant/royalty-free/irrevocable, on patents held by third parties who are quite hostile to such things. :)
well, why not fix the wiki then?
1, i don't have wikipedia account and don't feel like getting started on a new form of crack.. 2, i suspect correcting this misinformation will just bring huge flames. :( attacking xiph/theora is like attacking scientology...
[...]
I am already regretting saying this but... who are the third parties in the case of VP3? Are these unnamed theoretical third parties or some specific group that On2 is in deniable about? Also, I am not sure a
it is not our job to check theora against patents,
Well, you did make a quite a strong claim about patents and theora so it is reasonable to ask for the basis of the claim.
even though i think the infamous vlc-rle coding patent with which jpeg was attacked might cover theora too ...
Interesting. That patent runs out in October 2006 I believe but of course there may be others.
and most important i dont claim that theora is covered by third party patents i just claim its likely covered
[..] Right. Unnamed theoretical third parties.
clear distinction is being made between patents that appear in the record (i.e. were accepted by the patent office) and patents that have any chance at all of standing up in court. There are plenty of patents on the books in the US that are clearly indefensible.
yes, there is a huge difference if you are a large company like microsoft
[...] The point is basically that the patent status of an invention or idea can never truely be known in the US and only those with big pockets can afford to play to risky game of innovation due to the outrageous costs associated with defending any action. Even if you win you need to have survived long enough to claim your winnings. We are in 100 percent agreement. Move country... :) Raphael P.S. Can you buy patent infringement insurance yet?
On Mon, Aug 22, 2005 at 10:41:53AM +0100, Raphael wrote:
1, i don't have wikipedia account and don't feel like getting started on a new form of crack.. 2, i suspect correcting this misinformation will just bring huge flames. :( attacking xiph/theora is like attacking scientology...
[...]
Fix your mailer. Deleting all these blank >>>> lines is getting old.. It triples the number of blank reply lines every time you reply..
I am already regretting saying this but... who are the third parties in the case of VP3? Are these unnamed theoretical third parties or some specific group that On2 is in deniable about? Also, I am not sure a
it is not our job to check theora against patents,
Well, you did make a quite a strong claim about patents and theora so it is reasonable to ask for the basis of the claim.
Michael is not me. I made the strong claim. Just look at any list of the MPEG1/2 patents. Almost all of them apply to VP3/Theora too.
even though i think the infamous vlc-rle coding patent with which jpeg was attacked might cover theora too ...
Interesting. That patent runs out in October 2006 I believe but of course there may be others.
Why not look and see?
and most important i dont claim that theora is covered by third party patents i just claim its likely covered
Right. Unnamed theoretical third parties.
You can look them up through MPEG-LA. I don't care about the names. They're all hostile.
P.S. Can you buy patent infringement insurance yet?
No, but apparently you could buy linux "copyright infringement insurance" (re: SCO) from Redhat... :( Rich
On Mon, Aug 22, 2005 at 11:07:52AM -0400, Rich Felker wrote:
Fix your mailer. Deleting all these blank >>>> lines is getting old.. It triples the number of blank reply lines every time you reply..
Nico's mailer also does this I think? It drives me mad. :/
No, but apparently you could buy linux "copyright infringement insurance" (re: SCO) from Redhat... :(
LOL, is that serious??.. BTW, in the history of all open source, how much damage has actually been ever done over software patents? TBH I've NEVER heard of a single software patent lawsuit.. I know something happened with GNU regarding GIF, but I don't even know if that was ever taken to court or settled without lawyers... Quite a damn lot of open source people seem to be "scared" by some huge potential threat that has just about shown a track record of doing absoloutely nothing... - ods15
Hi On Mon, Aug 15, 2005 at 10:11:21PM +0200, Guillaume POIRIER wrote: [...]
Snow, constant quality: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 8fps 941.722 kbit/s, PSNR: Y:45.70, Cb:47.96, Cr:48.61, All:46.40 vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 8fps 931.956 kbit/s, PSNR: Y:45.77, Cb:47.91, Cr:48.55, All:46.45 [...] Two pass: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 9fps 898.809 kbit/s, PSNR: Y:45.48, Cb:47.79, Cr:48.45, All:46.19
vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 9fps 898.991 kbit/s, PSNR: Y:45.41, Cb:47.72, Cr:48.36, All:46.12
hmmm vqscale=2 on 2 pass and vqcomp together with vqscale? why pred=1 ? why no mbcmp=1 ? [...] -- Michael
Hi, On 8/19/05, Michael Niedermayer <michaelni@gmx.at> wrote:
Hi
On Mon, Aug 15, 2005 at 10:11:21PM +0200, Guillaume POIRIER wrote: [...]
Snow, constant quality: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 8fps 941.722 kbit/s, PSNR: Y:45.70, Cb:47.96, Cr:48.61, All:46.40 vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 8fps 931.956 kbit/s, PSNR: Y:45.77, Cb:47.91, Cr:48.55, All:46.45 [...] Two pass: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 9fps 898.809 kbit/s, PSNR: Y:45.48, Cb:47.79, Cr:48.45, All:46.19
vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 9fps 898.991 kbit/s, PSNR: Y:45.41, Cb:47.72, Cr:48.36, All:46.12
hmmm vqscale=2 on 2 pass and vqcomp together with vqscale?
I used on vqscale=2 on pass 1, and vbitrate=900 on pass 2 I should have mentioned it indeed.
why pred=1 ?
Right, this is a bad idea: according to DOCS/tech/snow.txt : * pred=<0-2> Wavelet type. 0 (9/7 wavelet), 1 (5/3 wavelet), 2 (13/7 wavelet). 9/7 is probably better for for lossy coding, and 5/3 for lossless. NOTE: 9/7 wavelet doesn't work with lossless mode. so it should be pred=0 here
why no mbcmp=1 ?
No reason at all. Thanks a lot Michael for having a look at my tests, I'll redo them when I have more time. Guillaume -- Live fast, die old, and make very sure everyone knows you were there. -- Alan Cox
On Mon, Aug 15, 2005 at 10:11:21PM +0200, Guillaume POIRIER wrote:
Snow, constant quality: vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2 8fps 941.722 kbit/s, PSNR: Y:45.70, Cb:47.96, Cr:48.61, All:46.40 vqscale=2:vcodec=snow:cmp=1:subcmp=1:vqcomp=0.6:pred=1:psnr:vstrict=-2:qpel 8fps 931.956 kbit/s, PSNR: Y:45.77, Cb:47.91, Cr:48.55, All:46.45
qscale=2 is rather low quality for snow... Rich
Hi, On 8/15/05, Guillaume POIRIER <poirierg@gmail.com> wrote: [..]
Please discuss those results as I plan to add those "encoding profiles" to MEncoder XML docs.
Done. -- Reading doesn't hurt, really! -- Dominik 'Rathann' Mierzejewski
On Tue, Jul 19, 2005 at 04:28:58PM -0700, Corey Hickey wrote:
predia=2:dia=2:preme=2:vme=5:naq
All these individually gave slightly higher PSNR on my test clip, and didn't seem to make a visual difference.
vme=5 is experimental and currently same as the default of 4. why are you including it? also naq does nothing unless you're using adaptive quantization..
qns=2
Qns lowers PSNR slightly but ends up dramatically reducing the amount of ringing artifacts around sharp borders. This makes a large difference when bitrate is low enough that ringing would normally be there, but little difference when bitrate is already high enough to alleviate the ringing. There doesn't seem to be any adverse effect to using it when it's not needed, though. http://article.gmane.org/gmane.comp.video.mplayer.user/26054/ http://article.gmane.org/gmane.comp.video.mplayer.user/26148/
..but maybe qns counts as adaptive quant. rich
Rich Felker wrote:
vme=5 is experimental and currently same as the default of 4. why are you including it?
At the time I did my tests (a couple years ago) the manpage didn't mention vme=5 being the same as vme=4. Digging into my old database, I see that vme=5 indeed didn't alter the PSNR. At the time I decided to include it because it seemed to be speeding up the encode slightly - all three tests using vme=5 were faster than the default. Apparently that was just a coincidence and the variation was within the range of experimental error. So, Guillame, go ahead and remove vme=5.
also naq does nothing unless you're using adaptive quantization..
Hmmm.... Looks like I need to re-read the manpage more often. I tested naq a long time ago when I was using the mask options you used to recommend and the manpage was more terse; I had no idea what adaptive quantization was and I kept using naq even when it was no longer needed.
..but maybe qns counts as adaptive quant.
No, it doesn't seem to. The outputs of -vo md5sum on qns=2 encodes with and without naq are identical. Guillame, you can remove naq as well. -Corey
On Tue, 19 Jul 2005 12:03:02 +0200 Guillaume POIRIER <poirierg@gmail.com> wrote:
* High quality: lavc: vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1: vmax_b_frames=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo
I would suggest 2 bframes, and set vb_strategy=1 for the first pass (it will print an error and exit right *after* it deletes your log file, when pass=3)
* Realtime: lavc: vcodec=mpeg4:mbd=2:turbo
turbo sets mbd=0
I'd like to add some encoding settings examples in our HTML documentation. Those settings off course highly depend on personal preferences, so highlighting a certain encoding setting as "very high quality", "high quality", "fast", and "realtime" won't probably make everyone happy, but I guess it'll still be better than having nothing.
I would suggest adding autoaspect to all (or at least some high quality) settings, adding hq_ac to very high quality XviD and, maybe, adding some video filters options. They are probably highly dependent on the source material but the encoding options are too and it is also still better than nothing. For example, more denoising for fast encoding (=low quality) and less for high quality encoding. In addition, the psnr option in the high quality xvid might be taken out, maybe it is just a left over from your tests. JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
On Wed, 20 Jul 2005 11:10:03 +0200 jiho <jo.irisson@gmail.com> wrote:
For example, more denoising for fast encoding (=low quality) and less for high quality encoding. In addition, the psnr option in the high quality xvid might be taken out, maybe it is just a left over from your tests.
You must not know about the lavcopt "nr" yet...
For example, more denoising for fast encoding (=low quality) and less for high quality encoding. In addition, the psnr option in the high quality xvid might be taken out, maybe it is just a left over from your tests.
You must not know about the lavcopt "nr" yet...
indeed I wasn't aware of it. then what is the difference with video filters such as hqdn3d and lavcopt nr? JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
On Thu, 21 Jul 2005 09:56:16 +0200 jiho <jo.irisson@gmail.com> wrote:
indeed I wasn't aware of it. then what is the difference with video filters such as hqdn3d and lavcopt nr?
They are entirely different. Practically no similarities at all. nr requires nominal CPU time. It removes temporal noise without causing worms when objects move. It does not strip away fine details. It does not blur the picture. It does not damage or blur colors. etc. nr does cause some blockiness if you use values that are too high for the video, but far less than hqdn3d in any event. For values up to about 600, it improves PSNR significantly. nr=400 seems to be the best all-around value for most content, both visually and PSNR.
Le 22 juil. 05, à 23:48, RC a écrit :
On Thu, 21 Jul 2005 09:56:16 +0200 jiho <jo.irisson@gmail.com> wrote:
indeed I wasn't aware of it. then what is the difference with video filters such as hqdn3d and lavcopt nr?
They are entirely different. Practically no similarities at all.
nr requires nominal CPU time. It removes temporal noise without causing worms when objects move. It does not strip away fine details. It does not blur the picture. It does not damage or blur colors. etc.
nr does cause some blockiness if you use values that are too high for the video, but far less than hqdn3d in any event. For values up to about 600, it improves PSNR significantly. nr=400 seems to be the best all-around value for most content, both visually and PSNR.
ok, it's just better in every aspect then! thank you for the tip. (it seems that everytime I come with a "good enough" encoding method new options/settings come out so that I have to rethink everything ;-) ) JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
Hi, On 7/25/05, jiho <jo.irisson@gmail.com> wrote:
Le 22 juil. 05, à 23:48, RC a écrit :
On Thu, 21 Jul 2005 09:56:16 +0200 jiho <jo.irisson@gmail.com> wrote:
indeed I wasn't aware of it. then what is the difference with video filters such as hqdn3d and lavcopt nr?
They are entirely different. Practically no similarities at all.
nr requires nominal CPU time. It removes temporal noise without causing worms when objects move. It does not strip away fine details. It does not blur the picture. It does not damage or blur colors. etc.
nr does cause some blockiness if you use values that are too high for the video, but far less than hqdn3d in any event. For values up to about 600, it improves PSNR significantly. nr=400 seems to be the best all-around value for most content, both visually and PSNR.
ok, it's just better in every aspect then! thank you for the tip. (it seems that everytime I come with a "good enough" encoding method new options/settings come out so that I have to rethink everything ;-) )
Everything is available on the man page for a loonnng time now. There has not been any recent significant encoding options addition to lavc. The ones that are safe to play with are the one I used on those 4 profiles and the ones listed in greater detail here: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html#menc-feat-dvd-... Guillaume -- I feel sorry for people who don't drink. When they wake up in the morning, that's as good as they're going to feel all day. -- Frank Sinatra
Le 25 juil. 05, à 17:59, Guillaume POIRIER a écrit :
ok, it's just better in every aspect then! thank you for the tip. (it seems that everytime I come with a "good enough" encoding method new options/settings come out so that I have to rethink everything ;-) )
Everything is available on the man page for a loonnng time now. There has not been any recent significant encoding options addition to lavc. The ones that are safe to play with are the one I used on those 4 profiles and the ones listed in greater detail here: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html#menc- feat-dvd-mpeg4-lavc-encoding-options
ok, my mistake then. It seems to me that this "nr" option was not mentionned before in the "making a high quality rip... " section of the documentation: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html and video filtering was surely done with hqdn3d in all the mencoder tutorials I found googling a little while ago. that's why I thought it was new. I'm glad to be aware of it now and hope it will "propagate" from mencoder documention quickly ;-) JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
participants (12)
-
Antonio -
Corey Hickey -
Guillaume POIRIER -
Jan Knutar -
jiho -
Michael Niedermayer -
Oded Shimon -
Pete Davis -
Raphael -
RC -
Reimar Döffinger -
Rich Felker