LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

cue2tracks -- 转换 cue ape 到分轨 flac

galeki posted @ 2008年5月26日 07:37 in Bash 和它的朋友们 with tags gcue2tracks , 6079 阅读

关于处理下载来的 cue ape 音乐文件,原来在 处理下载的 APE CUE 文件 这篇文章中写过,最好的方式是转换成分轨 flac 的方式,这样可以适应基本所有 Linux 下的播放器,甚至支持 flac 的移动设备,不过当时没有解决歌曲信息的问题,用 shnsplit 拆分完 ape,歌曲的信息也丢掉了。

今天才发现 cue2tracks 这个小程序,真是相见恨晚,除了可以解决歌曲信息问题,还可以给拆分的歌曲重新命名,如果 cue 文件不是 utf-8 编码,还可以做转换~

cue2tracks 其实是个 bash 脚本,需要 shnsplitcuetools 这两个工具的支持。安装好后,直接运行 cue2tracks,可以看到参数手册:

$ cue2tracks
 
CUE 2 Tracks, Tool for spliting audio CD image to tracks with cue sheet info.
        Version: 0.2.7
        Author : Sergey (sergey.dryabzhinsky@gmail.com)

Usage: cue2tracks [options] <cue file>
Options:
        -i <image file> : Set CD image file. If not set - read from cue.
        -C : use colours.
        -T : set XTerm title.
        -c <codec> : Set output codec.
        Codecs may be:
                wav   : no encode, raw sound wave,
                flac  : (default) Free Lossless Audio Codec,
                flake : FLAC realisation via FFmpeg (beta),
                ape   : Monkey's Audio Codec,
                wv    : WavPack,
                ofr   : OptimFrog,
                shn   : shorten
                mp3   : mpeg 1 layer 3 via lame
                ogg   : ogg vorbis
        -l <level> : Set level of output codec compression rate.
        Levels may be:
                fast or 0 : fastest processing.
                best or 1 : (default) better compression.
        -f <codepage> : Convert to UTF-8 from this codepage...
        -d : Disable taging of output files with cue info.
        -A <album> : Set album title.
        -P <performer> : Set album performer.
        -D <date> : Set album date.
        -G <genre> : Set album genre.
        -o <format string> : Set naming scheme for output files.
        Naming scheme is:
                %A : Album title
                %P : Album performer
                %D : Album date
                %G : Album genre
                %t : Track title
                %p : Track performer
                %g : Track genre
                %n : Track number
                %N : Track number with leading zero
        -V : Print version and exit.
        -h : Print this help and exit.
        -q : Quite mode - only errors to stderr.
        -s : Start spliting even in testing mode (to /dev/null).
        -n <level> : nice level of codecs (process scheduling priority): -19 to 19.
        -R : Disable testing and doing nothing - starts Real work.

        Options only for mp3, ogg:
        -Q <quality> : Set quality of codec compression (4 - default).
        Quality may be:
                MP3: 0 - high, 9 - low
                OGG: -1 - low, 10 - high
        -B <bitrate> : Set compression bitrate in kbps (128 default).
        -M <bitrate mode> : C - Constant, V - Variable (default).
                If choosen V - then -B specifies maximum bitrate.

To get some action:
        cue2tracks -c flac -f cp1251 -o "/path/to/music/%P/%D - %A/%N" CDimage.cue

可以看到 cue2tracks 可以支持多种编码转换(flac, ape, wav, ogg, mp3...),当然你得安装这些编码的后端,比如 flac、mac、lame。

假如我想把下载的 CDImage.ape 和 CDImage.cue 拆分成分轨的 flac,保存在 ~/Music 下,并且以 “专辑名-歌曲名" 为文件名,而且 cue 的文件编码是 gb2312,那么只要运行:

cue2tracks -c flac -f gb2132 "~/Music/%A-%t" CDImage.cue

即可,只需指名 cue 文件即可,cue2tracks 会自动找到相应的 ape 文件。

转换出来的 flac 也会自动带有 cue 文件中的歌曲信息,感觉真是不错啊~

如果你不喜欢命令行,还有一个 gcue2tracks 的图形前端,依赖于 python-gtk2 和 python-glade,这样点点鼠标就可以完成这些参数设置了~

  • 无匹配
  • 无匹配
