Page 1 of 1

pfpbatchtag.exe Cue points are not working

Posted: 02 Oct 2025 14:48
by 789 FM
Hi Berndt

I am using the pfpbatchtag.exe tool to apply metadata from somewhere else to our music files.

For the textual metadata (title, artist, album, year, ...) everything works as expected.

But the fields for the cue points (cueInMS, fadeInMS, ...) don't seem to apply the cue points, even though they are clearly available in the export file.

This is my import format:

Code: Select all

<format name="RadioImport" type="CSV" extension=".tsv" delimiter="TAB" useHeader="True" quote="" quoteEsc="" quoteHeader="True" trim="False" comment="#" encoding="UTF-8" internal="RADIOIMPORT" import="MetaData">
    <fields>
      <field name="filename" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="title" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="artist" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="album" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="year" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="cueInMS" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="rampMS" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="ramp2MS" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="nextMS" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="outroMS" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="fadeOutMS" start="0" length="0" align="left" pad=" ">${X}</field>
      <field name="cueOutMS" start="0" length="0" align="left" pad=" ">${X}</field>
    </fields>
  </format>
  
I am running the pfpbatchtag.exe using:

Code: Select all

.\pfpbatchtag.exe -f=generictxt RadioImport -i='C:\Testing\export.tsv'
Which is structured like this:

Code: Select all

filename	title	artist	album	year	cueInMS	rampMS	ramp2MS	nextMS	outroMS	fadeOutMS	cueOutMS
C:/Testing/Music/Some Test.mp3	Testing Title	Testing Artist	Testing Album	2025	167485			167485	151896		170465
The title, artist, album and year work every time, overriding the existing tags, but the cue points are not applied. There are no errors (export.tsv.errors file is emty)
The existing file also does not have any cue points set manually, although that doesn't make a difference here.

Could this be a bug? I am on the latest version.

Re: pfpbatchtag.exe Cue points are not working

Posted: 02 Oct 2025 17:48
by radio42
I will take a look. But I am not aware of a bug. Is your audio matching the cue points?

It also looks, that your cue-point values doesn't really make sense:

Code: Select all

filename{TAB}title{TAB}artist{TAB}album{TAB}year{TAB}cueInMS{TAB}rampMS{TAB}ramp2MS{TAB}nextMS{TAB}outroMS{TAB}fadeOutMS{TAB}cueOutMS
CueIn=167485
Ramp=na
Ramp2=na
Next=167485
Outro=151896
FadeOut=na
CueOut=170465
I.e. Next must be greater than CueIn. And 'unlogic' cue-points are ignored.

Re: pfpbatchtag.exe Cue points are not working

Posted: 03 Oct 2025 00:30
by radio42
Now I see the real issue!
You have not given a duration value or durationMS value. One of them is mandatory to validate the CuePoints, else they are not saved, but just the standard TAGs are saved.

I.e. add that field to your format description as well as the .tsv file.

Re: pfpbatchtag.exe Cue points are not working

Posted: 08 Oct 2025 21:19
by 789 FM
Hi Bernd

This fixed my issues.

Thanks for looking into it!