Does lame care about the input file's extension; ie, takes your input file as is and bases processing on file structure instead of extensions? If so, why not strip it off (or do a temporary cp) prior to passing it to lame, and then do the rename to .MP3 as per usual?
Yes it cares about the extension. I tried this:
and i got 'Warning: Unsupported audio format' even though 'hello' is of mp3 format.
I would just like to replicate the 'one-click conversion' from the audio converters in Windows, without installing software.
I can still add the 'mp3' extension in all files after conversion, that's no biggie.
---------- Post updated at 04:02 PM ---------- Previous update was at 11:58 AM ----------
I also noticed that all the songs in my Music Library does not include the '.mp3' extension in their filename :S
I copied 2 songs to ~/Documents and my script bypassed those 2 files because lame does not recognize them as mp3s. Audacity does though and it still uses lame for encoding.
I think it's getting too complicated now. I'll just look for a program that does batch encoding in *nix.
How do I execute a batch command from a script, which "waits" with the next command until the first one has finished?
=======
A piece of my script looks like this:
#!/bin/sh
(...)
# run a long batch job:
./run_calculation.sh
# then rename resulting file:
mv output.dat backup.dat
(...)
... (7 Replies)
Hi,
When I run the below script in UNIX it's throwing syntax errors. Actually it's a windows batch script. Could anyone change the below Windows Batch script to UNIX shell script...
Script:
REM :: File Name : Refresh_OTL.bat
REM :: Parameters : %1 - Region
REM :: : %2 - Cube Type
REM ::... (5 Replies)
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh.
Thanks in advance (2 Replies)
while converting batch file to shell script ...dis command is ther i dunno how to change...can anyone knws how to change into shell script
rm !(D:\temp\XX.txt) (3 Replies)
Hi All,
I am working on shell scripting.My script is completed but I have one task that is to trigger the batch script(with or without parameter) from my shell scripting(reside on linux system) and output which is geneareted by the batch should e.g. if batch script creates any files then I want... (5 Replies)
Hi,
I am just trying to convert the batch script to bash script and i am stuck at one point where I have the below code
for /f "delims=" %%a in (a.txt) do (
for /f "tokens=1,2,3* delims==" %%i in ("%%a") do (
for /f "tokens=1,2,3* delims= " %%x in ("%%i") do (
if... (4 Replies)
Hi,
I am a junior dba and started carrier very new. I have a batch file to create some script of db creation. I want that batch file to convert in .sh file so that I can directly run that in the AIX box to generate those files.
Please help me with the code for AIX. Batch file is here:
... (2 Replies)
Hi team,
My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server.
I have completed the first part i.e From windows to using to unix server with the help of psftp.exe
code:
psftp user@host -pw password <... (1 Reply)
Hi All,
I have a small tool which is currently configured in batch scripts only. But my need is to run it on Linux platform, so I have been trying to convert a batch script to shell script.
below is the batch script:
@echo off
IF "%1"== "" GOTO ARGERR
REM UPDATE THESE PROPERTIES TO... (2 Replies)
Discussion started by: sukhdip
2 Replies
LEARN ABOUT DEBIAN
dir2ogg
DIR2OGG(1) General Commands Manual DIR2OGG(1)NAME
dir2ogg - Convert MP3, WAV, and M4A files to OGG format
SYNOPSIS
dir2ogg [ options ] ( filename [filename2] ... || directory [directory2] ... || [cdrom-device] ... )
DESCRIPTION
dir2ogg converts MP3, M4A, WMA and WAV files to the open-source OGG format. dir2ogg is a python script that simply binds together mpg123,
faad, and oggenc making it easier for the user to convert his/her music files. OGGs are about 15 to 20 percent smaller than MP3 files, with
the same relative audio quality. dir2ogg can be called with the -d flag at the command line to convert any number of directories at once,
or given MP3, M4A, WMA, and/or WAV filenames as arguments, dir2ogg will convert only those files. If converting WAV, M4A or WMA files with
-d you must add the -w, -m or -W command line flags respectively. These flags are not neccesary unless using -d. Note that converting M4A
files requires you to have faad installed, and converting WMA files requires mplayer.
Keep in mind that converting from MP3 or M4A to OGG is a conversion between two lossy formats. This is fine if you just want to free up
some disk space, but if you're a hard-core audiophile you may be disappointed. I really can't notice a difference in quality with 'naked'
ears myself.
General Options
-h or --help
print quick usage details to the screen.
-d or --directory
convert all MP3 files in directory. WAV and M4A files will be converted if used with the -w and -m command line flags. This option
is for compatibility purposes only and does not need to be specified anymore.
-r or --recursive
like -d but descends recursively into directories.
-c or --cdda
Convert an audio CD into ogg. You may pass the device as an argument to the script (default: /dev/cdrom). Requires cdparanoia orq
icedax or mplayer
-p or --preserve-wav
preserve all WAV files. By default they are deleted.
-P or --no-pipe
Do not use pipes to send data from the decoder to the encoder, use temporary wav files instead.
--delete-input
Delete the input file after conversion
-v or --verbose
increase dir2ogg's verbosity.
-Q or --quiet
Do not display progress messages, except the name of the file which is currently converted. Some decoders provide no way to disable
messages and thus may still display some.
Conversion options
--convert-all
Convert all supported audio files found in the directories given on the command-line to Ogg Vorbis.
-f or --convert-ape
Convert all APE (Monkey's Audio) files found in the directories given on the command-line to Ogg Vorbis, using either ogg123 or flac
or mplayer.
-f or --convert-flac
Convert all FLAC (Free Lossless Audio Codec) files found in the directories given on the command-line to Ogg Vorbis, using ogg123 or
flac or mplayer.
-m or --convert-m4a
convert all M4A (MPEG-4 Audio) files found in the directories given on the command-line to Ogg Vorbis, using faad or mplayer. For
decoding ALAC (Apple Lossless) files, 'alac-decoder' may be used.
-m or --convert-mpc
convert all MPC (MusePack) files found in the directories given on the command-line to Ogg Vorbis, using mpcdec or mplayer.
-W or --convert-wma
Convert all WMA (Windows Media Audio) files found in the directories given on the command-line to Ogg Vorbis, using mplayer.
-w or --convert-wav
Convert all WAV files found in the directories given on the command-line to Ogg Vorbis.
-V or --convert-wv
Convert all WV (WavPack) files found in the directories given on the command-line to Ogg Vorbis.
-n or --no-mp3
ingore all MP3 files found in directories given on the command-line.
--(ape|cd|flac|m4a|mp3|mpc|wma|wv)-decoder=COMMAND
Set the decoder you want to use for one filetype, e.g.: --mp3-decoder=lame. Run dir2ogg --help to see the available decoders.
-qN or --quality=N
OGG quality. N is a number between -1 and 10. Default is 3. Decimals are OK (ie: 3.7)
-t or --smart-mp3
Try to use the same quality as the input file. MP3 input only!
SEE ALSO mpg123(1), mplayer(1), oggenc(1)BUGS
Enter you bug reports in Launchpad at https://bugs.launchpad.net/dir2ogg
AUTHORS
0.10 and newer: Julian Andres Klode <jak@jak-linux.org>
0.9.3 and older: Darren Kirby <d@badcomputer.org>
CONTRIBUTORS
original wma support: Cameron Stone <camerons@cse.unsw.edu.au>
smart-mp3: Marek Palatinus <marek@palatinus.cz>
dir2ogg 0.11.8 2009-08-04 DIR2OGG(1)