yegle 说:
2008年5月26日 09:23 sigh……昨天刚用虚拟机把电脑上的cue flac拆分了……不早说……
tearland 说:
2008年5月27日 05:04 这个确实不错,感谢……
6_6 说:
2008年5月27日 05:25 好东西啊,原来怎么没有发现呢
shi 说:
2008年5月27日 07:45 以后不用为了ape发愁了
lon 说:
2008年5月27日 08:19 以前一直用shntool,有时间试试这个
Eric 说:
2008年7月02日 16:32 有没有这个软件的下载连接?很想要
galeki 说:
2008年7月02日 16:35 @Eric: 文章里面的软件名称上有官方的链接,是进不去吗?
loujch 说:
2008年7月14日 05:51 用 shnsplit 拆分完 ape,歌曲的信息不会丢掉: 如下命令: shnsplit -f CDImage.cue -i ape -t "%n - %t - %p - %a" -o flac CDImage.ape 即把ape分割成flac,并以"音轨号 - 标题 - 艺术家 - 专辑.flac"命名,再用easytag扫描一下把文件名的信息写入tag就好了
loujch 说:
2008年7月14日 06:09 当然,CDImage.cue必须是utf8的,如果编码是gb的,可以用gedit另存为就可以
galeki 说:
2008年7月15日 08:22 @loujch: 是啊,其实 cue2tracks 就是 shnsplit 和其他一些处理音轨工具的集合脚本,一次搞定,就不用调用那么多程序了~ :)
海大大病 说:
2008年11月01日 05:37

不需要拆分的话,怎么办?

Head_small
galeki 说:
2008年11月01日 10:54

不拆分?
ape -> flac 就可以了

ETHENS 说:
2020年10月29日 21:47

I was not able convert a pdf file into excel without software so I was looking on google but did not get any fruitful results. But then I reached https://pt.altoprotectpdf.com/ where I posted my question and guess what, I got quick responses. due to which i was able to complete my work.

james 说:
2020年11月18日 20:32

Uttar Pradesh Madhyamika Shiksha Parishad (UPMSP) has released the model papers for UP Intermediate (Class 12) Board Exams 2021. The exam board has released the subject wise model papers for Class 12 board exams of Uttar Pradesh. West Bengal 12th Important Question 2021 The model papers of UP Intermediate board exams will help the candidates to have an understanding of actual exam pattern of UP Class 12 Board Exams, nature of questions and weightage of marks for each section in a specific subject. UP Class 12 students must note that the UP Intermediate model papers are just for reference, and the questions in model papers are not asked in the UP Class 12 board exams 2021.

UMAIR 说:
2021年1月01日 17:15

Your good knowledge and kindness in playing with all the pieces was very useful. I don’t know what I would have done if I had not encountered such a step like this Buy ID Cards

fdfd 说:
2021年3月12日 23:08

A debt of gratitude is in order for the post and extraordinary tips..even I likewise believe that diligent work is the most essential part of getting achievement..  Buy 4 AcO DMT

amelia 说:
2021年3月14日 23:03

There is such a great amount in this article I would never have considered all alone. Your substance gives perusers things to consider in an intriguing way. Much obliged to you for your unmistakable data.  costume jewelry wholesale

amelia 说:
2021年3月18日 06:03

Much obliged to you for some other educational web journal. Where else would I be able to understand that sort of data written in such a perfect means? I have a mission that I'm a few seconds ago taking a shot at, and I have been at the post for such data.  purses wholesale

amelia 说:
2021年3月18日 06:03

I might want to thank you for the endeavors you have made in composing this article. I am trusting the same best work from you later on too..  wholesale accessory market

chalsea 说:
2021年4月14日 21:21

That is the great attitude, in any case is simply not make each sence at all proclaiming about that mather. For all intents and purposes any strategy an abundance of thanks notwithstanding i had try to advance your own particular article into delicius in any case it is evidently a situation utilizing your data destinations would you be able to please recheck the thought. much obliged yet again.  buy weapons

chalsea 说:
2021年4月14日 21:22

Extremely intriguing web journal. Alot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definately intrigued by this one. Recently imagined that I would post and let you know.  heavy jets

ch 说:
2022年1月25日 04:13

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers https://www.5g999.co/slot

ch 说:
2022年2月14日 03:31

i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future.. http://www.pgslot888.net

ch 说:
2022年2月14日 03:31

A debt of gratitude is in order for your post. I've been considering composing an exceptionally equivalent post in the course of the last couple of weeks, I'll most likely keep it straightforward and connection to this rather if thats cool. Much obliged. www.HubPGSlot.com

ch 说:
2022年2月28日 07:04

I felt exceptionally upbeat while perusing this site. This was truly exceptionally enlightening site for me. I truly loved it. This was truly a sincere post. You rock!. เครดิตฟรี120

ch 说:
2022年3月02日 23:13

This is a decent post. This post gives really quality data. I'm certainly going to investigate it. Truly extremely helpful tips are given here. Much thanks to you to such an extent. Keep up the acts of kindness. สล็อต xo

amelia 说:
2022年7月03日 01:30

The data you have posted is extremely helpful. The locales you have alluded was great. A debt of gratitude is in order for sharing.. hq email address

amelia 说:
2022年7月12日 01:00

The data you have posted is exceptionally helpful. The destinations you have alluded was great. A debt of gratitude is in order for sharing.. Mortagages over 60 years old in 2022

get lots of plays 说:
2023年1月15日 01:19

Music sharing websites like SoundCloud offers your users access to a vast collection of audio tracks and music. You can either offer the service for free, flat rate, or partially free access with ads. 

forex market 说:
2023年8月16日 17:23

hello!,I really like your writing very a lot! proportion we keep up a correspondence extra about your article on AOL? I require an expert in this house to resolve my problem. Maybe that is you! Having a look forward to see you. NFL Curtains

forex market 说:
2023年8月21日 00:20

When I originally commented I clicked the -Notify me when new surveys are added- checkbox now when a comment is added I receive four emails with similar comment. Will there be however you possibly can get rid of me from that service? Thanks! UFABETแทงบอลบนมือถือ

haider 说:
2023年8月21日 18:49

Nearly everything seems to jump off the screen, but at the same time the film doesn’t really have any standout moments where the effect is utilized in a way that really wows its audience. แทงใบเหลืองใบแดงUFABET

forex market 说:
2023年8月22日 00:09

When I originally commented I clicked the -Notify me when new surveys are added- checkbox now when a comment is added I receive four emails with similar comment. Will there be however you possibly can get rid of me from that service? Thanks! UFABETแทงบอลทายผลผู้ชนะ

forex market 说:
2023年8月23日 22:27

An impressive share, I given this onto a colleague who has been doing a small analysis for this. And hubby in truth bought me breakfast due to the fact I uncovered it for him.. smile. So ok, i’ll reword that: Thnx to the treat! But yeah Thnkx for spending plenty of time to discuss this, Personally i think strongly regarding it and adore reading more on this topic. Whenever possible, as you grow expertise, could you mind updating your website with additional details? It is highly ideal for me. Big thumb up just for this article! 안전놀이터

haider 说:
2023年8月23日 22:49

You must be very astute at research and writing. This shows up in your original and unique content. I agree with your primary points on this topic. This content should be seen by more readers. เว็บพนันบอลออนไลน์อันดับ1

forex market 说:
2023年8月24日 19:04

I’m very happy to read this. This is the type of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this best doc. UFABET เว็บพนันแตกง่าย

haider 说:
2023年8月24日 19:10

I like this info shown and it has given me some sort of commitment to succeed for some reason, so thank you. เว็บบอลออนไลน์UFA

haider 说:
2023年8月25日 13:55

There is noticeably big money to understand about this. I assume you made certain nice points in functions also. สมัครแทงบอลฟรี

forex market 说:
2023年8月25日 14:56

I’d must talk with you here. Which isn’t something I do! I quite like reading an article that may make people think. Also, appreciate your permitting me to comment! เว็บไซต์แทงบอลอันดับ1

forex market 说:
2023年8月26日 01:22

Hi there, just became aware of your blog through Google, and found that it’s really informative. I¡¦m going to watch out for brussels. I will appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers! เว็บพนันออนไลน์UFA

haider 说:
2023年8月27日 18:36

After study many of the blog articles in your web site now, and i truly such as your technique for blogging. I bookmarked it to my bookmark internet site list and are checking back soon. Pls look into my site also and inform me how you feel. 메이저사이트

haider 说:
2023年8月30日 17:20

I will immediately snatch your rss feed as I can not in finding your email subscription link or e-newsletter service. Do you’ve any? Kindly allow me recognise so that I may subscribe. Thanks. 메이저사이트

haider 说:
2023年9月04日 13:55

There couple of intriguing points soon enough in this article but I do not know if I see every one of them center to heart. There exists some validity but I will take hold opinion until I investigate it further. Good write-up , thanks therefore we want far more! Included in FeedBurner likewise 안전놀이터

forex market 说:
2023年9月05日 13:50

I would not pretend to realize precisely why, however I personally could not hope to truly uncover what I was ready after. I had been perplexed and this very article cut through the common solutions that only demonstrate deficiency of content. Thank you a lot. salingsilang

sdsds 说:
2023年9月08日 22:43

What I wouldnt give to have a debate with you about this. You just say so many things that come from nowhere that Im fairly positive Id have a fair shot. Your blog is terrific visually, I mean people wont be bored. But others who can see past the videos and the layout wont be so impressed with your generic understanding of this subject. hawaiian shirt with guns on it

