User Tools

Site Tools


doc:appunti:linux:video:ffmpeg_final_rendering

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:video:ffmpeg_final_rendering [2026/11/20 10:25] – [Encoding for High Definition Video] niccolodoc:appunti:linux:video:ffmpeg_final_rendering [2026/11/20 10:28] (current) – [Pixel format considerations] niccolo
Line 66: Line 66:
     -i full32bit-veryslow-crf18-fullcolor.mkv \     -i full32bit-veryslow-crf18-fullcolor.mkv \
     -metadata title="$TITLE" -metadata:s:v:0 title="$TITLE" \     -metadata title="$TITLE" -metadata:s:v:0 title="$TITLE" \
-    -vcodec 'libx264' -pix_fmt 'yuvj420p' -preset 'veryslow' -tune 'film' \+    -vcodec 'libx264' -pix_fmt 'yuv420p' -color_range 'pc' -preset 'veryslow' -tune 'film' \
     -profile:v 'high' -level:v 4.1 \     -profile:v 'high' -level:v 4.1 \
     -b:v 6M -maxrate:v 9M -bufsize:v 18M \     -b:v 6M -maxrate:v 9M -bufsize:v 18M \
Line 77: Line 77:
     -i full32bit-veryslow-crf18-fullcolor.mkv \     -i full32bit-veryslow-crf18-fullcolor.mkv \
     -metadata title="$TITLE" -metadata:s:v:0 title="$TITLE" \     -metadata title="$TITLE" -metadata:s:v:0 title="$TITLE" \
-    -vcodec 'libx264' -pix_fmt 'yuvj420p' -preset 'veryslow' -tune 'film' \+    -vcodec 'libx264' -pix_fmt 'yuv420p' -color_range 'pc' -preset 'veryslow' -tune 'film' \
     -profile:v 'high' -level:v 4.1 \     -profile:v 'high' -level:v 4.1 \
     -b:v 6M -maxrate:v 9M -bufsize:v 18M \     -b:v 6M -maxrate:v 9M -bufsize:v 18M \
Line 90: Line 90:
 =====  Pixel format considerations ===== =====  Pixel format considerations =====
  
-We used the **yuvj420p pixel format**. What does it means?+We use the **yuv420p pixel format** with **full color range** (also called //pc color range//). What does it means?
  
-First of all consider the **420** code; this means tat for each matrix of 4x2 pixels the stream encode all the values for the luminance, only 2 values for the chrominance on the X axis and zero values for the chrominance on the Y axis. This figure explains clearly the 4:4:4, 4:2:2 and 4:2:0 subsampling methods:+First of all consider the **420** code; this means that for each matrix of 4x2 pixels the stream encode all the values for the luminance, only 2 values for the chrominance on the X axis and zero values for the chrominance on the Y axis. This figure explains clearly the 4:4:4, 4:2:2 and 4:2:0 subsampling methods:
  
 {{subsampling.png?400|Chroma Subsampling}} {{subsampling.png?400|Chroma Subsampling}}
doc/appunti/linux/video/ffmpeg_final_rendering.1795166720.txt.gz · Last modified: by niccolo