Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
How can I use sox to generate an N-channel audio file with silence in all but one channels? For instance, I'd like to create an 8-channel audio file with a tone in channel 3, and silence in all the others.
Use the remix command. This takes an M-channel input, and generates an N-channel output, where for each output channel you specify the input source channel(s).
For example:
sox -n output.aif synth 1 sine 300 remix 0 0 1 0 0 0 0 0
does the following:
-n: no input file
output.aif: the output file where the results will be written
synth 1 sine 300: generate a 1-second 1-channel sine wave at 300Hz
remix 0 0 1 0 0 0 0 0: convert this to an 8-channel file, where output channel 3 comes input channel 1 (the generated sine), and the others come from channel 0 (which is silence)
remix can specify more complex source functions for each output channel. Some examples of these specs:
2: copy input channel 2 to output channel
0: copy silence to output channel
2,3: mix input channels 2 and 3 to output channel
1-4: mix input channels 1 through 4 to output channel
-: mix all input channels to output channel
1,2v0.5: mix input channels 1 and 2, with 2 at half the volume of channel 1
(When mixing multiple input channels to an output channel, there are various rules for the mixed signal levels; consult the documentation.)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to change audiobook .aaxc to mp3 or any other audio format but conversion failed is showing.
ffmpeg -i test.aaxc -c:a aac test.mp3
I am beginner using ffmpeg on windows. there is so much errors so also guide to how to analyse there errors. one error is like Error while decoding stream #0:0: Invalid data found when processing input .
As llogan ask for i am sharing complete log file
Following information from this patch to ffmpeg, you need a key/iv pair, which is unique for each book, to decrypt aaxc files. This key/iv, pair is provided by a special license request to the audible api.
The key/iv pair have to be decrypted from the license request response. Please take a look on this issue in my audible github package for more informations how to obtain the key/iv pair.
Audible AAX files are encrypted M4B files, and they can be decrypted by specifying a 4-byte activation key.
ffmpeg -activation_bytes 1CEB00DA -i input.aax output.mp3
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
07c37dfeb235213a872192d90877d0cd55635b91 127.0.0.1:30004 slave e7d1eecce10fd6bb5eb35b9f99a514335d9ba9ca 0 1426238317239 4 connected
67ed2db8d677e59ec4a4cefb06858cf2a1a89fa1 127.0.0.1:30002 master - 0 1426238316232 2 connected 5461-10922
292f8b365bb7edb5e285caf0b7e6ddc7265d2f4f 127.0.0.1:30003 master - 0 1426238318243 3 connected 10923-16383
6ec23923021cf3ffec47632106199cb7f496ce01 127.0.0.1:30005 slave 67ed2db8d677e59ec4a4cefb06858cf2a1a89fa1 0 1426238316232 5 connected
824fe116063bc5fcf9f4ffd895bc17aee7731ac3 127.0.0.1:30006 slave 292f8b365bb7edb5e285caf0b7e6ddc7265d2f4f 0 1426238317741 6 connected
e7d1eecce10fd6bb5eb35b9f99a514335d9ba9ca 127.0.0.1:30001 myself,master - 0 0 1 connected 0-5460
Above is output of "CLUSTER NODES".
id: The node ID, a 40 characters random string generated when a node is created and never changed again : This is non readable, can i change it to more user friendly text like "Master1" or "SLave1"
According to http://redis.io/topics/cluster-spec#cluster-nodes-attributes:
Every node has a unique name in the cluster. The node name is the hex representation of a 160 bit random number, obtained the first time a node is started (usually using /dev/urandom). The node will save its ID in the node configuration file, and will use the same ID forever, or at least as long as the node configuration file is not deleted by the system administrator, or a hard reset is requested via the CLUSTER RESET command.
Which begs the question - have you tried editing the nodes' configuration files?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I need a .wav file with 44100Hz sample rate, that contains a positive 1-sample impulse every 2 seconds, repeated for about 1 minute.
I've not yet found an elegant way to do this with linux command line tools, like sox, ffmpeg,... but am working on it.
It can be easily done with sox:
sox -b 16 -Dr 44100 -n out.wav synth 1s square pad 88199s repeat 30
The mindset is following:
-b 16 set the bit-depth to 16 bits
-Dr 44100 use a sampling rate of 44.1 kHz and do not add any dithering noise
-n out.wav input file is null and the output file is out.wav
synth 1s square synthesize one sample of a square wave (32768)
pad 88199s pad with zeros to reach 2 seconds of duration
repeat 30 repeat 30 times to reach 1 minute of a pulse train
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm writing some code to interpret the output of the ls command in Linux (to make it more friendly to newcomers). As one of the test cases, I executed the command 'ls -l /dev/tty', and it returned
crw-rw-rw- 1 root root 5, 0 Apr 15 23:46 /dev/tty
What is the meaning of first char 'c' meaning in first column? I know 'd', 'l', and '-'. Could you list all possible values for this field?
It's a character-based (as opposed to block-based) device file.
Blocked-based devices are anything where it makes sense to transfer data in (surprisingly enough) blocks. By that, I mean things like disks.
Character-based devices (and again, this should come as no surprise) tend to transfer characters at a time. Things like terminals, serial ports, printers and so on.
If you're running a decent Linux distro, that information (plus more than you could probably ever need) can be obtained with the command:
info ls
which contains this little snippet:
The file type is one of the following characters:
- regular file
b block special file
c character special file
C high performance ("contiguous data") file
d directory
D door (Solaris 2.5 and up)
l symbolic link
M off-line ("migrated") file (Cray DMF)
n network special file (HP-UX)
p FIFO (named pipe)
P port (Solaris 10 and up)
s socket
? some other file type
c means it's a character device. Specifically, /dev/tty represents the current console.
That its a character device you are listing
b for block device
The 'c' means it's a character device. tty is a special file representing the 'controlling terminal' for the current process.
Please refer same question here
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
how do I get a list of amplitudes from a audio file using a linux command line tool ?
Do you mean getting all the individual samples as text? SoX can do that.
$ sox file.wav file.dat
will take an audio file file.wav, and generate a text file file.dat with a column for the timebase in seconds, and a column for each audio channel scaled by the maximum possible value.