Opened 4 months ago

Last modified 4 months ago

#11155 new task

Clarification on x264 "deblock" of lossless, and x265 comparison

Reported by: MasterQuestionable Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: libx264 documentation
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description


Attachments (2)

mediainfo.diff.webp (73.9 KB ) - added by MasterQuestionable 4 months ago.
͏    From: https://forum.doom9.net/showthread.php?t=176252#post1870786 [[Image(...)]]
cmdlog.txt (30.0 KB ) - added by MasterQuestionable 4 months ago.
͏    See also: https://forum.doom9.net/showthread.php?t=176252&page=2#post1871585 ͏    -x265-params "lossless=1:keyint=15:no-deblock=1:no-sao=1" "x265.mkv" (254,612 KB) ͏    -x265-params "lossless=1:keyint=15:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_no-strong-intra-smoothing.mkv" (254,614 KB) ͏    -x265-params "lossless=1:keyint=15:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_X.mkv" (254,535 KB) ͏    -qp 0 -x264-params "keyint=15:no-deblock=1" "x264.mkv" (249,922 KB) ͏    -qp 0 -x264-params "keyint=15:no-deblock=1:weightp=0" "x264_weightp=0.mkv" (250,526 KB) ͏    -x265-params "lossless=1:keyint=15:bframes=0:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_XX.mkv" (277,259 KB) ͏    -x265-params "lossless=1:keyint=15:bframes=0:b-adapt=0:no-weightb=1:no-b-intra=1:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_XXrev.mkv" (277,276 KB) ͏    -x265-params "lossless=1:keyint=15:no-cutree=1:psy-rd=0:rdoq-level=0:bframes=0:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_XXFinal.mkv" (277,266 KB) ͏    -x265-params "qp=0:lossless=1:keyint=15:bframes=0:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_Finale.mkv" (277,259 KB) ͏    -x265-params "lossless=1:keyint=15:bframes=16:ref=16:me=4:subme=7:no-deblock=1:no-sao=1" "x265_FinaleX.mkv" (254,211 KB) ͏    -x265-params "allow-non-conformance=1:lossless=1:keyint=15:bframes=16:ref=16:me=4:no-deblock=1:no-sao=1" "x265_FinaleFinal.mkv" (254,335 KB)

Download all attachments as: .zip

Change History (5)

comment:1 by MasterQuestionable, 4 months ago

͏    https://www.google.com/search?hl=en&gl=ca&num=10&q=x264+lossless|%22qp+0%22+%22no-deblock%22
͏    https://forum.doom9.net/showthread.php?t=176252
͏    https://stackoverflow.com/questions/69755864#77176160

͏    Why should "deblock" even matter for lossless..?
͏    Not even to mention various H.265 bizarreries...

͏    Experimented with below sample:
͏    ffmpeg -y -v trace -hide_banner -nostdin -nostats -ignore_editlist 1 -i "trembling_text_input.mp4" -pix_fmt yuv444p -sws_flags spline+accurate_rnd+full_chroma_int -c:v libx264 -preset placebo -qp 0 -x264-params "keyint=infinite:no-deblock=1" -flags +bitexact -fflags +bitexact -map_metadata -1 -map_chapters -1 -cues_to_front 1 -write_crc32 0 -default_mode 0 "yuv444p.mkv"

͏    Mostly no output difference.
͏    The only difference would be the written in-file encoding settings: "deblock=0:0:0"...
͏    Which is just sort of metadata, much unused.
͏    See also: https://github.com/richtr/NoSleep.js/issues/157#issuecomment-1529156077

͏    Maybe then x264 had bugs with it? Considering x265's...


͏    "trembling_text_input.mp4":
͏    https://trac.ffmpeg.org/raw-attachment/ticket/11149/trembling_text_input.mp4
͏    (~ 525.49 KiB)

Last edited 4 months ago by MasterQuestionable (previous) (diff)

by MasterQuestionable, 4 months ago

Attachment: cmdlog.txt added

͏    See also: https://forum.doom9.net/showthread.php?t=176252&page=2#post1871585

͏    -x265-params "lossless=1:keyint=15:no-deblock=1:no-sao=1" "x265.mkv" (254,612 KB)
͏    -x265-params "lossless=1:keyint=15:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_no-strong-intra-smoothing.mkv" (254,614 KB)
͏    -x265-params "lossless=1:keyint=15:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_X.mkv" (254,535 KB)
͏    -qp 0 -x264-params "keyint=15:no-deblock=1" "x264.mkv" (249,922 KB)
͏    -qp 0 -x264-params "keyint=15:no-deblock=1:weightp=0" "x264_weightp=0.mkv" (250,526 KB)
͏    -x265-params "lossless=1:keyint=15:bframes=0:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_XX.mkv" (277,259 KB)
͏    -x265-params "lossless=1:keyint=15:bframes=0:b-adapt=0:no-weightb=1:no-b-intra=1:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_XXrev.mkv" (277,276 KB)
͏    -x265-params "lossless=1:keyint=15:no-cutree=1:psy-rd=0:rdoq-level=0:bframes=0:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_XXFinal.mkv" (277,266 KB)
͏    -x265-params "qp=0:lossless=1:keyint=15:bframes=0:ref=8:me=4:subme=7:no-deblock=1:no-sao=1:no-strong-intra-smoothing=1" "x265_Finale.mkv" (277,259 KB)
͏    -x265-params "lossless=1:keyint=15:bframes=16:ref=16:me=4:subme=7:no-deblock=1:no-sao=1" "x265_FinaleX.mkv" (254,211 KB)
͏    -x265-params "allow-non-conformance=1:lossless=1:keyint=15:bframes=16:ref=16:me=4:no-deblock=1:no-sao=1" "x265_FinaleFinal.mkv" (254,335 KB)

comment:2 by MasterQuestionable, 4 months ago

͏    Points of interest:
͏    |1| x265 "strong-intra-smoothing" (also some other lossy options) miraculously affecting lossless??
͏    |2| x265 B-frame related various still differ when "bframes=0"...

͏    Concerning the speed and final output...

Last edited 4 months ago by MasterQuestionable (previous) (diff)

comment:3 by MasterQuestionable, 4 months ago

Summary: Clarification on x264 "deblock" of losslessClarification on x264 "deblock" of lossless, and x265 comparison
Note: See TracTickets for help on using tickets.