I'm having some trouble with this function
GetContainerAttribute ( Table::audiofile ; "duration" )
It works, but if the audio file is shorter that 7 seconds I get an invalid value (?).
It's a bug or I am missing something?
Only mp3 and mp4 files work according to the documentation, is it possible it's an alternative format?
It could also be possible that the files themselves have some missing metadata.
Have you tried an ID3 tag editor to view the files and make sure the duration is a stored value?
And if you can confirm that the file type is correct and the metadata is there, please then click "home" above and post a product issue report to bring this to the attention of the FileMaker Techs.
Yes, I have checked the tags and they are correct.
If I use the "all" parameter I can see that the "duration" value it's not included for this short files. Seems to be a bug, at least on a Mac, can't say for the Windows version.
And they are .mp3 or .mp4 files?
Not .aiff, .wav, .m4a, etc... ?
Here a mp3 of 1 second, which in my case is not working
The file you posted does not appear to have any valid ID3 tags according to an editor I used. Are you absolutely sure those files have ID3 tags?
Funny, that's what I get if I open it with a tag editor (Tag Editor for MAC OS X - AMVidia )
Screen Shot on 2016-12-06 at 19:46:56.png • Droplr
I will try with another one then....
I didn't have one, this is the one I found/used: www.mp3tagmac.com
It claimed that there was a "problem" and it was that the ID3 was missing.
I think you were right about the missing tags, but it's a bit confusing.
I have tried also with Fission ( Fission on the Mac App Store ) , which seems to be a good one.
When I open the mp3 I can see the duration tag it's there, like in other mp3 editors
You can't change the value BUT, if I re-save the mp3, then it works also in FM.
It seems that while any other applications doesn't have any problem to recognise the duration of an audio file, and fill the tag when you open the file, FileMaker needs this value to be specified and saved with the file.
Well, media manipulation in FileMaker it's always been a bit complicated.....
Now I will have to batch re-save all this short mp3s, as many of them have this problem.
Thanks to everybody for the tips.
Retrieving data ...