Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Mplayer : use libcdio or cdparanoia ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Jan 19, 2010 10:35 am    Post subject: [Solved] Mplayer : use libcdio or cdparanoia ? Reply with quote

Hello,

Which library are you using for Mplayer ? libcdio or the libs included in cdparanoia ?
Apart from the apparent (in)activity on both projects, what are the good reasons to choose one rather than the other ?


Last edited by aCOSwt on Sun Jan 24, 2010 10:38 am; edited 1 time in total
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Tue Jan 19, 2010 4:08 pm    Post subject: Reply with quote

mplayer ebuild:
Code:

# libcdio support: prefer libcdio over cdparanoia
# don't check for cddb w/cdio
if use cdio; then
   myconf+=" --disable-cdparanoia"
else
   myconf+=" --disable-libcdio"
   use cdparanoia || myconf+=" --disable-cdparanoia"
   use cddb || myconf+=" --disable-cddb"
fi

if you have both flags on, mplayer ebuild will choose libcdio.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Jan 19, 2010 4:28 pm    Post subject: Reply with quote

You are right sebaro.
From the ebuild, it's ovious that mplayer prefers libcdio.
But I had read somewhere that it was a question of libcdio / cdparanoia project relative activity.
What I was wondering was if there were other (technical) reasons for preferring one over the other.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Jan 22, 2010 7:30 pm    Post subject: Reply with quote

Having used mplayer with both, I recall with cdparanoia it seemed flaky at best, whereas cdio works perfectly for me, also I think cddb only works with libcdio, not cdparanoia...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
GWilliam
Guru
Guru


Joined: 29 Dec 2005
Posts: 350

PostPosted: Sun Jan 24, 2010 7:18 am    Post subject: Reply with quote

#NULL

Last edited by GWilliam on Sun Jul 25, 2010 4:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sun Jan 24, 2010 10:37 am    Post subject: Reply with quote

GWilliam wrote:
However, I believe that cdparanoia provides better jitter correction than libcdio.

That is exactly the impression I had under FreeBSD. And, as I was not caring much about cddb, that is why I was a little puzzled by leaving cdparanoia for libcdio.

Thank you Hopeless and GWilliam for reporting your experience. I will follow you and opt for libcdio.
Back to top
View user's profile Send private message
MaratIK
n00b
n00b


Joined: 02 Apr 2003
Posts: 20
Location: Moscow, Russia

PostPosted: Sat Dec 17, 2011 8:59 pm    Post subject: Reply with quote

according http://www.gnu.org/s/libcdio/
libcdio already includes support for applications which depend on cdparanoia. So my choose is libcdio.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1753
Location: PB, Germany

PostPosted: Thu Jul 12, 2012 7:49 am    Post subject: ..and what about abcde, libcdio or cdparanoia? Reply with quote

So reading that website of libcdio it seems that the project already includes its own cdparanoia, the command is not as mentioned there "cd-paranoia" but "/usr/bin/libcdio-paranoia", at least for dev-libs/libcdio-0.83.
Now I wonder if media-sound/abcde-2.5.3 can deal with that...-> Ripping CD-A with abcde, libcdio or cdparanoia?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1753
Location: PB, Germany

PostPosted: Thu Jul 12, 2012 7:56 am    Post subject: Ripping CD-A with abcde, libcdio or cdparanoia? Reply with quote

