AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 936314
Accepted
andrew.46
andrew.46
Asked: 2017-07-15 21:08:57 +0800 CST2017-07-15 21:08:57 +0800 CST 2017-07-15 21:08:57 +0800 CST

如何将 AIFF 编码与 abcde 一起使用?

  • 772

我看到 AIFF 编码现在可用于 CD ripper abcde 的最新开发版本。

我怎样才能在 Ubuntu 的 Xenial Xerus 下轻松测试呢?

(完全免责声明:我个人将 AIFF 编码添加到 abcde...)

16.04
  • 1 1 个回答
  • 1009 Views

1 个回答

  • Voted
  1. Best Answer
    andrew.46
    2017-07-15T21:08:57+08:002017-07-15T21:08:57+08:00

    您可以在 Ubuntu 下轻松测试它,甚至无需完整安装 abcde。这将允许您在 abcde 2.8.2 发布之前测试 AIFF 编码:)。四个简单的步骤:

    1.安装一些必需的应用程序...

    以下是一些必须安装的先决条件。打开终端窗口并运行以下命令:

    sudo apt-get install cd-discid cdparanoia abcde ffmpeg git
    

    (这也将安装现有的 Ubuntu abcde,因为这可能也是安装脚本 cddb-tool 的最简单方法。)

    2.放置一个配置文件:

    放置详细配置文件时,abcde 运行最佳。首先创建一个空文件:

    touch $HOME/.abcde.conf
    

    现在使用您喜欢的文本编辑器在此文件中放置以下配置详细信息:

    # -----------------$HOME/.abcde.conf----------------- #
    # 
    #   A sample configuration file to convert music cds to 
    #   Audio Interchange File Format (AIFF). This requires
    #   abcde version 2.8.2 and a recent copy of FFmpeg
    # 
    #   http://andrews-corner.org/linux/abcde/index.html
    # -------------------------------------------------- #
    
    # Encode tracks immediately after reading. Saves disk space, gives
    # better reading of 'scratchy' disks and better troubleshooting of
    # encoding process but slows the operation of abcde quite a bit:
    LOWDISK=y
    
    # Specify the method to use to retrieve the track information,
    # the alternative is to specify 'musicbrainz':
    CDDBMETHOD=cddb
    
    # Make a local cache of cddb entries and then volunteer to use 
    # these entries when and if they match the cd:
    CDDBCOPYLOCAL="y"
    CDDBLOCALDIR="$HOME/.cddb"
    CDDBLOCALRECURSIVE="y"
    CDDBUSELOCAL="y"
    
    # Specify the encoder to use for Audio Interchange File Format (AIFF):
    AIFFENCODERSYNTAX=ffmpeg
    
    # Specify the path to the selected encoder. In most cases the encoder
    # should be in your $PATH as I illustrate below, otherwise you will 
    # need to specify the full path. For example: /usr/bin/ffmpeg
    FFMPEG=ffmpeg
    
    # Specify your required AIFF encoding options here. These options are
    # needed by FFmpeg for tagging and selection of id3v2 version:
    #  1. '-write_id3v2 1' allows id3v2 tagging while '-write_id3v2 0' disables tagging
    #  2. '-id3v2_version 4' gives version id3v2.4 while '3' gives id3v2.3 
    AIFFENCOPTS="-write_id3v2 1 -id3v2_version 4"  
    
    # Output type for AIFF:
    OUTPUTTYPE="aiff"                        
    
    # The cd ripping program to use. There are a few choices here: cdda2wav,
    # dagrab, cddafs (Mac OS X only) and flac. New to abcde 2.7 is 'libcdio'.
    CDROMREADERSYNTAX=cdparanoia            
    
    # Give the location of the ripping program and pass any extra options,
    # if using libcdio set 'CD_PARANOIA=cd-paranoia'.
    CDPARANOIA=cdparanoia  
    CDPARANOIAOPTS="--never-skip=40"
    
    # Give the location of the CD identification program:       
    CDDISCID=cd-discid
    
    # Give the base location here for the encoded music files.
    OUTPUTDIR="$HOME/Music"               
    
    # The default actions that abcde will take.
    ACTIONS=cddb,playlist,read,encode,tag,move,clean
    
    OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
    VAOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
    ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
    VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'
    
    # Create playlists for single and various-artist encodes. I would suggest
    # commenting these out for single-track encoding.
    PLAYLISTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}.m3u'
    VAPLAYLISTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}.m3u'
    
    # This function takes out dots preceding the album name, and removes a grab
    # bag of illegal characters. It allows spaces, if you do not wish spaces add
    # in -e 's/ /_/g' after the first sed command.
    mungefilename ()
    {
      echo "$@" | sed -e 's/^\.*//' | tr -d ":><|*/\"'?[:cntrl:]"
    }
    
    # What extra options?
    MAXPROCS=2                                # Run a few encoders simultaneously
    PADTRACKS=y                               # Makes tracks 01 02 not 1 2
    EXTRAVERBOSE=2                            # Useful for debugging
    COMMENT='abcde version 2.8.2'             # Place a comment...
    EJECTCD=y                                 # Please eject cd when finished :-)
    

    3. 获取 git abcde 的副本:

    现在使用您的 git 客户端下载最新版本的 abcde git 树:

    git clone http://git.einval.com/git/abcde.git ~/abcde
    

    这将留下 abcde 的工作副本$HOME/abcde。

    4. 运行 abcde:

    现在有趣的一点:)。将音频 CD 放入驱动器并运行以下两个命令:

    cd $HOME/abcde
    ./abcde
    

    (请注意,该./部分很重要,因为这将仅引用此处下载的 abcde 副本,而不是还安装在您的系统上的发行版。)如果一切顺利,您的音频 CD 现在将轻松转换为 AIFF,文件整齐地标记和然后放入$HOME/Music!

    参考:

    • abcde:适用于 Linux 的命令行音乐 CD 翻录我自己的信息中心,其中包含许多 abcde 的配置文件
    • abcde git 存储库abcde 的 git 存储库的摘要页面
    • 2

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve