Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  good linux method for sync'ing music with rockbox directories
« previous next »
  • Print
Pages: [1]

Author Topic: good linux method for sync'ing music with rockbox directories  (Read 3178 times)

Offline gnychis

  • Member
  • *
  • Posts: 14
good linux method for sync'ing music with rockbox directories
« on: November 22, 2007, 02:04:29 PM »
Hey all,

I do not use GTKPod or iTunes to copy my music to my iPod, I use the method of copying the files to a Music folder on the iPod's filesystem and build the database with rockbox.

I was wondering if anyone has a good method to keep my music directories on my hard drive and iPod synced up nicely.  Currently every month or so I will just completely whipe the iPod clean and copy all of my music back over to ensure everything is there.  It's too difficult for me to keep track of what I recently rip and transfer it to my iPod.  I want to be able to run something that checks if there is inconsistency between the two directories and push changes to the iPod.

Thanks!
George
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: good linux method for sync'ing music with rockbox directories
« Reply #1 on: November 22, 2007, 02:23:02 PM »
A simple one is to use "cp -ruv", that will recursively update the destination with the source (v is for verbose, you might not want it). However it doesn't remove dest files that you removed in the source, and won't detect renames.
Logged

Offline riksweeney

  • Member
  • *
  • Posts: 74
    • Parallel Realities
Re: good linux method for sync'ing music with rockbox directories
« Reply #2 on: November 22, 2007, 02:33:48 PM »
I do something similar, I place this script in my Music directory:

Code: [Select]
vorbisgain -afsr *
mp3gain -r Singles/*.mp3
cp -urv * /media/IHP-100/Music/
Logged
The Legend of Edgar

Offline aj

  • Member
  • *
  • Posts: 4
Re: good linux method for sync'ing music with rockbox directories
« Reply #3 on: November 23, 2007, 11:16:09 PM »
I use a bash script I wrote with rsync handling the synchronization part. The relevant code is something like this:

Code: [Select]
rsync --delete-after --modify-window=1 -vruLty --exclude=.DS_Store $mediadir $device

This method will use your music folder as the "master list" and make any necessary additions/deletions on your iPod.
« Last Edit: November 23, 2007, 11:22:27 PM by aj »
Logged

Offline scharkalvin

  • Member
  • *
  • Posts: 332
Re: good linux method for sync'ing music with rockbox directories
« Reply #4 on: November 24, 2007, 07:23:07 PM »
I think Amarok will do that as well.  Amarok is a music player sorta like itunes, but for KDE and not handling the ipod data base.
Logged

Offline gnychis

  • Member
  • *
  • Posts: 14
Re: good linux method for sync'ing music with rockbox directories
« Reply #5 on: November 29, 2007, 01:52:50 AM »
first, I never knew about the -u flag for cp, that's very useful thanks

Quote from: aj on November 23, 2007, 11:16:09 PM
I use a bash script I wrote with rsync handling the synchronization part. The relevant code is something like this:

Code: [Select]
rsync --delete-after --modify-window=1 -vruLty --exclude=.DS_Store $mediadir $device

This method will use your music folder as the "master list" and make any necessary additions/deletions on your iPod.

and this method is awesome, thank you too :)
Logged

Offline wildertux

  • Member
  • *
  • Posts: 6
Re: good linux method for sync'ing music with rockbox directories
« Reply #6 on: January 18, 2012, 01:11:45 PM »
will this thread little bit update ;D
sorry for my bad english!
it is useless to use:
Code: [Select]
mp3gain */*.mp3
that will say all files are the same Album  :-\
for mp3gain i use:
Code: [Select]
find "<MUSICDIR>" -type d | while read dir; do mp3gain -T -d 3 -s i "$dir"/*.[mM][pP]3;done
this search any subfolder(Album,Collection,single,VA-Album), and starts for any subfolder the mp3gain!
mp3gain -T (change tag directly, without temp-files) -d 3 (use 89+3=92db) -s i (writes only id3v2Tags)!
I only use mp3 but you can add gain-command for other formats!
Attention a problem is:
mp3gain can use wrong tagformat, that can be result in a damaged tag! :o
i use for mp3's tag only v2.4 with UTF8, no problems, but easytag will update tags after mp3gain usage!
you should create a testfolder and or a backup!

append:
i have test more with linux-mp3gain:
mp3gain everytime damage the id3v2 tag, the problem is two RVA tags that in wrong format!
other software can not read or will change entrys, but thats results in bigger problems like AlbumArt kill! :o

the only other alternate are foobar2000 under wine, but thats instable and not Batch-mode!
will search for other Method, so long!
« Last Edit: January 21, 2012, 06:21:41 AM by wildertux »
Logged

Offline wildertux

  • Member
  • *
  • Posts: 6
Re: good linux method for sync'ing music with rockbox directories
« Reply #7 on: January 26, 2012, 06:12:19 AM »
mp3gain is dead :)
sorry for my bad english
aacgain is now standard, but its only gain not replaygain!
and what should i do with my old mp3files with mp3gain damaged id3v2.4:
not usable:
 * Perl -> only Audio::Scan can read correct, but not write!
 * EyeD3 ->has a update function, but this kills Cover Album Arts
usable:
 * EasyTag GUI Software -> and change one Frame(Copyright=easytagupdate) on all files to force
    correct the id3v2.4, but than you have an entry in all files, and it will be cost much time!
 * Kid3 GUI Software but it is the same problem like EasyTag!
 * write a little python script, that use mutagen, only read tag and then write tag! voila is corrected!
    Code will be updated!
Code: [Select]
#!/usr/bin/env python
import mutagen
from mutagen.easyid3 import EasyID3
audio = EasyID3("example.mp3")
audio.save()
    to install mutagen i have use "pip",you can use easy_install from py-setup-tools too, or
    package-Manager like synaptic!

so long
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  good linux method for sync'ing music with rockbox directories
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.1 seconds with 14 queries.