After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772657 - Convert FLAC files to ALAC files on synchronisation
Convert FLAC files to ALAC files on synchronisation
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: iPod
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-09 16:36 UTC by panium6
Modified: 2018-05-24 19:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add alac profile (1.26 KB, patch)
2016-10-15 08:25 UTC, Jonathan Matthew
committed Details | Review
ALAC track properties in latest iTunes (45.01 KB, image/png)
2016-10-15 17:45 UTC, gnome.vrb
  Details

Description panium6 2016-10-09 16:36:50 UTC
I have a large library of FLAC files, and an iPod classic. I would like to synchronise my lossless music to my iPod using Rhythmbox. Currently, Rhythmbox automatically synchronises FLAC files by converting them to (lossy) MPEG3 or MPEG4, which is already a nice feature.
This feature would be even more awesome if an extra option to convert FLAC files to ALAC files was added. Maybe there is already a plug-in that already adds this functionality, but I could not find it. Unfortunately, I am not skilled enough to write it myself either.
Comment 1 Jonathan Matthew 2016-10-15 08:17:18 UTC
If there was a GStreamer ALAC encoder element (I don't think there is) all you'd need to do would be to add the corresponding media type to the list of supported types in the ipod plugin.
Comment 2 Jonathan Matthew 2016-10-15 08:24:45 UTC
Apparently gstreamer-libav includes an alac encoder.
Comment 3 Jonathan Matthew 2016-10-15 08:25:58 UTC
Created attachment 337752 [details] [review]
add alac profile

I can't test this myself so I have no idea if it works.
Comment 4 panium6 2016-10-15 09:41:01 UTC
(In reply to Jonathan Matthew from comment #3)
> Created attachment 337752 [details] [review] [review]
> add alac profile
> 
> I can't test this myself so I have no idea if it works.

Your solution seems to be rather straightforward, that's cool :)
I tried compiling rythmbox from source with your edits, but I have some missing dependencies I cannot seem to resolve. I have very few experience with compiling from source, so it might just be a stupid error from my side.
Comment 5 gnome.vrb 2016-10-15 17:45:44 UTC
Created attachment 337763 [details]
ALAC track properties in latest iTunes

(In reply to Jonathan Matthew from comment #3)
> Created attachment 337752 [details] [review] [review]
> add alac profile
> 
> I can't test this myself so I have no idea if it works.

The patch works fine on latest git.

1. Extracted a FLAC track from Audio CD.
2. Selected ALAC in iPod properties.
3. Copied FLAC track to iPod.

Also, tested ALAC track in latest iTunes ( attached image )
Comment 6 Jonathan Matthew 2016-10-24 12:02:22 UTC
This only works if you select ALAC as your preferred format for the device, which means any files that aren't already in a supported format will be transcoded into ALAC, which is probably not what you want.  The existing setting that controls whether lossless files are always transcoded probably needs to be extended a bit.
Comment 7 Jonathan Matthew 2016-10-24 12:02:46 UTC
Review of attachment 337752 [details] [review]:

pushed as commit 10fb801
Comment 8 panium6 2017-03-13 08:46:47 UTC
Jonathan, I forgot to reply on your patch. I tried doing as you told, but syncing my iPod went horribly wrong. Thanks for the work you put into this. I hope that some day the transcoding settings per device are extended, as this would make things much more usable.
Comment 9 GNOME Infrastructure Team 2018-05-24 19:11:50 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/1521.