So reading Mplayer : use libcdio or cdparanoia ? and that website of libcdio it seems that the project already includes its own cdparanoia, the command is not as mentioned there "cd-paranoia" but "/usr/bin/libcdio-paranoia", at least for dev-libs/libcdio-0.83.
Now I wonder if media-sound/abcde-2.5.3 can deal with that since it is calling cdparanoia ...and it cannot:
Code:
$ abcde
which: no cdparanoia in (/usr/local/bin:/usr....

Is the new libcdio-paranoia compatible, so I would just set $CDPARANOIA or $CDPARANOIAOPTS?
So far I would continue using the old cdparanoia for abcde only, since libcdio is the better one for mplayer(2).
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Jul 12, 2012 9:08 am    Post subject: Reply with quote

Massimo ...

I'm still using abcde-2.5.2 ... and haven't tried using libcdio. However, abcde.conf can be configured with the following variables:

Code:
CDROMREADERSYNTAX=cdparanoia
CDPARANOIA=cdparanoia 
CDPARANOIAOPTS="--never-skip=40"

The first of these deals with 'syntax' abcde will expect to encounter (cdparanoia could be replaced with cdda2wav, flac, dagrab, and possibly others). The second is the 'path' to the execuatble (in this case, cdparanoia) but I imagine /usr/bin/libcdio-paranoia could stand in place. The third are options passed to the application (which may help if something needs to be passed to libcdio-paranoia).

So, with the above it may be fairly staightforward to have libcdio-paranoia replace cdparanoia, please let us know how you get on.

HTH & best ...

khay
Back to top
View user's profile Send private message
jathlon
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2006
Posts: 89
Location: Canada

PostPosted: Fri Jul 13, 2012 11:15 am    Post subject: Reply with quote

You probably just don't have cdparanoia installed. Check. :)

There is a use flag that you can enable that will install cdparanoia and help prevent a little extra cruft in your world file.

Code:
~ $ emerge -pv media-sound/abcde

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-sound/abcde-2.5.3  USE="aac cdparanoia flac vorbis -id3 -lame -musicbrainz -normalize -replaygain -speex" 0 kB


I just ripped a bunch of CDs with abcde and it worked fine. (with cdparanoia)

j
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Fri Jul 13, 2012 9:52 pm    Post subject: Reply with quote

lbcdio (and friends) were created because of the lagging and developer issues in cdparanoia. As a general rule, we recommend that one, and more apps are starting to use it as well. We did switch it to default for mplayer because of it's improvements.

In all practical cases, though, use what works best for you.
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jul 14, 2012 6:57 pm    Post subject: Reply with quote

merged some posts above
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1753
Location: PB, Germany

PostPosted: Thu Aug 30, 2012 5:53 pm    Post subject: [SOLVED] abcde with libcdio Reply with quote

khayyam wrote:
Code:
CDROMREADERSYNTAX=cdparanoia
CDPARANOIA=cdparanoia 
CDPARANOIAOPTS="--never-skip=40"
The first of these deals with 'syntax' abcde will expect to encounter ....

Code:
CDPARANOIA=libcdio-paranoia
works fine.
Additionally cdparanoia needs to be emerged with USE="-cdparanoia". With this configuration abcde is already using libcdio. Since the interface is quite equal to old cdparanoia it seems to work well with the new libcdio-paranoia.
Code:
Grabbing track 02: Wild World...
cdparanoia III release 9.8 libcdio 0.83 x86_64-pc-linux-gnu
(C) 2001 Monty <monty@xiph.org> and Xiphophorus
(C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>

Report bugs to bug-libcdio@gnu.org

Ripping from sector   17540 (track  2 [0:00.00])
     to sector   32572 (track  2 [3:20.32])

Anyway after removing media-sound/cdparanoia abcde is failing with
Code:
which: no cdparanoia in (/usr/local/bin:/usr/bin:/bin:/...)
which: no icedax in (/usr/local/bin:/usr/bin:/bin:/...)
which: no icedax in (/usr/local/bin:/usr/bin:/bin:/...)
[ERROR] abcde: icedax is not in your path.
[INFO] Define the full path to the executable if it exists on your system.

Somehow it still checks for old cdparanoia while already using the libcdio. This is solved by additional:
Code:
CDROMREADERSYNTAX=cdparanoia

I guess when leaving this unset abcde is checking for the right backend by checking the PATH for cdparanoia. If found it uses $CDPARANOIA anyway which is a bit wrong. So setting CDROMREADERSYNTAX to cdparanoia avoids the check and expects any cdparanoia named $CDPARANOIA available.

For supporting libcdio for the future it would be nice to introduce CDROMREADERSYNTAX=libcdio. I'm going to forward our discussion here to the developer...
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
andrew.46
n00b
n00b


Joined: 24 Apr 2015
Posts: 1

PostPosted: Fri Apr 24, 2015 4:19 am    Post subject: Re: [SOLVED] abcde with libcdio Reply with quote

Massimo B. wrote:
For supporting libcdio for the future it would be nice to introduce CDROMREADERSYNTAX=libcdio. I'm going to forward our discussion here to the developer...


I guess there are a few easy work-arounds for this but formal support for libcdio has been added to abcde. I am more than happy to make any suggested changes to this commit so please let me know...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum