Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    21

    Issue with international characters in filenames

    Hello,
    I have RPi3 LMS 7.9.2 installation. Music library located on a NAS. Music folders mounted via fstab.
    1. Issue is with international characters in filename in music library folder.
    This is music folder that I see in Raspberian: '/mnt/music/_Зарубежная'
    This is music folder, that I'm add in LMS after click 'Aapply' button: '/mnt/music/_—а€ƒбежная'
    2. If Music folder contains music files or folders with non-english characters in names (maybe inner tags?) Rescan Media Library doesn't work. After several files the scan process freezes. At the same time one of processor cores shows 100% load. Scanner log and Server log shows no errors. Abort scan doesn't work. The only way is to kill proccess.
    3. Material skin plugin freezes LMS while trying to access files with non-english characters via "Music folder". Classical Web UI work properly with non-english "Music folder" - no freeze of LMS.

    I tried new installation of RPi3 and LMS 7.9.2 and 7.9.1 with Audio Scan 1.02 and 0.95. But no success.
    Maybe any prefs may force LMS to decode filenames correctly?

  2. #2
    Junior Member
    Join Date
    Aug 2014
    Posts
    21
    This is the result of 12 hours scanning media library. After 12 hours I killed proccess.
    Name:  fdd1aff239661a8b6ea469ae75e087b7.png
Views: 327
Size:  7.8 KB

  3. #3
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,357
    Quote Originally Posted by pppaul View Post
    This is music folder that I see in Raspberian: '/mnt/music/_Зарубежная'
    This is music folder, that I'm add in LMS after click 'Aapply' button: '/mnt/music/_—а€ƒбежная'
    As every character is transcribed with two characters, I assume your OS is using Unicode and your LMS is not (probably cp 1252). You could try and add --charset=utf8 to your startup options as suggested here.

    Quote Originally Posted by pppaul View Post
    Maybe any prefs may force LMS to decode filenames correctly?
    What does LMS > Settings > Information say about encoding (Operating system)?
    Last edited by dolodobendan; 2019-01-16 at 07:11. Reason: added link
    QLMS 8.2@2.21 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4

  4. #4
    Junior Member
    Join Date
    Aug 2014
    Posts
    21
    Quote Originally Posted by dolodobendan View Post
    As every character is transcribed with two characters, I assume your OS is using Unicode and your LMS is not (probably cp 1252). You could try and add --charset=utf8 to your startup options as suggested here.
    What does LMS > Settings > Information say about encoding (Operating system)?
    Thanks, dolodobendan, for your answer. This forum is very responsive.
    As you mentioned my OS Raspberian and it UTF-8 by default. It is very strange that LMS for Debian is non UTF-8 by default. Here is my LMS > Settings > Information:

    Logitech Media Server Status
    Logitech Media Server Version: 7.9.2 - 1547382380 @ Sun Jan 13 13:49:07 CET 2019
    Hostname: raspberrypi
    Server IP Address: 192.168.1.11
    Server HTTP Port Number: 9000
    Operating system: Debian - EN - utf8
    Platform Architecture: armv7l-linux
    Perl Version: 5.24.1 - arm-linux-gnueabihf-thread-multi-64int
    Audio::Scan: 1.02
    IO::Socket::SSL: 2.044
    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
    Total Players Recognized: 2

    I made change to /etc/default/logitechmediaserver, now it looks:
    Code:
    # User to run Logitech Media Server as
    SLIMUSER=squeezeboxserver
    
    SLIMOPTIONS="--charset=utf8"
    Now I see filenames in LMS settings UI correct (point one from my thread checked).
    Material skin now works correct, LMS doesn't freeze (point three from my thread checked).

    The problem stay with Media Scan. It still doesn't work. I suppose the same cause.
    This is part of Scanner Log File:
    Code:
    [19-01-16 19:23:10.7105] main::main (205) Starting Logitech Media Server scanner (v7.9.2, 1547382380, Sun Jan 13 13:49:07 CET 2019) perl 5.024001
    [19-01-16 19:23:11.1132] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
    [19-01-16 19:23:11.4901] Slim::Music::Import::runImporter (511) Starting Slim::Media::MediaFolderScan scan
    [19-01-16 19:23:11.4910] Slim::Utils::Scanner::Local::rescan (181) Discovering audio files in /mnt/music
    [19-01-16 19:23:34.8800] Slim::Utils::Scanner::Local::__ANON__ (193) Start processing found tracks
    [19-01-16 19:23:34.8810] Slim::Utils::Scanner::Local::__ANON__ (201) Connect do DB
    [19-01-16 19:23:34.8815] Slim::Utils::Scanner::Local::__ANON__ (204) Get latest ID
    [19-01-16 19:23:34.8824] Slim::Utils::Scanner::Local::__ANON__ (226) Delete temporary table if exists
    [19-01-16 19:23:34.8830] Slim::Utils::Scanner::Local::__ANON__ (229) Re-build temporary table
    [19-01-16 19:23:35.0235] Slim::Utils::Scanner::Local::__ANON__ (278) Get deleted tracks count
    [19-01-16 19:23:35.0241] Slim::Utils::Scanner::Local::__ANON__ (285) Get new tracks count
    [19-01-16 19:23:35.0271] Slim::Utils::Scanner::Local::__ANON__ (290) Get changed tracks count
    [19-01-16 19:23:35.0279] Slim::Utils::Scanner::Local::__ANON__ (296) Removing deleted audio files (0)
    [19-01-16 19:23:35.0284] Slim::Utils::Scanner::Local::__ANON__ (374) Scanning new audio files (8935)
    [19-01-16 19:24:15.2783] Audio::Scan::scan (64) Warning: Unable to find any MP3 frames in file: /mnt/music/_Детские/Английский/13 Дорожка 13.mp3
    [19-01-16 19:24:22.5692] Audio::Scan::scan (64) Warning: Unable to find any MP3 frames in file: /mnt/music/_Детские/Английский/30 Дорожка 30.mp3
    [19-01-16 19:24:35.3020] Audio::Scan::scan (64) Warning: Error: Unable to read at least 4 bytes from file.
    [19-01-16 19:24:42.6599] Audio::Scan::scan (64) Warning: Error: Unable to read at least 4 bytes from file.
    [19-01-16 19:24:49.1090] Audio::Scan::scan (64) Warning: Unable to find any MP3 frames in file: /mnt/music/_Детские/Английский/45 Дорожка 45.mp3
    [19-01-16 19:24:54.2700] Audio::Scan::scan (64) Warning: Unable to find any MP3 frames in file: /mnt/music/_Детские/Английский/48 Дорожка 48.mp3
    I tested, Audio scan works correct with latin file names. So, are there any charset prefs for Audio Scan as it is stand alone process?

  5. #5
    Junior Member
    Join Date
    Aug 2014
    Posts
    21
    No, SLIMOPTIONS="--charset=utf8" doesn't work as it should. Here is Media Folders settings:

    Name:  778a3d4e7f9b80bd7bd5a8083716a686.png
Views: 306
Size:  21.6 KB

    The same folder looks different as Media Folder and as Playlist Folder. It looks like a bug.

  6. #6
    Senior Member
    Join Date
    Sep 2009
    Location
    Norway
    Posts
    307
    Hi Paul

    I have no experience, but in this thread, there's a response from deschman:
    https://forums.slimdevices.com/showt...ePlayer/page90

    If it works, can you report back here?

    Cheers,
    Claus

  7. #7
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,854
    Quote Originally Posted by pppaul View Post
    Hello,
    I have RPi3 LMS 7.9.2 installation. Music library located on a NAS. Music folders mounted via fstab.
    Hi
    at least there are two settings you should check first...

    Is any of these files playable with any other player on the rpi ?

    * Music library located on a NAS -> filesystem?
    * and shared as?
    * Music folders mounted via fstab. -> and this matches your encoding?

  8. #8
    Junior Member
    Join Date
    Aug 2014
    Posts
    21
    Quote Originally Posted by DJanGo View Post
    Hi
    at least there are two settings you should check first...

    Is any of these files playable with any other player on the rpi ?

    * Music library located on a NAS -> filesystem?
    * and shared as?
    * Music folders mounted via fstab. -> and this matches your encoding?
    Hi, DJanGo,
    Thank you for attention to this problem.
    * Music library located on a NAS -> filesystem?: NTFS
    * and shared as?
    * Music folders mounted via fstab. -> and this matches your encoding?

    I made folder /mnt/music and mounted music library there with this comand in fstab:
    Code:
    //192.168.1.2/music /mnt/music cifs username=ххххх,password=ххххх,iocharset=utf8,file_mode=0777,dir_mode=0777,vers=1.0 0 0
    All file names are visible correct by Raspbian OS. I may play music files with embedded player for ex. Audacious. I should say more. All of them are playable with LMS using Music Folder. The only Audio Scanner doesn't work...

  9. #9
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,357
    Quote Originally Posted by pppaul View Post
    The same folder looks different as Media Folder and as Playlist Folder. It looks like a bug.
    This happens here, too:

    Name:  lms_blablabla.png
Views: 249
Size:  16.4 KB

    But I have no problems with Cyrillic file or folder names. So perhaps it's just for libraries' root folders where it does not work (bug). Did you try renaming the folder in /mnt/music/_Zarubezhnaya? (Only this folder, not sub folders.)
    QLMS 8.2@2.21 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4

  10. #10
    Junior Member
    Join Date
    Aug 2014
    Posts
    21
    Quote Originally Posted by dolodobendan View Post
    This happens here, too:

    But I have no problems with Cyrillic file or folder names. So perhaps it's just for libraries' root folders where it does not work (bug). Did you try renaming the folder in /mnt/music/_Zarubezhnaya? (Only this folder, not sub folders.)
    Yes. Usually my music lib folder is /mnt/music. Those non-latin folders I used when trying to figure out problem. There are many non-latin file names in my folders. And part of them are pass Audio Scan normally. But paticular files freeze it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •