nu774 / fdkaac

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

Is it possible to pipe from ogg123? #28

Closed vitaly-zdanevich closed 6 years ago

vitaly-zdanevich commented 6 years ago

I tried

ogg123 in.ogg - | fdkaac -b128 - -o out.m4a

And I see

ERROR: unsupported input file

nu774 commented 6 years ago

Are you sure that your usage of ogg123 command is correct? I think you need something like the following:

ogg123 -d wav in.ogg -f - | fdkaac -b128 - -o out.m4a
vitaly-zdanevich commented 6 years ago

Thank you!

vitaly-zdanevich commented 6 years ago

Maybe you know - is it possible to feed file to the ogg123 from Python - when byte stream in ram? Or maybe there is some other way I can convert ogg vorbis from memory to the m4a/aac?

vitaly-zdanevich commented 6 years ago

 I found https://stackoverflow.com/questions/46789568/python-how-to-write-binary-data-to-the-stdout-so-that-bash-script-can-use-proce