INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: CD ripping for Linux MC in Beta (AMD64 only)  (Read 2610 times)

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
CD ripping for Linux MC in Beta (AMD64 only)
« on: December 16, 2022, 07:43:08 pm »

If you pull MC from the beta repo channel (you'll get 30.0.42) you can rip audio CD's with it.
Some caveats, it only uses one drive for now and that's /dev/sr0 (which is the base device often symlinked to /dev/cdrom and /dev/dvd, etc).
There may be issues with sector begin/end but since it seems to matchup TOC's with the Mac code I think it's ok.
It won't handle CD text yet (however most CD's don't have that anyway)
and it won't handle multisession or mixed audio/data CD's (I think, I've none to test).

Give it a spin and let me know. It works fine for me even on my old 2011 Macbook Pro running Buster.

Logged

eve

  • Citizen of the Universe
  • *****
  • Posts: 689
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #1 on: December 16, 2022, 07:46:32 pm »

If you pull MC from the beta repo channel (you'll get 30.0.42) you can rip audio CD's with it.
Some caveats, it only uses one drive for now and that's /dev/sr0 (which is the base device often symlinked to /dev/cdrom and /dev/dvd, etc).
There may be issues with sector begin/end but since it seems to matchup TOC's with the Mac code I think it's ok.
It won't handle CD text yet (however most CD's don't have that anyway)
and it won't handle multisession or mixed audio/data CD's (I think, I've none to test).

Give it a spin and let me know. It works fine for me even on my old 2011 Macbook Pro running Buster.

Does it use Whipper or?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #2 on: December 16, 2022, 07:50:57 pm »

It needs no additional libraries. It's using MC's built in Ripping/encoding code.
The underlying routines for low level reading, control, etc needed to be written.
Windows and Mac have a generic scsi layer that does that.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #3 on: December 16, 2022, 09:20:45 pm »

This is exciting news bob!  I noticed that a "CD" entry suddenly popped up in theater view on my Linux systems, which made me wonder if the plumbing was getting laid in for CD support.  I'll try to kick the tires over the weekend!

Just so I know, should plain playback work as well or does it only rip?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #4 on: December 17, 2022, 10:08:47 am »

Playback isn’t hooked up yet.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #5 on: December 17, 2022, 08:37:31 pm »

Playback isn’t hooked up yet.

So far my tests with the ripping function have everything working correctly.  I ripped four CDs, and the CD lookup and actual ripping seem to work quite well.  Direct playback does not work, but it sounds like that's expected.  The only hiccup I encountered is that the secure rip report popup window was much too small to contain the info in it, and was small enough that it was slightly difficult to resize.       

One other thing that surprised me is that the settings didn't default to secure ripping, which I think is the opposite of the Windows defaults, but maybe I'm misremembering?  Obviously not a major issue, just asking to make sure.

If there are any areas that need special testing let me know, but so far so good.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #6 on: December 17, 2022, 11:38:37 pm »

So far my tests with the ripping function have everything working correctly.  I ripped four CDs, and the CD lookup and actual ripping seem to work quite well.  Direct playback does not work, but it sounds like that's expected.  The only hiccup I encountered is that the secure rip report popup window was much too small to contain the info in it, and was small enough that it was slightly difficult to resize.       

One other thing that surprised me is that the settings didn't default to secure ripping, which I think is the opposite of the Windows defaults, but maybe I'm misremembering?  Obviously not a major issue, just asking to make sure.

If there are any areas that need special testing let me know, but so far so good.
Interesting. The rip report popup window was fine on mine. I'll check the settings.
Did your detect the changing of discs properly? I'm seem to have some issues with that.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #7 on: December 18, 2022, 10:23:24 am »

Interesting. The rip report popup window was fine on mine. I'll check the settings.
Did your detect the changing of discs properly? I'm seem to have some issues with that.

That's interesting.  When I was initially testing, I didn't see an issue, but I'm definitely seeing it right now.  I had to close and reopen MC to get it to acknowledge the new disk, no amount of ejecting and refreshing seemed to get it to update the new disc.  Not sure why it worked initially, but not now? 

FWIW, I remember having a similar non-deterministic problem with CD ripping in MC for windows back in the day, and several other folks did too; it would sometimes get stuck on an album and refuse to update.  It's been a few years, but here's a comparatively recent thread where folks are reporting the issue: https://yabb.jriver.com/interact/index.php/topic,126610.msg877952.html.  The trick that usually worked for me on windows was clicking the "update from online database" button a few times to get MC to recognize the new disc, but that isn't working with the current Linux builds (not sure if that button is even connected to anything at the moment, there's no feedback when pressing it).

It may not be related, but I wanted to throw that out in case it's a general issue masquerading as a Linux-specific one, if that makes sense?
Logged

bahringe

  • Recent member
  • *
  • Posts: 24
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #8 on: December 18, 2022, 12:35:56 pm »

Any ETA for this to work for Ubuntu?
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7798
  • Autumn shade...
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #9 on: December 18, 2022, 01:28:55 pm »

It should already work for Ubuntu, as long as you're using this amd64 beta build. However, it won't work if you're using 32-bit or ARM builds.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #10 on: December 19, 2022, 09:32:35 am »

That's interesting.  When I was initially testing, I didn't see an issue, but I'm definitely seeing it right now.  I had to close and reopen MC to get it to acknowledge the new disk, no amount of ejecting and refreshing seemed to get it to update the new disc.  Not sure why it worked initially, but not now? 

FWIW, I remember having a similar non-deterministic problem with CD ripping in MC for windows back in the day, and several other folks did too; it would sometimes get stuck on an album and refuse to update.  It's been a few years, but here's a comparatively recent thread where folks are reporting the issue: https://yabb.jriver.com/interact/index.php/topic,126610.msg877952.html.  The trick that usually worked for me on windows was clicking the "update from online database" button a few times to get MC to recognize the new disc, but that isn't working with the current Linux builds (not sure if that button is even connected to anything at the moment, there's no feedback when pressing it).

It may not be related, but I wanted to throw that out in case it's a general issue masquerading as a Linux-specific one, if that makes sense?
Thanks, I had to fix that on Mac too but there are differences between the implementations that need to be ironed out and it's pretty complex.
Easiest for me debugging on Mac and linux at the same time and following the flow since they are closer in implementation.
Logged

bahringe

  • Recent member
  • *
  • Posts: 24
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #11 on: December 19, 2022, 11:25:23 am »

I can report it works for Ubuntu 22.04.1 LTS and I have the same issue with recognizing a new disc is inserted. But being able to rip in MC is an awesome enhancement. THANK YOU!!!!!!!
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #12 on: December 19, 2022, 12:08:40 pm »

I really appreciate the feedback!
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #13 on: December 19, 2022, 05:52:57 pm »

Just updated the beta repo to 30.0.43.
Fixed the CD change detection. Started work on CD playback (not working yet).
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #14 on: December 19, 2022, 09:50:30 pm »

Just updated it again to handle tray loading drives.
Same version.
If you already downloaded it before 22:00 CST do:
sudo apt-get update
sudo apt-get install --reinstall mediacenter30
 
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #15 on: December 20, 2022, 08:56:49 pm »

Fixed a couple of issues, added CD audio playback and posted it in build 30.0.44
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13861
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #16 on: December 23, 2022, 11:34:25 am »

There was a problem with detecting old drives which is fixed in 30.0.45.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #17 on: January 06, 2023, 10:22:40 am »

Just an update: I've been using this to rip new CDs and it's working pretty well, but the after Rip report dialog is still spawning at a very small size that makes it hard to read.  Each time I resize it, but it never seems to remember the new size.  I'm on a 4k monitor using 2x scale if that makes any difference.  Otherwise the feature is working great for me!
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #18 on: March 18, 2023, 01:38:36 pm »

St. Paddy's weekend is always a good time for tinkering. I recently learned that the ancestors of my paternal grandmother originated around Campbeltown, Scotland:



Campbeltown and its lake are the subject of a fairly well-known Scottish ballad Campbeltown Loch, which laments in various fashions that the town's lake is filled with water and not scotch whisky. I did a quick search on discogs and discovered the venerable Andy Stewart did indeed cover the song at some point in his career (it's available on YouTube but in terrible quality, presumably from a vinyl rip) but mostly on vinyl and a few early greatest hits CDs. Being so prolific, sometimes the compilation albums are difficult to discern from each other due to lots of similar album titles with different track-lists, so it did take some serious hunting to find a legitimate copy, but luckily I eventually found one a couple of months ago...and it was lost in shipping.

Meanwhile CD ripping support for Linux on MC was released so I went ahead and bought the cheapest CD ripper I could find in preparation of hearing Campbeltown Loch in full fidelity:



It comes with a built-in cord, which is nice:



Plugged it in and it's recognized as a USB 1.1 device ;D. OK, it's going to be slow, luckily I only plan on ripping a few CDs I need for archiving.



Meanwhile I find an even better remastered Andy Stewart greatest hits CD on eBay with Campbeltown Loch from the UK. Luckily this one shows up, albeit with a few cracks:


As I pull the CD out I can't help think about its data density compared to modern storage technology, truly a relic. Anyways, I insert it and GNOME files opens and prompts me to open the disc in VLC (I wonder if I can change this in installJRMC):



Switch to MC and it's there!



Unfortunately the MC ripper couldn't find details on this CD, so I had to enter the data manually from the jewel case. The release is available on discogs so it would be nice to be able to enter the disc ID somehow and scrape this data if its available. It would also be nice to be able to enter the Album Artist and disc ID at this stage. Regardless I did my part and submitted the track info and the album art I found elsewhere to YADB.

And we're ripping:



Took about 30 minutes to rip the entire CD, incredibly slow as expected, but no errors. Thank you MC for ejecting it as well.



My listening device (Sony MDR-1AM2 + Youkamoo balanced cable + Fiio BTR3K w/ LDAC and improvised headlight mount):



Worth the effort! And thanks for bringing this capability to Linux. Once I have a varied enough Celtic Best Of list I'll be able to share the song with everyone on Cloudplay as well! I don't think it would pass the licensing requirements yet.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72413
  • Where did I put my teeth?
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #19 on: March 18, 2023, 01:43:11 pm »

Really nice story and a happy ending.

My mom was born a Galbraith!
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: CD ripping for Linux MC in Beta (AMD64 only)
« Reply #20 on: March 19, 2023, 03:09:21 am »

While waiting native musicbrainz/discogs integration in MC you could instead set up MCUtils to do the job for you
Logged
Pages: [1]   Go Up