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

w64 format not recognized if received from pipe #98

Open
Emilius256 opened this issue Mar 10, 2024 · 2 comments
Open

w64 format not recognized if received from pipe #98

Emilius256 opened this issue Mar 10, 2024 · 2 comments

Comments

@Emilius256
Copy link

Emilius256 commented Mar 10, 2024

Hello,

I'm using windows 10 and I would like to convert a stereo track to aac changing the speed.
So I use pipe from FFMPEG to SOX to QAAC.
If I specify WAV as format everything is working, but if I use W64 i receive the error:
ERROR: Not available input file formatte=N/A speed=N/A
This is the used command that receive the error
ffmpeg -drc_scale 0 -i "source.dts" -ac 2 -f sox - | sox -p -q -b 24 --type w64 - speed 0.999000999000999000999000 | qaac64.exe -V 39 --adts --no-delay -o test.aac -

While this is working properly
ffmpeg -drc_scale 0 -i "source.dts" -ac 2 -f sox - | sox -p -q -b 24 --type wav - speed 0.999000999000999000999000 | qaac64.exe -V 39 --ignorelength --adts --no-delay -o test.aac -

If i first convert the source file to w64 and then convert it using qaac it is working fine, but if it is piped it is not working.

This is the qaac check info

qaac64.exe --check
qaac 2.81, CoreAudioToolbox 7.10.9.0
libsoxconvolver 0.1.0
libsoxr-0.1.3
libsndfile-1.2.2

It is possible to specify the input file format when the source is piped ?

@nu774
Copy link
Owner

nu774 commented Mar 10, 2024

qaac supports only WAV, RF64, raw for piped input.
Why don't you just use WAV or RF64 ?
I have no plans to support other formats for piped input since:

  • Since we can't seek piped input, we can't rely on current automatic format detection which works fine for ordinary files.
  • Formats such as wave64 is supported by libsndfile Virtual I/O API which requires seek. In other words, we can't use it for piped input.
  • WAV, RF64, raw PCM is specially taken care of, and directly implemented in qaac to allow piped input.

@Emilius256
Copy link
Author

I was using W64 for the file size problem of the WAV format, but I don't know if it is affected also when using piped output.
I will stay with WAV.

Thank you for your help.

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