04-06-2010
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?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: ivvo
7 Replies
2. Shell Programming and Scripting
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)
Discussion started by: tomailraj
5 Replies
3. Shell Programming and Scripting
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)
Discussion started by: goddevil
2 Replies
4. Shell Programming and Scripting
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)
Discussion started by: Shri123
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: monisha
3 Replies
6. Shell Programming and Scripting
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)
Discussion started by: anuragpgtgerman
5 Replies
7. Shell Programming and Scripting
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)
Discussion started by: prasanna2166
4 Replies
8. Shell Programming and Scripting
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)
Discussion started by: dba_aix
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: bhupeshchavan
1 Replies
10. Shell Programming and Scripting
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
vbrfix
VBRFIX(1) User Commands VBRFIX(1)
NAME
vbrfix - fix erroneous VBR MP3 files
SYNOPSIS
vbrfix -flag1 -flag2 -flagn in.mp3 out.mp3
DESCRIPTION
In an average song there are points that require high quality and points that require low quality (i.e., silence). Instead of having the
whole file at 160kbps (CBR - Constant Bit Rate), we can use VBR - Variable Bit rate. This allows us to have say 96Kbps at points not
requiring high quality and 192kbps when we need it: resulting in an overall smaller but higher quality MP3.
However, the problem is that many MP3 programs estimate the time of a MP3 based on the first bitrate they find and the filesize. With VBR
you can get fairly random times; as most songs start with silence you usually get the song length being shown as much longer than it should
be. Also when you jump through the file in VBR: 50% through the file is not 50% through the song.
A VBR null frame is placed at the beginning of the file to tell the MP3 player information about the song length and indexing through the
song. Some poor encoders don't produce this null frame or do so incorrectly - this is what vbrfix attempts to fix. Vbrfix can also fix
other problems with MP3s as it deletes all non-MP3 content (other than tags you state you want to keep).
It can also help when merging two VBR MP3s together with a merging tool and then needing a newly calculated VBR null frame.
-ri1 removeId3v1 Tag
-ri2 removeId3v2 Tag
-skiplame if a tag was made by LAME don't fix it
-always always write a new file even if not VBR
-makevbr make it VBR (you need -always also)
-log write a log file
-lameinfo keep the lame info
SEE ALSO
lame (1)
VBRFIX Command Line Version May 2010 VBRFIX(1)