Opened 5 months ago

Last modified 5 months ago

#10683 new defect

Typo in Documentation

Reported by: conivayt Owned by:
Priority: normal Component: documentation
Version: git-master Keywords: docs typo examples error
Cc: conivayt Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Example for "39.224 selectivecolor" filter in documentation is wrong (possible typo). This might be confusing for new users.

https://ffmpeg.org/ffmpeg-all.html#Examples-156

Which is:


  • Increase cyan by 50% and reduce yellow by 33% in every green areas, and increase magenta by 27% in blue areas:
    selectivecolor=greens=.5 0 -.33 0:blues=0 .27
    

Correct parameter example should be:


  • Increase cyan by 50% and reduce yellow by 33% in every green areas, and increase magenta by 27% in blue areas:
    selectivecolor=greens=0.5:yellows=0.33=blues=0.27
    

Change History (2)

comment:1 by Michael Koch, 5 months ago

I think the example is correct as written in the documentation:
selectivecolor=greens=.5 0 -.33 0:blues=0 .27

Arguments which contain spaces are always problematic. It should be added that (at least for Windows batch files) the arguments must be encapsulated in quotes:
selectivecolor=greens=".5 0 -.33 0":blues="0 .27"

comment:2 by Michael Koch, 5 months ago

I don't understand the difference between "absolute" and "relative" in this filter. Please add a better explanation and an example to the documentation.

Note: See TracTickets for help on using tickets.