Jump to content

Need explanation about ratings saved in m3u8 playlists


Recommended Posts

Max will be able to tell us more about this new feature, but the way I read it is that Playlist files (.M3U, .M3U8, etc) can contain extra metadata information regarding the tracks that they contain, and Exporting a Playlist from Poweramp now includes the rating info for each listed song in the format:
   #EXT-X-RATING:<n>
where <n> is between 0 and 5

That new Settings option controls whether PA should re-read such metadata from Playlists, and apply it to songs, whenever a Playlist is re-scanned in from your device's storage.

It does not, as far as I've been able to test, do anything with the POPM ratings tags that can be included in normal song files (PA neither reads nor writes them) .

Andre

Link to post
Share on other sites

Poweramp doesn't sync ratings to tracks, but now allows syncing ratings via m3u8 playlists. For example you have a new device and you want to transfer everything without using backup software:
- on old device in Poweramp go to All Songs, add all songs to some playlist (for example to /Playlists/Ratings.m3u8)
- export Poweramp playlists, export Poweramp Settings
- copy music to the new device including exported playlists (that it, /Playlists)
- on new device in Poweramp import settings, then select/check your music folders in Settings / Library / Music Folders AND /Playlists folder

That will import ratings as well + all your previous playlists. You may remove Ratings.m3u8 playlist now or keep it for the future.
In the next builds, based on the feedback, the exporting/importing procedure probably will be simplified further.

Poweramp will import ratings from the previously exported m3u8 in two cases:
- there is no such playlist in Poweramp yet
- the playlist is explicitly opened via File Manager in Poweramp (that creates new playlist with "Imported..." label)

PS Ratings are not synced in Poweramp due to 3 issues:
- only few formats support them. To sync to/from all supported formats, we need to invent some non-standard tagging schemes
- many files in the wild are broken, have multiple tags at once, and writing tags to them will break them further to the unplayable state
- large files can't be tag edited reliable on mobile device when you app can be killed at any time not having chance to write that 1gb flac fully

Link to post
Share on other sites

@maxmp you can make the rating saved in mp3 files, their size is ~ 10Mb (or at least read the rating from the tags if there is one)
How else can I synchronize the rating from AIMP (PC) to Poweramp

For example, Player Pro and Neutron player can save raitings in tags

Link to post
Share on other sites

Max has always been reluctant to go down the route of saving ratings directly into audio files - although I agree that it does seem to work fine for other modern apps, and just reading a rating tag (if one is found) shouldn't be much of a problem during PA's library scanning phase.

I seem to recall that most of the issues were related to writing tags. While the tag is indeed very small (not quite your 10Mb :) ) in some circumstances it could still require the whole file to be re-written, which would cause playback issues if it is done on-the-fly. Also while ID3 has the POPM tag, which is pretty widely supported now, not all audio formats provide this. Personally, I would suggest writing a suitable tag to any file format that does support it, and if the entire file needs re-writing this should be done using a temporary file which only gets renamed and used after the write process has completed successfully.

Andre

Link to post
Share on other sites

@andrewilley the tag based ratings are definitely in the plans (for this year), but it requires some additional work on Poweramp tag scanner which is optimized for the scanning speed and for the reading tags from as much "broken" files as possible. Unfortunately, there are broken files in the wild and writing tags to them will break files to the point they can't be played and we can't do much about that (except may be detecting that case and not writing tag). I have subset of such test files (sent by our users) which fail badly in Foobar, VLC, old winamp, other players for PC. 

Editing tags require some minimal effort in Poweramp and user is somewhat aware of the process, while just hitting thumb up and breaking the file (or in the best case, detecting the bad file and not changing rating) will be very unexpected, I guess. 

Also, as you seen in other players, the number of rating tag "formats" is large. For example, mp3 file usually has id3v2 tag, but at the same time, APE tag may exist there, or multiple id3v2 tags with the conflicting rating. This is a mess.

The future tag rating code will indeed read ratings tags, but saving will be implemented via Settings export option with the appropriate warning messages (bad files will be skipped, slower but more accurate tag reading/writing code will be used there).

Link to post
Share on other sites
1 hour ago, maxmp said:

The future tag rating code will indeed read ratings tags, but saving will be implemented via Settings export option with the appropriate warning messages

Perfect, that should keep everyone happy without kill too many music files along the way.

Andre

Link to post
Share on other sites
On 7/17/2020 at 12:04 PM, andrewilley said:

Personally, I would suggest writing a suitable tag to any file format that does support it, and if the entire file needs re-writing this should be done using a temporary file which only gets renamed and used after the write process has completed successfully.

I completely agree that if the file is broken, then  do not need to overwrite it. We will wait for updates))

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...