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

mix-to-mono vs stdin and stdout #94

Open
janstary opened this issue May 22, 2024 · 0 comments · May be fixed by #95
Open

mix-to-mono vs stdin and stdout #94

janstary opened this issue May 22, 2024 · 0 comments · May be fixed by #95

Comments

@janstary
Copy link

Both the manpage and mix-to-mono itself say that the synopsis is
sndfile-mix-to-mono <input file> <output file>

Neither of them mention that the inout can be '-', meaning stdin,
and the output can be '-', meaning stdout. All of the following work:

sndfile-mix-to-mono stereo.wav - > mono.wav
sndfile-mix-to-mono - mono.wav < stereo.wav

Of course, the output file type cannot be determined from '-',
but determining the file type from the name doesn't work anyway,
see #93

Also, they cannot both be '-', because

sndfile-mix-to-mono - - < stereo.wav > mono.wav 
Error : input and output file names are the same.

even though the files are not the same of course: it's stdin and stdout.

@janstary janstary linked a pull request May 22, 2024 that will close this issue
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 a pull request may close this issue.

1 participant