[Cin] our ffv1.mkv profile

Terje J. Hanssen terjejhanssen at gmail.com
Sun Dec 26 03:01:46 CET 2021



Den 25.12.2021 17:35, skrev Andrew Randrianasulu via Cin:
> seems to miss level=3 setting
>
> $ cat bin/ffmpeg/video/ffv1.avi
> avi ffv1
> $ cat bin/ffmpeg/video/ffv1.mkv
> matroska ffv1
> threads=8
> context=1
> slices=30
> $ cat bin/ffmpeg/video/ffv1.mov
> mov ffv1
> #coder=0
> context=1
> g=1
> level=3
> threads=16
> slices=16
> slicecrc=1
> #pass=2
> $
>
> not sure if we should modify our avi/mkv profikes or add new (may be 
> with _v3 name) ones?
>

Without own experience yet, I would ask if there any reason to not use 
the latest and more feature rich FFV1 level=version 3? Backward 
compitibility, typical can v. 3 uncompress v. 1 compressed archives?

I conclude that a couple of referense papers on the web say and use 
level 3 in their profile/presets:

1) Video into Matroska/FFV1
https://avpres.net/FFmpeg/im_FFV1.html

We advise to use only the version 3 of FFV1 in production, because the 
version 1 is deprecated, the version 2 has never really existed, and the 
version 4 is currently under development.


Transcode a video file using the FFV1 codec into the Matroska container 
for preservation purposes.
Solution

     ffmpeg \
         -i input_file \
         -c:v ffv1 \
         -level 3 \
         -coder 1 \
         -context 1 \
         -g 1 \
         -slices 24 \
         -slicecrc 1 \
         -c:a copy \
         output_file.mkv

2) Presets for FFV1 and MKV: Choosing the right parameters for the job 
(ffv1_params.pdf)
https://docs.google.com/viewer?url=https%3A%2F%2Fmediaarea.net%2FEvents%2F2019-12-05_NoTimeToWait4%2F03.%2520Peter%2520B.%2520-%2520Presets%2520for%2520FFV1%2520and%2520MKV%2C%2520Choosing%2520the%2520right%2520parameters%2520for%2520the%2520job%2Fffv1_params.pdf&pdf=true

Level = FFV1 version
page 9 (of 30)

     0
     1 (Default)
     3 (Recommended)


FFmpeg recipe (PAL)
page 27 (of 30)

ffmpeg -i VIDEO_IN \
     -c:v ffv1 -level 3 -coder 1 -context 0 -slices 24 -slicecrc 1 \
     -color_primaries bt470bg \
     -color_trc bt709 \
     -colorspace bt470bg \
     -color_range mpeg \
     -map 0 \
     -top 1 \
     -c:a copy \
     -g 1 -pix_fmt + \
     VIDEO_OUT.mkv













More information about the Cin mailing list