haider 说:
2023年9月08日 23:23

That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for every one of the enthusiasm to supply such tips here. filmyzilla 2023

haider 说:
2023年9月14日 21:46

My goal is to get in better shape so I can participate in all activities when I shaperone the class trip to the nature center. สล็อต

haider 说:
2023年9月20日 14:06

We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you. croc birthday

jmaes 说:
2023年9月24日 14:32

Youre so cool! I dont suppose Ive read anything in this way just before. So nice to seek out somebody by original ideas on this subject. realy we appreciate you starting this up. this excellent website is one area that is required on the internet, somebody with a little originality. helpful problem for bringing a new challenge on the internet! shillong teer common number

jmaes 说:
2023年10月02日 23:48

I’d must talk with you here. Which isn’t something I do! I quite like reading an article that may make people think. Also, appreciate your permitting me to comment! Kalaastar song lyrics

seo service london 说:
2023年10月03日 18:10

It was thinking about whether I could utilize this review on my other site, I will connect it back to your site though.Great Thanks

ds 说:
2023年10月12日 19:19

Quickly your website can unquestionably acquire well known being among the most regarding submitting buyers, for the meticulous content articles or simply just essential critiques. Gutter Cleaning Poole

ds 说:
2023年10月14日 01:24

The the next occasion Someone said a blog, I really hope who’s doesnt disappoint me about this blog. After all, I know it was my choice to read, but I just thought youd have some thing intriguing to talk about. All I hear is really a number of whining about something you could fix in case you werent too busy seeking attention. transparent training bra

ds 说:
2023年10月21日 14:14

Thanks for sharing superb informations. Your web-site is very cool. I’m impressed by the details that you have on this blog. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for extra articles. You, my friend, ROCK! I found simply the information I already searched all over the place and simply could not come across. What a great website. แทงบอลเงินสด

james 说:
2023年11月03日 23:50

This is really too a very great publishing all of us critically skilled searching via. It's not even close to every day we now have danger to look at something. https://sky888.win/

뉴토끼 说:
2023年11月06日 20:15

You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming

툰코 说:
2023年11月06日 20:22

This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info

industrial outdoor s 说:
2023年11月07日 13:59

I am impressed with this internet site , very I am a big fan .Great job here on. I read a lot of blog posts, but I never heard a topic like this. I Love this topic you made about the blogger's bucket list. Very resourceful..I adore each of the threads, I relished, I'd really like much more information with this, mainly because it is quite pleasant., Appreciate it intended for giving

토토사이트 说:
2023年11月07日 19:29

터키에서 온라인 스포츠 베팅을 할 수있는 베팅 사이트 목록은 바로 방문하십시오.

뉴토끼 说:
2023年11月08日 14:39

이 훌륭한 정보를 갖고 싶습니다. 난 그것을 너무 좋아한다!

안전놀이터 说:
2023年11月08日 20:11

이 기사에서 훌륭한 작업을 수행했습니다. 매우 정확하고 질적입니다. 읽기 쉽고 읽기 쉽게 만들었습니다. 당신은 진짜 글쓰기 재능이 있습니다. 정말 고맙습니다

메이저놀이터 说:
2023年11月08日 20:16

내 웹 사이트에서 비슷한 텍스트를 볼 수 있습니다.

메이저놀이터 说:
2023年11月09日 14:13

이런 종류의 사이트를 방문 할 수있는 좋은 기회 였고 나는 기쁘게 생각합니다. 이 기회를 주셔서 정말 감사합니다

카지노사이트 说:
2023年11月09日 14:44

유용한 정보를 공유해 주셔서 감사합니다.

안전놀이터 说:
2023年11月09日 15:13

체중 감량에 성공하려면 외모 이상에 집중해야합니다. 기분, 전반적인 건강 및 정신 건강을 활용하는 접근 방식이 가장 효율적입니다. 두 가지 체중 감량 여정이 똑같지 않기 때문에 대대적 인 체중 감량을 달성 한 많은 여성에게 정확히 어떻게했는지 물었습니다.

카지노사이트 说:
2023年11月09日 16:56

I need to to thank you for this very good read!! I definitely loved every little bit of it. I have you bookmarked to check out new things you post

메이저놀이터 说:
2023年11月09日 17:40

계속 게시하고 정보를 업데이트하세요.

WonderWrks 说:
2023年11月09日 18:56

This type of is apparently absolutely outstanding. These kinds of tiny fact is made making use of wide variety regarding certification know-how. My partner and i favour the theory much. https://hb88a.win/

토토사이트 说:
2023年11月09日 19:44

