Shailendra Paliwal <beingshailendra@gmail.com> writes:
> Hello,
>
> I found sox as a command-line equivalent of Audacity. I was wondering how
> can I glitch images like the way I can using Audacity.
>
> On audacity the usual modus operandi is,
>
> 1. Use Audacity > File > Import > Raw Data, to import a BMP image file.
> 2. Set the encoding to U-Law or A-Law.
> 3. Apply audio effects to the track.
> 4. Export Audio, set Save As Type > Other Uncompressed Files
> 5. Header > RAW (header-less) and Encoding > whichever selected in (2)
> 6. Rename to BMP
>
> I was wondering if the same method can be used with sox. That way I can
> make shell scripts to glitch images or even thousands of frames in a video.
Yes, this can be done. Try something like this:
$ sox -t ul -c 1 -r 48k input -t ul output effects...
--
Måns Rullgård