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
| | |-+  Vorbis Comments in tagnavi_custom.config ?
« previous next »
  • Print
Pages: [1]

Author Topic: Vorbis Comments in tagnavi_custom.config ?  (Read 1356 times)

Offline felixculpa

  • Member
  • *
  • Posts: 3
Vorbis Comments in tagnavi_custom.config ?
« on: February 27, 2014, 12:45:45 PM »
Hi all,

I am trying to create on my Sansa Clip Zip a menu in the database under "Custom view" where it will show all tracks with a vorbis comment field (BPM in this case) that equals 120 or higher. I tried a few configs but the syntax confuses me and nothing is showing up in the menu besides the heading "High Tempo" when I enter Custom view. I have BPM (beats per minute) tagged using the echonest plugin for the Beets music organizer program, and I know for a fact there is a <BPM> = field on my tracks and a few of them definitely have a setting over 120, yet nothing is showing up.

Code: [Select]
#! rockbox/tagbrowser/2.0
# My custom database config stuff!

%format "fmt_bpm" "%02d %s" tracknum title

%menu_start "custom" "High Tempo"
"High Tempo" -> comment ? bpm >= "120" -> title = "fmt_bpm"

Any help would be extremely appreciated, as the girlfriend wants me to create a playlist for her rockbox of upbeat music and this would be the easiest solution using Rockbox's inbuilt capabilities.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Vorbis Comments in tagnavi_custom.config ?
« Reply #1 on: February 27, 2014, 02:13:53 PM »
Does rockbox even read the BPM tag?  If you go and look at the properties of one of these vorbis files does it show up? 
Logged

Offline felixculpa

  • Member
  • *
  • Posts: 3
Re: Vorbis Comments in tagnavi_custom.config ?
« Reply #2 on: February 27, 2014, 05:36:47 PM »
No it doesn't seem to show up that way, you might be onto something. However at the Database wiki here it says that the "Field" "comment" has full support in the filter, in place of condition and in formatting and under the notes column it says "ID3 or Vorbis comment string." The <BPM> field from everything I've read and can infer is indeed a Vorbis comment, so that is why I am perplexed as to how to make it work.

I should mention that my music files have a lot of tags, maybe the abundance of tags has something to do with it? Like Rockbox only reads so many before it stops?

The command vorbiscomment -l <music_file> | grep BPM gives the expected output too, so I don't think the file is corrupt or anything?
« Last Edit: February 27, 2014, 06:01:43 PM by felixculpa »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Vorbis Comments in tagnavi_custom.config ?
« Reply #3 on: February 27, 2014, 07:10:35 PM »
Vorbis tags are called "comments" in the Ogg specification, whereas the "comment" field is a specific field in ID3 tags where you can write text messages.  You can read the comment field in many tag formats, but I doubt you can read custom Vorbis tags like BPM.
Logged

Offline felixculpa

  • Member
  • *
  • Posts: 3
Re: Vorbis Comments in tagnavi_custom.config ?
« Reply #4 on: February 28, 2014, 02:18:03 PM »
I see, that makes perfect sense. I thought it was too good to be true thinking that Rockbox could filter by custom vorbis comments. Thanks for the help!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Vorbis Comments in tagnavi_custom.config ?
 

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

Page created in 0.066 seconds with 15 queries.