nu774 / fdkaac

command line encoder frontend for libfdk-aac
Other
260 stars 58 forks source link

Is it possible to pipe from? #29

Closed vitaly-zdanevich closed 6 years ago

vitaly-zdanevich commented 6 years ago

I tried

ogg123 -d wav file.ogg -f - | fdkaac -m5 - -o - | cat

And see no output.

nu774 commented 6 years ago

Well, didn't you? I can clearly see the output (error message) from fdkaac which says that "stdout streaming is not available on M4A output".

fdkaac chooses M4A container by default (which can be changed by -f option), and as the error message says, output to stdout is not supported on M4A. This is also written in "DESCRIPTION" section in man mage.

vitaly-zdanevich commented 6 years ago

Oh, thank you...

Output to stdout is not possible for m4a due to some format restrictions or it may be implemented in the future?

nu774 commented 6 years ago

Normal MP4 format is just not suitable for piped output.

vitaly-zdanevich commented 6 years ago

Ok, thank you.