Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a few hundred audio files of spoken lectures. I need a piece of software I can call from the command line to process the audio in various ways e.g. changing format, normalising, etc.
So far I have tried to batch process files using Audacity using a chain as detailed in this video. However, this is not satisfactory as I can't call this from command line (and therefore batch process files in a flexible way adapting to size/filetype etc.).
Are you able to point towards any software that can do this kind of audio processing from the command line?
Depending on your requirements, you don't always have the use Audacity.
You can use SOX in order to achieve what you are trying to do in terms of getting the file information of an audio file, as well as carry out compression.
sox long.mp3 short.mp3 trim 10
For comparison etc..
To expand, you can use a bash script, to iterate through each of the files in a directory and then run the command on each of the files.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have a project with a lot of source code. For documentation purposes, I must merge all source code into a single file, for instance, PDF, HTML or DOCX. Preferably, each merged file content should have a caption with its relative origin. Nice formatting is desired but not obligatory.
Did anybody ever do this task? Is there any simple code snippet to automate the task? Strangely, I searched around and did not find any hints on this challenge.
If on something UNIXish, a2ps does a really nice job printing large amounts of sources to postscript, which is then trivial to convert to PDF via e.g. ps2pdf. Something like:
a2ps *.c -o foo.ps
ps2pdf foo.ps foo.pdf
This will dump all sources you specify on the command line (and you can go recursive with some combo of find and xargs or similar). If you don't need a total source dump, you're probably best off reading up on your language's native source documenter (like doxygen or javadoc or similar). Most source documenter systems can output to bunches of formats ime.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there any script/tool out there (any language) that will generate .wav file into a waveform image?
Basically I want to upload a small wav file on the web and it will then show an image of waveforms including numbers of seconds (duration).
PS: I did google but no luck.
https://bitbucket.org/corfr/wavegenerator/src
A friend did this one :
You need linux (i successfully use Centos & Ubuntu)
Libmad
If i remember that was enough, it generate a .png from a .mp3 file, using libmad so. Code is quite simple to understand, as always feel free to submit improve !
it will generate a waveform pretty close as what you can found on soundcloud for example...
EDIT: Since you're looking for waveform, this question is very related.
https://stackoverflow.com/questions/2381243/how-does-soundcloud-com-generate-the-waveform-for-their-mp3-player
EDIT: This answer is valid if you're looking for a way of showing frequence graphically.
SoX ( http://sox.sourceforge.net/ ) can run on Windows and it's installed or available in almost all Linux distribution.
It can generate a spectrogram in .png format. Just call it like this:
sox <inputfile> -n spectrogram
You will find spectrogram.png in the same directory.
Here is an example of a spectrogram produced by SoX:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I need to add some mp3 file playing functionality to my Linux based embedded application. Until now I used a system call (mpg123 -qm list of mp3 files). But now I don't have all the elements of the playlist, but get the next one only when I'm ready with the previous one. With mpg123 it means that I have some stupid noise between the tracks, as I always have to restart the mpg123 binary.
I was looking around for some libraries and found libmad, lame, sdl and co. But they seem to be a bit overcomplicated at first to handle. I found the fmod (http://www.fmod.org/index.php/download) library easy to use. But it's available only in binary format, which doesn't fit my ARM-based target (not to mention the licensing problems). Does anybody know about any similar, open source library capable of playing mp3 files similar to fmod?
mpg123 has an API, perhaps you could use that instead of calling the binary?
OK, finally with the help of houbysoft's hint i found a solution which uses libmpg123 and libao, here, and with some tuning i managed to get pretty smooth file-by-file playing. Thx for the hint!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Do you know of any linux program, that would monitor accesses to directories and files in the filesystem? I would like to able to produce some report of how many times certain files were accessed in some period?
You probably want inotify-tools. Inotify is part of the linux kernal that triggers events on watched files, directories, or even the contents of entire directories. These tools are command line utilities that tap into the capabilities of inotify and allow you to use them, for example, in your shell scripts.
Specifically, you will probably want to look at inotifywatch
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm looking for (linux) command line tools that can help with video editing. I am mostly interested in:
Cutting
Transitions
Effects
Any pointers would be appreciated (I know ffmpeg can do basic cutting, but not much beyond that afaik).
Two tools I use are transcode and mencoder.
Transcode is a suite of command line
utilities for transcoding video and
audio codecs, and for converting
beween different container formats.
A variety of video and audio pre and
post-processing filters are available,
including (but not limited to):
framerate conversion
smoothing
cutting
MEncoder is a free command line video decoding, encoding and filtering tool based on mplayer.
Avisynth under WINE is your best bet. You can use ffmpeg or mencoder to do the actual encoding, and avisynth .avs files for the actual editing. You may have to use mencoder under WINE to access the avs files as well. I haven't tried this myself, but it should work, barring any WINE issues.
If this is part of some production app, if there's any way you can farm the work out to an actual windows computer you'll save yourself a lot of pain.
If you want to get your hands dirty you could try using the gstreamer and Gnonlin to make your own CLI video app. You can actually use a language like Ruby to call gstreamer from, so you don't have to use C.