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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Line termination in m3u playlists
« previous next »
  • Print
Pages: [1]

Author Topic: Line termination in m3u playlists  (Read 2165 times)

Offline pwabrahams

  • Member
  • *
  • Posts: 37
Line termination in m3u playlists
« on: August 16, 2011, 09:14:57 AM »
What is the line termination convention for playlists?  Are they expected to use the DOS LF/CR termination or the Unix LF termination?  Or is either acceptable?

I'm having a problem with playlist entries not being recognized even though they look correct, and I'm wondering if a line termination issue might be the cause.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Line termination in m3u playlists
« Reply #1 on: August 16, 2011, 01:19:18 PM »
As far as I know there is no requirement for line terminators to be Unix or DOS. How exactly do those unrecognized entries look like? Do they possibly include non-ASCII characters?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline pwabrahams

  • Member
  • *
  • Posts: 37
Playlist and directory listing
« Reply #2 on: August 16, 2011, 04:34:46 PM »
Here are the first few tracks in the playlist in question:
Code: [Select]
#EXTM3U
#EXTINF:208000,01. Sinfonia
MUSIC/Cantata 021/01 - BWV 21 - Ich hatte viel Bekümmernis - 01. Sinfonia.ogg
#EXTINF:263000,02. Coro: Ich hatte viel Bekümmernis
MUSIC/Cantata 021/02 - BWV 21 - Ich hatte viel Bekümmernis - 02. Coro- Ich hatte viel Bekümmernis.ogg
#EXTINF:289000,03. Aria (S): Seufzer, Tränen, Kummer, Not
../MUSIC/Cantata 021/03 - BWV 21 - Ich hatte viel Bekümmernis - 03. Aria (S)- Seufzer, Tränen, Kummer, Not.ogg
#EXTINF:98000,04. Recitativo (T): Wie hast du dich, mein Gott
And here's the directory listing:
Code: [Select]
pwa@pwa-K60IJ:/media/0123-4567/MUSIC$ ls Cantata\ 021 | head -n 3
01 - BWV 21 - Ich hatte viel Bekümmernis - 01. Sinfonia.ogg
02 - BWV 21 - Ich hatte viel Bekümmernis - 02. Coro- Ich hatte viel Bekümmernis.ogg
03 - BWV 21 - Ich hatte viel Bekümmernis - 03. Aria (S)- Seufzer, Tränen, Kummer, Not.ogg
I only have this problem on a few albums, not on all of them.  And some of the ones that work have German track titles like these.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Line termination in m3u playlists
« Reply #3 on: August 16, 2011, 04:48:59 PM »
Is the playlist m3u or m3u8? The latter is a m3u file with utf-8 encoding, while the former uses the codepage setting. So depending on the encoding of the working playlists and their file extension the umlauts are your problem :)

The best way is to save the playlists with utf-8 encoding and use m3u8 as file extension.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline pwabrahams

  • Member
  • *
  • Posts: 37
Encoding issues
« Reply #4 on: August 18, 2011, 10:41:06 PM »
Is it sufficient to rename the playlist from Play1.m3u to Play1.m3u8, or do I need to do more than that?  I'm generating my playlists in Amarok, and it doesn't seem to have a way to specify UTF8 encoding.  I don't know about other playlist-generating programs.
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Line termination in m3u playlists
« Reply #5 on: August 19, 2011, 09:28:40 AM »
A rename isn't enough. Non-ASCII characters are encoded differently in an m3u8 file.

Using a plain m3u file should work, if you choose the right codepage setting in Rockbox (it must match what you have on your PC - or rather, what Amarok writes).
Logged

Offline pwabrahams

  • Member
  • *
  • Posts: 37
Codepage settings
« Reply #6 on: August 19, 2011, 09:47:49 AM »
Where is the codepage setting in Rockbox?  The only relevant thing I can find is that both m3u and m3u8 are acceptable playlist formats.  Amarok doesn't seem to have a codepage setting either.  Does Windows Media Player?

Or is there something else I can do to get Amarok and Rockbox onto the same page?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Line termination in m3u playlists
« Reply #7 on: August 19, 2011, 11:59:29 AM »
Since Linux distributions default to utf-8 encoding these days (at least as far as I know) I suspect the file to be utf-8. I'd try renaming it from m3u to m3u8 and see if it works -- I wouldn't be surprised for Amarok to use the default encoding, so an m3u could very well be utf-8.

Apart from that, try file to figure the encoding.

In Rockbox, see General Settings / Display / Default Codepage.
« Last Edit: August 19, 2011, 12:01:03 PM by bluebrother »
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline pwabrahams

  • Member
  • *
  • Posts: 37
Renaming playlists from m3u to m3u8 seems to work
« Reply #8 on: August 20, 2011, 03:21:57 PM »
I tried renaming one of my playlists from m3u to m3u8, and now it works as it should.  The renaming might conceivably introduce other problems, but so far I haven't seen any.

Thanks for the pointer!!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Line termination in m3u playlists
 

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

Page created in 0.073 seconds with 14 queries.