Skip to content

Commit

Permalink
Demo cmd fixes (#63)
Browse files Browse the repository at this point in the history
* Minor fixing for DNX HD.

Signed-off-by: [email protected] <[email protected]>

* Example command fixes.

Signed-off-by: [email protected] <[email protected]>

---------

Signed-off-by: [email protected] <[email protected]>
Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
richardssam and SamRichardsDisney authored Nov 7, 2023
1 parent 10cf350 commit 7b0429a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions EncodeAv1.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ comparisontest:
-->
```
ffmpeg -r 24 -start_number 1 -i inputfile.%04d.png -frames:v 200 -c:v libsvtav1 \
-pix_fmt yuv420p10le -crf 18 -preset 9 -sws_flags spline+accurate_rnd+full_chroma_int \
-pix_fmt yuv420p10le -crf 18 -preset 9 -svtav1-params tune=0 -sws_flags spline+accurate_rnd+full_chroma_int \
-vf "scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709" \
-color_range 1 -colorspace 1 -color_primaries 1 -color_trc 2 -svtav1-params tune=0 \
-color_range tv -colorspace bt709 -color_primaries bt709 -color_trc iec61966-2-1\
-y outputfile.mp4
```

Expand Down
6 changes: 3 additions & 3 deletions EncodeDNXHD.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ comparisontest:
```
ffmpeg -y -r 24 -start_number 2500 -i inputfile.%04d.png -vframes 100 \
-sws_flags spline+accurate_rnd+full_chroma_int \
-vf "in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709" \
-vf "scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709" \
-pix_fmt yuv422p -c:v dnxhd -profile:v dnxhr_sq \
-metadata project="MY PROJECT" \
-metadata material_package_name="MY CLIP" -timecode 01:00:20:00 \
Expand Down Expand Up @@ -138,7 +138,7 @@ comparisontest:
```
ffmpeg -y -r 24 -i inputfile.%04d.png -vframes 100 -pix_fmt yuv422p \
-sws_flags spline+accurate_rnd+full_chroma_int \
-vf "in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709"
-vf "scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709"
-pix_fmt yuv422p -c:v dnxhd -profile:v dnxhr_sq \
-metadata project="MY PROJECT" \
-metadata material_package_name="MY CLIP" -timecode 01:00:20:00 \
Expand All @@ -163,7 +163,7 @@ A simple example of this is to convert all your clips to raw dnxhd files, e.g.:
```
ffmpeg -y -i <INPUTFILE> -pix_fmt yuv422p \
-sws_flags spline+accurate_rnd+full_chroma_int \
-vf "in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709" \
-vf "scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709" \
-pix_fmt yuv422p \
-c:v dnxhd -profile:v dnxhr_sq \
-metadata project="MY PROJECT" \
Expand Down
6 changes: 1 addition & 5 deletions EncodeMJPEG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ sources:
- sourceimages/chip-chart-1080-16bit-noicc.png.yml
comparisontest:
- testtype: idiff
compare_image: ../sourceimages/chip-chart-1080-16bit-noicc-yuv444p10le.png
- testtype: assertresults
tests:
- assert: less
Expand All @@ -36,10 +35,7 @@ comparisontest:
-->
```
ffmpeg -r 24 -start_number 1 -i inputfile.%04d.png -frames:v 200 \
-c:v mjpeg -crf 18 -pix_fmt rgb24 -vf "scale=in_range=full:out_range=full" -color_primaries bt709 -color_range pc -color_trc bt709 -colorspace rgb -qscale:v 3 -y "/Users/sam/git/EncodingGuidelines/enctests/rgb-encode/chimera_cars_srgb.-test_rgb-8bit_mjpeg.mp4"
ffmpeg command: ffmpeg -start_number 2500 -i inputfile.%04d.png -vframes 200 \
-c:v mjpeg -qscale:v 4 -pix_fmt yuv444p \
-color_range pc -colorspace bt709 -color_primaries bt709 -color_trc iec61966-2-1 outputfile.mov
-c:v mjpeg -qscale:v 4 outputfile.mov
```

Expand Down
5 changes: 3 additions & 2 deletions EncodeVP9.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ comparisontest:
-->
```
ffmpeg -r 24 -start_number 1 -i inputfile.%04d.png -frames:v 200 -c:v libvpx-vp9 \
-pix_fmt yuv420p10le -crf 22 -speed 2 -row-mt 1 -sws_flags spline+accurate_rnd+full_chroma_int \
-pix_fmt yuv420p10le -crf 22 -speed 2 -row-mt 1 -quality good -b:v 0\
-sws_flags spline+accurate_rnd+full_chroma_int \
-vf "scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709" \
-color_range 1 -colorspace 1 -color_primaries 1 -color_trc 2 -quality good -b:v 0 \
-color_range tv -colorspace bt709 -color_primaries bt709 -color_trc iec61966-2-1 \
-y outputfile.mp4
```

Expand Down

0 comments on commit 7b0429a

Please sign in to comment.