Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --screenshot-metadata CLI option #2726

Open
masmu opened this issue Jan 16, 2016 · 0 comments
Open

Add --screenshot-metadata CLI option #2726

masmu opened this issue Jan 16, 2016 · 0 comments
Labels
core:api core:option-param-conf config, parameters, properties, options, shortcuts meta:feature-request

Comments

@masmu
Copy link

masmu commented Jan 16, 2016

Hi, I would really love a CLI option where I can specify the metadata which is written to a screenshot PNG. This would be an addition to the --screenshot-template option, but would store the metadata in the file not in the files name. In that way, you could really use the %P (path) placeholder, which is normally not usable here, because test-[%P] would be translated to test-[/home/user/test.png].png which is not a valid filename.

Example:

mpv --screenshot-metadata "filename:%f" \
    --screenshot-metadata "path:%P" \
    --screenshot-metadata "position:%fc"

So that pngmeta would print the following output:

$ pngmeta ~/test.png
filename: test.mp4
path: file:////home/user/test.mp4
position: 5835467
@Akemi Akemi added core:api core:option-param-conf config, parameters, properties, options, shortcuts labels Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core:api core:option-param-conf config, parameters, properties, options, shortcuts meta:feature-request
Projects
None yet
Development

No branches or pull requests

3 participants