You are not logged in.

#1 2008-11-24 16:03:32

Exitium
Member
From: Helsinki, Finland
Registered: 2008-08-20
Posts: 202

How to play .ape files with Amarok [SOLVED, converted to flac]

So how can I play .ape lossless audio with Amarok? Amarok says, that file is unplayable. I can play the file with MPlayer, though.

Last edited by Exitium (2008-11-26 15:45:00)

Offline

#2 2008-11-24 16:42:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,818

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

According to this you can't. You'd need gstreamer, and Amarok hasn't been building against gstreamer for quite a while now. I thought Phonon could work with gstreamer though, so maybe you have more luck if you use KDE 4's Amarok (you didn't say what you were using anyway?).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2008-11-24 16:50:03

Exitium
Member
From: Helsinki, Finland
Registered: 2008-08-20
Posts: 202

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

B wrote:

According to this you can't. You'd need gstreamer, and Amarok hasn't been building against gstreamer for quite a while now. I thought Phonon could work with gstreamer though, so maybe you have more luck if you use KDE 4's Amarok (you didn't say what you were using anyway?).

Sorry, I am using KDE3 version (1.4.10).

But that's a pity. Well, I'll test KDE4 version of Amarok (I have planned to test it for several days) and if it doesn't help, then I try to do something else.

I also tried to convert these files to .flac or .mp3. I tried it with audio-convert (from community-repo), but it says that format is not supported. But description says that .ape files are supported. hmm

Offline

#4 2008-11-26 15:35:26

Exitium
Member
From: Helsinki, Finland
Registered: 2008-08-20
Posts: 202

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

No luck with Amarok 2. Nice new player, though.

So, does anybody know how to convert these .ape files into .flac or .mp3 (or other)? As I said, no luck with audio-convert.

Offline

#5 2008-11-26 15:39:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,880

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

Exitium wrote:

No luck with Amarok 2. Nice new player, though.

So, does anybody know how to convert these .ape files into .flac or .mp3 (or other)? As I said, no luck with audio-convert.

Newer revisions of FFmpeg can decode ape files, and it can use either an external or internal libraries for flac. You can try this for a single file. For the external libraries:

ffmpeg -i <your_ape_file> -acodec libflac <your_output_file>.flac

For the internal libraries:

ffmpeg -i <your_ape_file> -acodec flac <your_output_file>.flac

This won't keep your tags though.

Last edited by skottish (2008-11-26 15:43:39)

Offline

#6 2008-11-26 15:44:31

Exitium
Member
From: Helsinki, Finland
Registered: 2008-08-20
Posts: 202

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

skottish wrote:
Exitium wrote:

No luck with Amarok 2. Nice new player, though.

So, does anybody know how to convert these .ape files into .flac or .mp3 (or other)? As I said, no luck with audio-convert.

Newer revisions of FFmpeg can decode ape files, and it can use either an external or internal libraries for flac. You can try this for a single file. For the external libraries:

ffmpeg -i <your_ape_file> -acodec libflac <your_output_file>.flac

For the internal libraries:

ffmpeg -i <your_ape_file> -acodec flac <your_output_file>.flac

This won't keep your tags though.

Second command did the trick. Thank you very much.

Well, I think the problem is solved. smile

Offline

#7 2008-11-26 15:48:02

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,880

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

Exitium wrote:

Second command did the trick. Thank you very much.

Well, I think the problem is solved. smile

You're welcome. Giving advice on FFmpeg is always tricky because I don't know what the capabilities of the version in the repos are, as well I have no idea what you're set up is like. I'm just glad that it worked.

Last edited by skottish (2008-11-26 15:48:28)

Offline

#8 2012-02-15 14:37:12

felixhummel
Member
From: World, Europe, Germany, Bayern
Registered: 2007-10-25
Posts: 3
Website

Re: How to play .ape files with Amarok [SOLVED, converted to flac]

Thanks!

This won't keep your tags though.

Actually you can keep your tags with the "-map_meta_data" option. Here's my script "ape2flac":

#!/bin/bash
# vim: set fileencoding=utf-8 filetype=sh :
fname="$1"
base=$(basename "$fname" .ape)
flacname="$base.flac"

set -x
ffmpeg -i "$fname" -map_meta_data "$fname":"$flacname" -acodec flac "$flacname"

And call it like this

./ape2flac foo_bar.flac

Unfortunately it does not work for file names with spaces but I don't mind as I like underscores better anyway. wink

Offline

Board footer

Powered by FluxBB