Skip to content

Conversation

@softworkz
Copy link
Collaborator

@softworkz softworkz commented Oct 11, 2022

Example output for command: ffmpeg -h filters=overlay

Filter overlay
  Overlay a video source on top of the input.
    slice threading supported
    Inputs:
       #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21]
       #1: overlay (video), Formats: Dynamic, Default: [yuva420p]
    Outputs:
       #0: default (video), Formats: Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21]

overlay AVOptions:
    [...]

Examples for what it prints in various cases

For pass-through filter links

"All (passthrough)"

For filters using query_formats

"Dynamic"

For filters using query_formats where a call to query_formats succeeds

"Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21]"

For all other cases

"[s16p, s32p, fltp, dblp]"

Except when all formats are supported
(number of formats equals number of available formats)

"All"

v2: rebase and fix compiler warnings

@ffmpeg-codebot
Copy link

There is an issue in commit 16588e7:
Please wrap lines in the body of the commit message between 60 and 72 characters.

@softworkz softworkz force-pushed the submit_print_formats branch from 16588e7 to c99d278 Compare October 11, 2022 13:13
@softworkz
Copy link
Collaborator Author

/submit

@ffmpeg-codebot
Copy link

Submitted as [email protected]

To fetch this version into FETCH_HEAD:

git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-43/softworkz/submit_print_formats-v1

To fetch this version to local tag pr-ffstaging-43/softworkz/submit_print_formats-v1:

git fetch --no-tags https://github.com/ffstaging/FFmpeg tag pr-ffstaging-43/softworkz/submit_print_formats-v1

@softworkz softworkz force-pushed the submit_print_formats branch 2 times, most recently from a39757b to 2938942 Compare October 11, 2022 21:35
@softworkz
Copy link
Collaborator Author

/submit

@ffmpeg-codebot
Copy link

Submitted as [email protected]

To fetch this version into FETCH_HEAD:

git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-43/softworkz/submit_print_formats-v2

To fetch this version to local tag pr-ffstaging-43/softworkz/submit_print_formats-v2:

git fetch --no-tags https://github.com/ffstaging/FFmpeg tag pr-ffstaging-43/softworkz/submit_print_formats-v2

Prints the following to AVBPrint:

For pass-through filter links:

    "All (passthrough)"

For filters using query_formats:

    "Dynamic"

For filters using query_formats where a call to query_formats
succeeds (example):

    "Dynamic, Defaults: [yuv420p, yuvj420p, yuva420p, nv12, nv21]"

For all other filters (example):

    "[s16p, s32p, fltp, dblp]"

Except in case when the number of formats equals the number of
available formats:

    "All"

Signed-off-by: softworkz <[email protected]>
Exmaple command: ffmpeg -h filters=overlay

Output:

Filter overlay
  Overlay a video source on top of the input.
    slice threading supported
    Inputs:
       #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p,
                                                  yuva420p, nv12, nv21]
       #1: overlay (video), Formats: Dynamic, Default: [yuva420p]
    Outputs:
       #0: default (video), Formats: Dynamic, Default: [yuv420p, yuvj420p,
                                                     yuva420p, nv12, nv21]

overlay AVOptions:
    [...]

Signed-off-by: softworkz <[email protected]>
@softworkz softworkz force-pushed the submit_print_formats branch from 2938942 to 2446d57 Compare October 24, 2022 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant