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

How to get the full "-n stats" "-n stat" and --info Sox calls with Lua? #2

Open
faxinadu opened this issue Jun 11, 2021 · 2 comments
Open

Comments

@faxinadu
Copy link

These are the most important calls for testing, would it be possible to add bindings to these, or if it is already possible demonstrate and example?

Thanks

@MasterVitronic
Copy link
Owner

Hi!!
using the "sox" command line, could you give an example of what you want to get?

vitronic []$ sox --info oo.ogg 

Input File     : 'oo.ogg'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:03:33.30 = 9406464 samples = 15997.4 CDDA sectors
File Size      : 2.91M
Bit Rate       : 109k
Sample Encoding: Vorbis
Comments       : 
language=und
handler_name=SoundHandler
encoder=Lavc58.54.100 libvorbis
major_brand=isom
minor_version=512
compatible_brands=isomiso2mp41

something like this ?

@faxinadu
Copy link
Author

Hey thanks for the reply.

The three important commands in this regard would be:

sox 1.wav -n stat
sox 1.wav -n stats
sox --info 1.wav

Thanks

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