Eric:
Shell scripts are difficult, terse and inflexible. Have you considered using a scripting language expressly constructed for the types of operations you are performing? Perl, Python, Rexx/Regina, Ruby will all make your task easier. Some even come with a GUI API. I am certain that using shell scripts will enhance your knowledge of the *NIX shell but is it that the goal?


Bruce
On Apr 27, 2005, at 9:19 PM, Eric Dunbar wrote:

Further to my question on sending files from one app to another...

What I do is download an .ogg stream using wget and stop the download
by killall wget. I'd like to write the name of the file that wget is
creating to a log file and then use another shell script to read the
file name from the log, and, perhaps delete the file name from that
log once processed (i.e. re-write the log-file without the name in
it).

Any ideas? Using grep I imagine but I've not got very far in the
output phase of things (how to write/append a script variable to a
text file is my first challenge).

Thanks, Eric.

On 4/27/05, Cian Duffy <[EMAIL PROTECTED]> wrote:
Short answer: Yes, just use a pipe (|) to do it

Long answer: Don't bother, just recompile LAME with Ogg input support
- its either an official compile option or theres a patch for it.
oggdec is slow (not that LAME doing it will be majorly), and there is
a possibility of pipe-starvation, where LAME could be running faster
than oggdec, and there wouldn't be any file to encode from...

Cian

On 27/04/05, Eric Dunbar <[EMAIL PROTECTED]> wrote:
Hi all,

I'm trying to use oggdec and lame to convert from .ogg to .mp3.

First I decode with oggdec to a .wav file and then from .wav to .mp3 using lame.

What I was wondering is if it'd be possible to direct the .wav output
from oggdec *directly* to lame, skipping the intermediate file
creation process?

Eric.
_______________________________________________
yellowdog-general mailing list
[email protected]
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
HINT: to Google archives, try  '<keywords> site:terrasoftsolutions.com'


_______________________________________________ yellowdog-general mailing list [email protected] http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general HINT: to Google archives, try '<keywords> site:terrasoftsolutions.com'

Reply via email to