Personal View site logo
Make sure to join PV on Telegram or Facebook! Perfect to keep up with community on your smartphone.
Please, support PV!
It allows to keep PV going, with more focus towards AI, but keeping be one of the few truly independent places.
'Apocalypse Now' Experimental Series 1 Thread - BOOM, Intravenus - cbrandin/driftwood AN Soft/Cinema
  • 1089 Replies sorted by
  • @lpowell - I looked up the reference you linked. My formula calculates what he calls QP. It's a little confusing because that number is a product of various parameters included in H.264 headers and the scaling matrix. And then there is PTool's "Quantizer" Parameter. Let's agree that the index into the table is "QP", the indexed entry is "Q", that PTool's parameter is "Base QP", the frame's base QP is "Frame QP", and that the macroblock QP offset is "macroblock QP offset" - that should eliminate the confusion.

  • @flaschus Best test shots I've seen yet. Thanks!

  • An avid lurker here -

    Can somebody point me to the discussion where it seems to have been explained that 25p is really 25i ?

  • @lpowell - right, I agree. I think the confusion was over the term "Q", I meant it as the offset and you meant it as the table value. I should have called it QI (Q Index), or something like that.

  • Lpowell, regard the scaling matrices, I wasn't aware of that. Thank you for the information. After trying both settings my self I see advantages and disadvantage on both FL and soft 444 so to speak. But I some how tend to like the feel of AN 444 soft. btw, the fighting comment was not meant to you alone, so no hard feelings. 

    Flaschus, Some how the cables in the background seem overly sharpened on AN? Tend to like the FL in that regard. Than again.. There seem to be less noise in the shadows regard the AN. Confusing stuff... 

  • @cbrandin No, I think the level of indirection in the Qstep table makes a big difference. In the H.264 spec, QP is just an index into the Qstep table, which contains the actual Q factors. Qstep doubles each time QP is incremented by six. So rather than increasing linearly with QP, effective Q increases exponentially.

  • hello... i needed to see for myself, so here is my comparison of the two matrices:

    flomotion 2.02 & Valkyrie '444 Soft',

    both 3gop 24p high bitrate patches

    if you were to zoom into details (such as the ingmar bergman box set, or butch cassidy and the sundance kid case...)

    u can see how the two are different, hope this helps!

    24p mode, 14mm@2.5, 400iso, cloud WB,

    14-444.png
    1920 x 1080 - 3M
    14-flo.png
    1920 x 1080 - 4M
  • @lpowell - I think we are just having a terminology mismatch and that we essentially agree. There's QP, as PTool sees it, header Q, macroblock Q offsets, individual matrix Q modifiers, etc... - it gets a little confusing. My formula is to calculate the offset value used to retrieve the value from the table, not the value itself.

  • @LPowell - I can see some differences - Flow Motion is a little sharper, and the 444 stuff has somewhat smoother gradations. I think it depends on the subject. The one you show is pretty contrasty and monochromatic. Other subjects may show more or less of a difference.

    Your point about matrices not being interchangeable is well taken. Changing matrices changes everything else too, and it's a lot of work to get right!

  • @cbrandin - "if you are saying the effective Q offset = QP * (Matrix_Value / 16) for each entry, then right."

    Not quite, the effective Q is not the QP value, it's based on the Qstep value found in the 51-entry table in the PDF I linked above. Effective Q = (Qstep * 16) / Matrix_Value. I definitely agree about the need to use the same Scaling Matrix for both I-fields and P-fields in HBR mode. Note, however, that the P-field in the initial I-frame of each GOP uses the Inter-matrix of the Scaling-I table, rather than the Intra-matrix of the Scaling-P table!

  • @fix - "Would love to see this Soft 444 matrix implemented in [Flow Motion v2]..."

    Scaling Matrices lie at the core of the encoding engine and are not mix-and-match components that can be easily transplanted into different patches. Replacing FM2's custom Scaling Matrices with the Soft 444 matrix would convert it into a new patch that was no longer Flow Motion, and it would require its own bitrate balancing and stabilization. Judging from my comparison footage, the results would not justify the effort.

    As for "fighting", since the insults and bullying have ceased, there is no longer a need to defend myself.

  • @LPowell - I think you are right - but I would add one thing. I think it is important that the matrices for I and P frames be similar (ideally - the same) because of the P frame style encoding used in the lower part of I frames. I think they aren't - even with stock matrices - but I think they should be.

    I'm not sure that with HBR the upper and lower parts are actually encoded separately - like they would be with true interlaced encoding. But nevertheless - using different matrices for the two halves seems like it would be problematic. You could be right, though, which would make the soft matrices inappropriate for HBR (or 1080i, or 720p, for that matter). I never intended these matrices for anything but 1080p - I just didn't give it any thought.

  • @cbrandin I have a working theory about HBR mode encoding which seems to account for its idiosyncracies. I picture each GOP as divided into a pair of separate video streams comprised of 1920x540 fields derived from each GOP's initial I-frame. Each GOP in the upper-field stream has an IBBPBB structure, while GOP's in the lower-field stream have a PBBPBB structure. The initial P-field in the lower-field stream is derived from the initial I-field in the upper-field stream.

    What this means is that the Scaling Table matrix is applied to macroblocks comprised of alternating scanlines from each progressively-scanned frame, separated out by the interlacing algorithm. That cuts the effective vertical resolution of each 1920x540 field in half, which will likely exacerbate any vertical aliasing artifacts.

  • oops, didn't see the above comment. I'm beating a dead horse!

  • @lpowell - if you are saying the effective Q offset = QP * (Matrix_Value / 16) for each entry, then right. Or, in other words - if QP is 16, then the Q offset values used are whatever is in the matrix. Also, what I mean by QP is the value used for each frame - not in PTool (e.g. typically I frames are QP-2, P are QP and B are QP+2)

    [edited - sorry Lee, I was being a little sloppy when i left out "offset"]

  • @Lpowell, This is exactly the kind of test I've been wanting to see. If you find yourself having time and in the mood to do more tests, cbrandin mentioned it, but it would be interesting to compare it in 1080p mode. Unfortunately I won't have time until the weekend to do my own tests. Keep up the good work everyone!

  • @lpowell: as i said aswell on your thread, people would be more interested to see a comparision of 24p between the two settings.

  • Lpowel, After looking at the pictures you posted, I'm really not sure what to think. Somehow i'm sold on what I see from the AN soft 444.. The smoothness but still detailed picture impresses me. Yeah, there are some jaggines and maybe a tad loss of detail, but not like a cheap noise reduction going on. Also, it don't contain anything that reminds me of mosquito noise or added sharpening (big +). Don't get me wrong! I love FL 2.2 and have used it several times. Would love to see this soft 444 matrix implemented in FL btw!

    To bad that none of the AN 444 soft patches are able to span... Spanning is a huge plus regard flow motion IMO.

    Keep up the good work. And stop fighting btw ;)

  • @cbrandin My understanding is that the QP value is used as an index into the H.264 Qstep table, outlined in this pdf:

    http://ce.sharif.edu/courses/87-88/2/ce342/resources/root/H264%20Standard/h264_transform.pdf

    So for example, a QP of 18 produces a Qstep of 5, which is used as the quantizing divisor. Each calculated macroblock component is then mulitplied by the corresponding Scaling Table coefficient and divided by (16 * Qstep) - which normalizes the Scaling Table coefficients to 16. So in practice, you can calculate the effective quantizer of each component as (16 * Qstep) divided by the corresponding Scaling Table coefficient.

  • @lpowell - One thing I did with these matrices is tune them (i.e. set lower values) so that they would be close to ideal when QP is set to 18-20. I'm not sure what the codec uses QP values for (aside from the obvious), so I didn't want the QP value to differ too much from the stock setting.

    Also, I designed these for 1080p - so I'm not sure whether the HBR mode works as intended.

  • @cbrandin Ah, right you are, I edited the original post with the DC quantizer ranges.

  • @lpowell

    Thanks for posting the comparison - it's interesting. One thing, though: the quantizer number by itself is meaningless because it is scaled by matrix values. What would be more meaningful is comparisons of the DC values and Ranges as reported by Streamparser's JM-SP decoder.

  • My apologies for stirring some controversy by posting the earlier two pictures. You are all right. Although they were both 24H using Panasonic 14-140, straight out of camera but they were shot at different days, I only have one GH2, but I will re-shoot the same scene one after another with a few minutes difference because I need to reload the second setting. However, I am sure of one thing. I have done a lot of comparisons and when I do this one too, you will find out that, Cluster v7 444 soft picture will come out more colorful and soft and other settings like FM2 will be more video-ish but sharper. By the way, I am not biased towards any particular setting or person. I am a fan of FM2, Cluster, Sanity and GOP1.

  • Here are unedited 200% crop frame grabs from back-to-back videos taken with a Lumix X 45-175mm f4-5.6 @ 45mm f8, ISO 200. The first was shot with Flow Motion v2.02 and the second with Apocalypse Now 6-GOP 444 Soft. The original downloadable video files can be seen here:

    http://www.personal-view.com./talks/discussion/3337/gh2-flow-motion-v2-100mbps-fast-action-performance-reliability-for-all-class-10-sd-cards/p16

    Flow Motion v2.02 @ HBR 1080p30: image

    Apocalypse Now 6-GOP 444 Soft @ HBR 1080p30: image

    The FM2 video has an average bitrate of 65Mbps with DC quantizers of 6-7, range 5.

    The AN6 soft video has an average bitrate of 56Mbps with DC quantizers of 7-8, range 5.

    FM2-Electrical Towers.jpg
    1024 x 600 - 247K
    AN6-Electrical Towers.jpg
    1024 x 600 - 230K
  • @kodakmoment thanks for info. Driftwood wrote that this matrices are for 24p but he used them for all settings to see what people thinks. What is good cos is easier mixing formats 24p-25p-50p

This topic is closed.
← All Discussions