Hello,

I use ffmpeg 8.0, lib x265 to compress videos.

The coomand :

#!/bin/sh
for f in *.ts; do ffmpeg -y -i "$f" -vcodec libx265 -crf 19 -preset slow -vf yadif,nlmeans="1.4:7:5:3:3" -c:a copy "$(basename "$f" .ts).mkv";done

It is an interlaced video, therefore yadif, nlmeans to reduce filesize.

But the result is all ways not as expected. I did check it with vivictpp (subective tool to compare two videos (same source) at a screen and libvmaf to get the respective score :

Different crf values used, but without an significant improvement.

source file target file   vmaf  crf vivictpp (checked source against target
size (MB)   size (MB)  at one screen)
251,6       121,6            VMAF score: 93.913822  19  visible less unsharp
251,6       135,2           VMAF score: 94.189536  18  visible less unsharp
251,6       150,6           VMAF score: 94.433205  17  visible less unsharp
251,6       167,7           VMAF score: 94.648169  16  visible less unsharp
251,6       208,6          VMAF score: 95.011963  14  visible less unsharp
251,6       259,6          VMAF score: 95.011963  12  visible less unsharp

the movie

source :

Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, start 0.044000
    Side data:
      cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A

target :

Stream #0:0: Video: hevc (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn
    Metadata:
      ENCODER         : Lavc62.11.100 libx265

Any idea how to improve the results ?

Richard

_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to