244 karma · joined June 21, 2012
What arguments can be added to FFmpeg AV1 encoding command to improve the result for browsers?
Was this dynamic optimizer framework from Netflix released already to be used in web video encoding for webpages?
I put a description for every arguments used by me in FFmpeg commands.
https://evilmartians.com/chronicles/better-web-video-with-av...
Is it not enough?
AV1 is just a very new codec. You can use it in the Web for Chrome and Firefox. But it is too early to use for downloadable video files. For video files you need a OS support. Microsoft has it only in Beta. Android will support it in Q. Linux supports AV1 already.
I think in next year we will see more and more AV1 everywhere, including pirate torrent trackers.
AV1.1 players will support AV1.
However, next-gen fast AV1 decoder (a thing which will play video), dav1d is not Rust-based.
On desktop hardware support is not critical.
This is why main reason to use PostCSS is to have non-preprocessors tools:
1. Autoprefixer.
2. Stylelint. Like ESLint, but for CSS. It will automatically find a mistakes in your CSS.
3. postcss-inline-svg, changes a SVG color when you insert it with base64.
4. CSS Modules, automatically isolate your CSS components (like auto-BEM, but with better isolation).
5. postcss-cssnext, if you are fan of CSS Custom Properties and want to use them right now (for some simple cases, of course there is no dynamic Custom Properties).
* postcss-cssnext, preset of CSS drafts polyfills. It is not 100% preprocessor, but because of CSS custom properties and CSS nested polyfill it could do preprocessor work. * PreCSS, preset of PostCSS plugins with Sass-like features.
I use PreCSS. It is more simple preprocessor. It has no some Sass features by design, to keep your code clean of code.
Using PreCSS doesn’t give me some addition features, just same old $style variables, nesting, mixins.
The reason why I use PreCSS — performance and compatibility. If you use Autoprefixer or Stylelint, you already have PostCSS in your build processor. In this case, why you should use other parser? PreCSS will share parsing with Autoprefixer, Stylelint and other PostCSS tools.
PostCSS will parse CSS only once and all that plugins will work on top of same AST. As result build process will be simpler and faster.
So using PostCSS != not using Sass. You could use Sass for processors, but still using PostCSS for other CSS tools types — for Autoprefixer, Stylelint, cssnano.
Unfortunately, Sass is not so flexible as JS. Even simple things require a lot of code. And a lot of task is just impossible on Sass (for example, Autoprefixer, RTLCSS).