From c6215c1953deb9b39450c62c24e074643432b966 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sun, 24 Mar 2019 11:25:02 +0100 Subject: [PATCH] use always lowercase for hex --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 6d70d16..91194d7 100644 --- a/index.html +++ b/index.html @@ -427,7 +427,7 @@
output file
path, name and extension of the output file

The libx265 encoding library defaults to a ‘medium’ preset for compression quality and a CRF of 28. CRF stands for ‘constant rate factor’ and determines the quality and file size of the resulting H.265 video. The CRF scale ranges from 0 (best quality [lossless]; largest file size) to 51 (worst quality; smallest file size).

-

A CRF of 28 for H.265 can be considered a medium setting, corresponding to a CRF of 23 in encoding H.264, but should result in about half the file size.

+

A CRF of 28 for H.265 can be considered a medium setting, corresponding to a CRF of 23 in encoding H.264, but should result in about half the file size.

To create a higher quality file, you can add these presets:

ffmpeg -i input_file -c:v libx265 -pix_fmt yuv420p -preset veryslow -crf 18 -c:a copy output_file

@@ -2243,7 +2243,7 @@

Conway's Game of Life

Simulates Conway's Game of Life

-

ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800

+

ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#c83232:life_color=#00ff00,scale=1200:800

ffplay
starts the command
-f lavfi
tells ffplay to use the Libavfilter input virtual device
@@ -2251,13 +2251,13 @@
:
indicates there’s another parameter coming
mold=10:r=60:ratio=0.1
sets up the rules of the game: cell mold speed, video rate, and random fill ratio
:
indicates there’s another parameter coming
-
death_color=#C83232:life_color=#00ff00
specifies color for cell death and cell life; mold_color can also be set
+
death_color=#c83232:life_color=#00ff00
specifies color for cell death and cell life; mold_color can also be set
,
comma signifies closing of video source assertion and ready for filter assertion
scale=1200:800
scale to 1280 width and 800 height
GIF of above command

To save a portion of the stream instead of playing it back infinitely, use the following command:

-

ffmpeg -f lavfi -i life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800 -t 5 output_file

+

ffmpeg -f lavfi -i life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#c83232:life_color=#00ff00,scale=1200:800 -t 5 output_file