"이것은 훌륭한 기사입니다. 많은 정보를 감안할 때 이러한 유형의 기사는 사용자의 웹 사이트에 대한 관심을 유지하고 계속해서 더 많은 정보를 공유합니다. 행운을 빕니다.

안전놀이터 说:
2023年11月09日 20:01

유용한 정보를 공유해 주셔서 감사합니다.

뉴토끼 说:
2023年11月13日 14:56

이것은이 유용한 메시지를 공유하기위한 특별한 요소입니다. 이 블로그에있는 정보에 놀랐습니다. 그것은 여러 관점에서 나를 일으킨다. 이것을 다시 한 번 게시하기 위해 감사의 빚이 있습니다.

툰코 说:
2023年11月13日 22:30

Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing <a href="https://툰코주소.net/">툰코</a>

marble polishing in 说:
2023年11月13日 23:04 These types of feels 100 % most effective. These minimal information and facts will be built coupled with numerous track record information and facts. I favor this significantly. https://www.salt-shaq.com
카지노놀이터 说:
2023年11月15日 15:07

이 멋진 정보를 얻게되어 정말 감사합니다

토토사이트 说:
2023年11月16日 15:17

This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again

더블유벳 说:
2023年11月16日 17:11

이 훌륭한 정보를 갖고 싶습니다. 난 그것을 너무 좋아한다!

토토사이트추천 说:
2023年12月12日 17:17

"초기 당신은 멋진 블로그를 얻었습니다. 나는 결심에 더하기 균일 한 분을 포함합니다. 나는 당신이 정말로 매우 기능적인 문제를 가지고 있다고 생각합니다. 나는 항상 당신의 블로그 축복을 확인하고 있습니다.

카지노사이트 说:
2023年12月14日 19:12

" '훌륭한 유용한 리소스를 무료로 제공하는 가격을 알 수있는 웹 사이트를 보는 것이 좋습니다. 귀하의 게시물을 읽는 것이 정말 마음에 들었습니다. 감사합니다!

토토사이트 说:
2023年12月19日 17:57

Cool stuff you have got and you keep update all of us

토토사이트 说:
2023年12月19日 22:50

"초기 당신은 멋진 블로그를 얻었습니다. 나는 결심에 더하기 균일 한 분을 포함합니다. 나는 당신이 정말로 매우 기능적인 문제를 가지고 있다고 생각합니다. 나는 항상 당신의 블로그 축복을 확인하고 있습니다.

무료스포츠중계 说:
2023年12月21日 19:23

If you are looking for more information about flat rate locksmith Las Vegas check that right away.

1인샵 说:
2023年12月28日 16:44

Hi, This is a nice article you shared great information I have read it thanks for giving such a wonderful Blog for the reader.

1인샵 说:
2023年12月28日 16:44

Hi, This is a nice article you shared great information I have read it thanks for giving such a wonderful Blog for the reader.

shopify store erstel 说:
2024年1月04日 22:14

It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post.

고화질스포츠중계 说:
2024年1月08日 15:51

great article that help other to know what is happaned now... Please visit my web too for more similar info..
B

카지노뱅크 说:
2024年1月16日 16:05

이 훌륭한 정보를 갖고 싶습니다. 난 그것을 너무 좋아한다!

카지노 说:
2024年1月16日 20:23

이런 종류의 사이트를 방문 할 수있는 좋은 기회 였고 나는 기쁘게 생각합니다. 이 기회를 주셔서 정말 감사합니다

안전사이트 说:
2024年1月28日 21:39

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.

토토사이트 说:
2024年1月31日 17:31

A superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place

메이저사이트 说:
2024年2月01日 14:35

This website and I conceive this internet site is really informative ! Keep on putting up

온라인카지노 说:
2024年2月01日 19:17

이 정보 메시지를 공유 할 수있는 훌륭한 기능입니다. 이 블로그에 대한 지식에 깊은 인상을 받았습니다. 여러면에서 도움이됩니다. 다시 게시 해 주셔서 감사합니다.

카지노사이트 说:
2024年2月01日 20:35

Your topic is very great and useful for us… thank you

스포츠중계 说:
2024年2月01日 23:17

This is really awesome, am so glad to read this informative article. 

안전한 바카라 사이트 说:
2024年2月03日 19:52

I would like to say that this blog really convinced me to do it! Thanks, very good post

온라인카지노 说:
2024年2月04日 17:43

I truly like you're composing style, incredible data, thankyou for posting.

토토사이트 说:
2024年2月06日 14:58

This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this..

바둑이 뷰어 프로그램 说:
2024年2月06日 17:32

I have read your article, it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it

소액결제현금화 说:
2024年2月10日 14:30

This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this..


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter