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

Read PNG/JPG from stdin #2676

Open
avidseeker opened this issue Mar 10, 2025 · 2 comments
Open

Read PNG/JPG from stdin #2676

avidseeker opened this issue Mar 10, 2025 · 2 comments

Comments

@avidseeker
Copy link

avifenc supports reading jpg, png formats as files.

SYNOPSIS
       avifenc [options] input.[jpg|jpeg|png|y4m] output.avif

But not as file descriptors:

       --stdin
              Read y4m frames from stdin instead of files; no input filenames allowed, must set before
              offering output filename.
@maryla-uc
Copy link
Collaborator

Would adding a flag to specify the format of the input work for you?
I think it would be easier to implement than guessing the file format automatically (because you can't read a few bytes for format guessing then rewind the stream when using stdin).

@avidseeker
Copy link
Author

Would adding a flag to specify the format of the input work for you?

Yes

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

No branches or pull requests

2 participants