Error exporting audio

i am getting this error on a particular flow only when i export it by itself. if i include it with all the other flows, no error:

application.log

022-02-26 19:03:34.719 [info] ping response received: from silk service
2022-02-26 19:04:19.799 [info] ping response received: from silk service
2022-02-26 19:04:56.674 [info] Executing command: File.Export?FilterID=AudioFileExportFilter
2022-02-26 19:05:04.879 [info] ping response received: from silk service
2022-02-26 19:05:11.914 [info] addEventsForAudition() adding 320 events to buffer #:0
2022-02-26 19:05:11.914 [info] addEventsForAudition() adding 153 events to buffer #:320
2022-02-26 19:05:11.934 [info] processAuditionEvents() - processed 473 events
2022-02-26 19:05:11.966 [error] Error exporting audio
Error exporting audio
Audio Export Error Code: -994
2022-02-26 19:05:39.943 [info] addEventsForAudition() adding 1 events to buffer #:0
2022-02-26 19:05:39.963 [info] processAuditionEvents() - processed 1 events
2022-02-26 19:05:40.092 [info] notifyPostCommandExecute: File.Export?FilterID=AudioFileExportFilter (43417 ms)
2022-02-26 19:05:40.092 [error] Error exporting audio

it’s a bug. if i select just the one flow and don’t check, export each flow separately, the export works, if i select that flow but do check the box, the app gets a “path exceeds maximum length” error:

vstaudioengine.log - box not checked

2022-02-26 19:19:56 : AudioExport: chan 5, [20.000000,62.762740], samplerate 48000.000000, sampleFormatSize 2, channel 2, format 3
2022-02-26 19:19:56 : ID3Tag: ramblings_orchestra_v30 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke);;;;;1
2022-02-26 19:19:56 : File: /D:/Dorico Projects/Flows/Flows from Ramblings an FTD journey - Orchestra/ramblings_orchestra_v30 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke).mp3
2022-02-26 19:19:56 : Audio Export: Started2022-02-26 19:19:59 : Audio Export: Done (noError)

vstaudioengine.log - box not checked

2022-02-26 19:20:03 : License Info: ping response received: from silk service
2022-02-26 19:20:07 : License Info: ping response received: from silk service
2022-02-26 19:20:07 : License Info: ping response received: from silk service
2022-02-26 19:20:48 : License Info: ping response received: from silk service
2022-02-26 19:20:52 : License Info: ping response received: from silk service
2022-02-26 19:20:52 : License Info: ping response received: from silk service
2022-02-26 19:20:58 : AudioExport: chan 5, [20.000000,62.762740], samplerate 48000.000000, sampleFormatSize 2, channel 2, format 3
2022-02-26 19:20:58 : ID3Tag: ramblings_orchestra_v30 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke);;;;;1
2022-02-26 19:20:58 : File: /D:/Dorico Projects/Flows/Flows from Ramblings an FTD journey - Orchestra/04 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke)/ramblings_orchestra_v30 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke).mp3
2022-02-26 19:20:58 : Audio Export: Path exceeds maximum length

Are you on Dorico 4?
I thought we already fixed this.
Maybe we just raise “path too long” in the audio engine but Dorico then ignoring the error number. I will check…
Thanks for reporting

i am using Version 4.0.10.1044 (Jan 28 2022)
Dorico 4 AudioEngine Version 5.0.10.113
should dorico be using 8.3 format on windows internally for this issue ? see " GetShortPathNameW"
Alternatively , shorten the flow now. i did get around this by putting the title translation in the subtitle. Also, what clearly matters is the Flowname, not what prints on the score; therefore using shorter names for the flow name is certainly not onerous. However this needs to be more clearly documented (unless i missed something). Part of the confusion is, i think, caused by The relationship betweenthe names in the flow and the project info. It appears to work like this.
– the text used when creating the flow is used as the flow title, unless, it is modified in the flow name in the project info dialoge.
– the name used for the directories by the audio extract is the name in the flow one sees in the setup (where it lists the flows on the bottom of the screen

therefore, using short names in the flows in setup are stored separately internal and the printed names can be anything really long as long as the setup flow names are short

conclusion: you can have your cake and eat it too.

Documenting this clearly to a non tech audience might be challenging.

or am i incorrect in my conclusions

I don’t know, I have to have a look at it again. But from my understanding, it does not matter what the file or folder name is, it’s just that the total length of the path shall not exceed 256 characters. But I will do my investigations and come back.

My tests show that it is solely a matter of the overall path length. If it is longer than 260 characters ( 256 characters + “.wav” or “.mp3”) then the export fails.

The problem is rather how Dorico creates the export path. Depending on whether you just export a single flow or multiple flows it puts in an extra folder, and that folder name is based on the project and flow name. So if you have a long flow name, you easily get into that limit of 260 characters.

Look at your path in case of error (in bold is that extra folder I mentioned):

D:/Dorico Projects/Flows/Flows from Ramblings an FTD journey - Orchestra /04 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke)/ramblings_orchestra_v30 - 3-Ogni vita ha bisogno di un piccolo scherzo(every life needs a little joke).mp3

So the conclusion is:

  1. Dorico’s naming scheme is maybe not optimal when it comes to long names (project or flow).
  2. Dorico shall not only say “export error” but tell that the path is too long.

i agree. However, the point i was trying to make is that the string Dorico uses is the flow name not the title, which is what is printed on the score. As long as the flow name is short enough, the user will not have a problem. Therefore, what users need to know is that 1. they are different and 2. they can use anything as a title, but need to make sure that the flow name is short enough.

I disagree :slight_smile: If you have a long enough project title you equally run into the ‘too long path’ issue, even if your flows are just named “Flow 1” or so. Though admittedly, it is less likely that someone uses a very long project title

I just ran into this problem, with one flow out of four in the project. It would be nice if the error message was a bit more informative than “error exporting audio”, which implies a technical fault of some kind rather than a simple syntactic thing.

Hi @Marcabru , actually you are right. We will change it in the future.

Just noticed, also, that the mp3 file name includes both the Dorico file name and the project title. Maybe Dorico could default to the former in the absence of the latter, or where the two are identical – otherwise using only the project title?

I have read this whole thread and there is a wonderful solution to this problem.
Enable custom filenaming of audiofiles and stop creating folder upon folder with long names, that I delete anyway, once the export is done. It is cumbersome and superfluous.
And I am sorry to scratch this sore but this is possible in Sibilius. Why have you chosen, this remarkably awkward way to export audio???

1 Like