Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I am ripping CD's to WAV and then converting to FLAC. I would like to know how to generate a log file for the FLAC conversion, can anyone ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    15

    Flac log


    Hi All,

    I am ripping CD's to WAV and then converting to FLAC. I would like to know how to generate a log file for the FLAC conversion, can anyone provide me with advice on how to go about doing this?

    Many thanks,

    Max

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by maxwas View Post
    Hi All,

    I am ripping CD's to WAV and then converting to FLAC. I would like to know how to generate a log file for the FLAC conversion, can anyone provide me with advice on how to go about doing this?

    Many thanks,

    Max
    what tool are you using for flac conversion? if it is a graphical tool, then maybe there is logging supported within the app. if it is a command-line tool, then (assuming you are using bash), you can redirect STOUT and STDERR to file(s).

    e.g.:

    to redirect STDOUT
    Code:
    flac_convert file.in file.out 1 > /tmp/flac.log
    to redirect STDERR
    Code:
    flac_convert file.in file.out 2 > /tmp/flac.err
    to do the above redirections simultaneously
    Code:
    flac_convert file.in file.out 1 > /tmp/flac.log 2 > /tmp/flac.err
    to redirect STOUT and STDERR to the same log
    Code:
    flac_convert file.in file.out > /tmp/flac-output.log 2>&1
    to append to a file instead of overwriting it, use >>
    Code:
    flac_convert file.in file.out >> /tmp/flac.log 2>&1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •