Re: sox vs libmagic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jan Stary <hans@xxxxxxxx> [2016-09-19 18:10]:
[...] 
> So I created a file.wav and renamed it to 'file' just to confuse SoX.
> But it seems to recognize it as WAV just fine.
> 
> Then I renamed it to file.mp3 to cause even more confusion.
> But SoX recognizes it as WAV all the same.
> 
> This is --without-magic. What exactly do we need it for?
> Can someone more knowledgeable in the codebase please explain
> when exactly is libmagic used to help SoX determine the a file format?
I guess that the file header has a field that says "wav" no matter what
filename extension you give it, or if you leave it away.
If that header would be missing as well, or would be corrupt or
otherwise faulty, I guess this is when libmagic would come in.

2cents only though
P

------------------------------------------------------------------------------
_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux