Sponsored Content
Top Forums Shell Programming and Scripting bash. convert mpeg adts to normal mp3 Post 302195876 by stahoo23 on Friday 16th of May 2008 05:38:24 AM
Old 05-16-2008
I use debian and shell - bash.
I tested this:
Code:
lame -h plik.mp3 1.mp3

and

Code:
mplayer -nojoystick -nolirc -nortc -vo null -vc dummy -af resample=44100 -ao pcm:waveheader:file=1.wav plik.mp3
lame -h 1.wav 2.mp3

and results are same - MPEG ADTSSmilie
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to convert from korn shell to normal shell with this code?

well i have this code here..and it works fine in kornshell.. #!/bin/ksh home=c:/..../ input=$1 sed '1,3d' $input > $1.out line="" cat $1.out | while read a do line="$line $a" done echo $line > $1 rm $1.out however...now i want it just in normal sh mode..how to convert this?... (21 Replies)
Discussion started by: forevercalz
21 Replies

2. Shell Programming and Scripting

How to Convert scientific notation to normal ?

Hell friends, I wrote a script gets the summation of particular column using awk. The awk output is given in scientific notation. How do I convert the scientific notation to normal. My awk syntax : awk '{sum += $2} END { printf sum }' temprep.txt Out put is like 1.5365e+07 I want it as... (2 Replies)
Discussion started by: maheshsri
2 Replies

3. Programming

New to C... questions about this code... ADTs...

Hi, In a file called itemADT.c I have specified the itemType data type to contain a listADT (having already written this library) and an integer, which will eventually represent the no. of times the word that is stored in the listADT has occurred (when I do this, and write code to insert... (2 Replies)
Discussion started by: eva
2 Replies

4. Shell Programming and Scripting

Convert Epoch time format to normal date time format in the same file

I have a file named "suspected" with series of line like these : {'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''} {'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies

5. Programming

Convert Bash script to C

dear all, i need your advice for convert bash shell to C programming INDEX=/zpool1/NFS/INDEX/${1} SCRIPT=/zpool1/NFS/script/${1} LIST=SAMPLE cd ${SCRIPT} for i in `cat ${LIST}` do GETDATE=`echo ${i}|awk '{print substr($1,9,8)}'` /usr/xpg4/bin/awk -F ":" '{close(f);f=$4}{print >>... (2 Replies)
Discussion started by: zvtral
2 Replies

6. Shell Programming and Scripting

AIX : Need to convert UNIX Timestamp to normal timestamp

Hello , I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies

7. Shell Programming and Scripting

Bash to convert to m-d-yyyy

I am using bash that when run downloads a file a verifies that there is data in it. What I am not able to do is have a user enter a date in any format they wish and have it converted to m-d-yyyy. Thank you :). Bash printf " Welcome to NGS analysis, checking for new files and creating a... (2 Replies)
Discussion started by: cmccabe
2 Replies
JACK_CAPTURE(1) 					      General Commands Manual						   JACK_CAPTURE(1)

NAME
jack_capture - A program for recording anything from jack SYNOPSIS
jack_capture [options] bar [options] DESCRIPTION
This manual page documents briefly the jack_capture command. This manual page was written for the Debian distribution because the original program does not have a manual page. jack_capture is a cli program for recording any audio signal from jack to audio audio formats supported by libsndfile library (wav, aiff, ogg, flac, wavex, au, etc.) For more info about libsndfile see http://www.mega-nerd.com/libsndfile/api.html#open OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -b, --bitdepth n is by default FLOAT. It can be set to either 8, 16, 24 or 32. (for relevant formats) -c, --channels n is by default 2. -p, --port port is by default set to the two first physical outputs. The "port" argument can be specified more than once. -d, --duration s Recording is stopped after "s" seconds. -z, --leading-zeros n "n" is the number of zeros to in the autogenerated filename. (-z 2 -> jack_capture_001.wav, and so on.) (default is 1) -f, --format format Selects fileformat provided by libsndfile. See http://www.mega-nerd.com/libsndfile/api.html#open (Default is wav for 1 or 2 chan- nels, and wavex for more than 2.) -pf, --print-formats Prints all sound formats provided to sndfile to screen and then exits. -v, --version Prints out version. -s, --silent Suppress some common messages printed to the terminal. -V, --verbose] Prints some extra information to the terminal. -mp3, --mp3 Writes to an mp3 file using liblame (LAME). (the --format option has no effect using this option) -mp3q, --mp3-quality n Selects mp3 quality provided by liblame. n=0 is best, n=9 is worst. Default n is 2. (0 uses the most amount of CPU, 9 uses the least) -mp3b, --mp3-bitrate n Selects mp3 bitrate (in kbit/s). Default is set by liblame. (currently 128) -ws, --write-to-stdout Writes 16 bit little endian to stdout. (the --format option, the --mp3 option, and some others have no effect using this option) -dm, --disable-meter Disable console meter -hbu, --hide-buffer-usage Disable buffer usage. -dc, --disable-console Disable console updates. Same as "-dm -hbu". -lm, --linear-meter Use linear scale for the console meter (default is dB scale) -dBr, --dB-meter-reference Specify reference level for dB meter. (default=0) -mb, --meterbridge Start up meterbridge to monitor recorded sound. -mt, --meterbridge-type Specify type. vu (default), ppm, dpm, jf or sco. -mr, --meterbridge-reference Specify reference level for meterbidge. -jt, --jack-transport Start program, but do not start recording until jack transport has started rolling. When jack transport stops, the recording is stopped, and the program ends. -jtm, --jack-transport-multi Similar to --jack-transport, but do not end program when jack transport stops. Instead, record to a new file when jack_transport start rolling again. (not implemented yet) -B, --bufsize s Initial/minimum buffer size in seconds. Default is 8 seconds for mp3 files, and 4 seconds for all other formats. -MB, --maxbufsize Maximum buffer size in seconds. jack_capture will allocate. Default is 40. (Buffer is automatically increased during -fn, --filename Specify filename. (It's usually easier to set last argument instead) EXAMPLES
jack_capture [--bitdepth n] [--channels n] [--port port] [filename] jack_capture [-b n] [-c n] [-p port] [filename] jack_capture To record a stereo file of what you hear. ack_capture -f flac To record a stereo file of what you hear in the flac format. jack_capture -f ogg To record a stereo file of what you hear in the ogg format. jack_capture -mp3 To record a stereo file of what you hear in the mp3 format. jack_capture --channels 2 --port system:playback* To record a stereo file of what you hear in the wav format. jack_capture --port jamin:out* sound_from_jamin.wav To record the output from jamin. jack_capture --port jamin:in* sound_to_jamin.wav To record all sound coming in to jamin. jack_capture --port jamin* sound_to_and_from_jamin.wav To record all sound coming in and out of jamin. jack_capture -c 2 -p system:capture* To record a stereo file from the soundcard. SEE ALSO
jackd(1). AUTHOR
jack_capture was written by Kjetil Matheussen This manual page was written by Jaromir Mike <mira.mikes@seznam.cz>, for the Debian project (but may be used by others). July 28, 2010 JACK_CAPTURE(1)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy