Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: linux commandline... (Read 2956 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

linux commandline...

i need a linux guru...

i wrote an perl script to rip an cd and compress the files with flac on linux commandline.

my commandline for ripping is:
Code: [Select]
cdparanoia -X <tracknumber> <outfile.wav>

for compressing:
Code: [Select]
flac <outfile.wav>


now i want to pipe the cdparanoia stream directly to flac for faster ripping process.

Code: [Select]
cdparanoia -X <tracknumber> -
output the stream to stdout instead to an file. but how can i let flac read from stdin???

Dezibel

edit: problems with <code></code> tags

linux commandline...

Reply #1
Quote
Originally posted by Dezibel

but how can i let flac read from stdin???


Code: [Select]
cdparanoia -X tracknumber - | flac -o filename.flac -


Josh

linux commandline...

Reply #2
Quote
Originally posted by jcoalson


Code: [Select]
cdparanoia -X tracknumber - | flac -o filename.flac -


Josh


...works fine!

thx 

Dezibel