feature request #3362
openEnabling sound files (mp3) in EDITor and data portal
0%
Description
I'm sorry, but again I need something new :/
Media should allow more than images only. Currently I would like to add sound files (mp3) and in the future also videos. I have found a huge platform for bird sounds that can be used under cc license. So I wanna use them.
Requirements:
mp3 included in supported media file formats
mp3 player included in data portal (play directly at portal without downloading it)
Link to source web entry
License (name and link)
Examples:
Test with data portal: http://dev.e-taxonomy.eu/dataportal/corvidae/cdm_dataportal/taxon/5bb04ca1-e622-49e2-8c3a-1148b612d78e
Source of mp3: http://www.xeno-canto.org/recording-embed.php?XC=67123
Code for embedding see (the one with sonogram is perfect!): http://www.xeno-canto.org/recording-embed.php?XC=67123
Feel free to change milestone, component and priority as usual...
DataPortal¶
The native html5 support for the different video and audio encodings is quite limited, therefore it is still needed to use rather traditional techniques. A good choice for a library seems jplayer
Updated by Andreas Müller about 10 years ago
- Category changed from cdm to cdmlib
- Target version set to cdmlib RELEASE 3.2
The Editor currently throws the folloing error when reading an mp3
java.io.IOException: org.apache.sanselan.ImageReadException: Can't parse this format. at eu.etaxonomy.cdm.common.media.ImageInfo.readImageInfo(ImageInfo.java:124) at eu.etaxonomy.cdm.common.media.ImageInfo.NewInstance(ImageInfo.java:51) at eu.etaxonomy.taxeditor.ui.section.media.MediaRepresentationElement.handleEvent(MediaRepresentationElement.java:117) at eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement.propertyChange(AbstractEntityCollectionElement.java:201) at eu.etaxonomy.taxeditor.ui.element.AbstractFormSection.firePropertyChangeEvent(AbstractFormSection.java:213) at eu.etaxonomy.taxeditor.ui.element.AbstractFormSection.propertyChange(AbstractFormSection.java:267) at eu.etaxonomy.taxeditor.ui.section.media.MediaRepresentationPartSection.propertyChange(MediaRepresentationPartSection.java:86) at eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement.firePropertyChangeEvent(AbstractCdmFormElement.java:237) at eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement.firePropertyChangeEvent(AbstractCdmFormElement.java:265) at eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement.firePropertyChangeEvent(AbstractCdmFormElement.java:254) at eu.etaxonomy.taxeditor.ui.section.media.ImageFileElement.handleEvent(ImageFileElement.java:147)
So the file can be entered but meta data will not be read. MIME Type needs to be set manually to e.g. audio/mpeg.
Updated by Andreas Müller about 10 years ago
AK:
Der Editor behandelt bisher alle Media als Image:
class "ImageFile",
created "2013-03-24T15:34:46.000+01:00",
height 0,
mediaRepresentation null,
size 0,
updated "2013-03-25T15:29:09.873+01:00",
uri "http://www.xeno-canto.org/sounds/uploaded/SGNUEQHVBW/B05h32m46s20may2010_crowHooded.mp3",
uuid "15694178-46eb-4f92-9737-5c85cad208f6",
width 0
Andreas
Updated by Andreas Müller about 10 years ago
Hallo Gabi,
Könntest du den MIME Type mal per Hand anpassen auf audio/mpeg und sehen was im Portal passiert.
Im Editor werde ich versuchen das den Fehler beim auslesen der Meta Daten zu fixen. Das ist aber nicht so krititsch, da du den MIME Type wie gesagt auch per Hand eingeben kannst.
Kritischer ist evtl., dass er automatisch ein ImageFile anlegt statt einer einfachen MediaRepresentation.
Viele Grüße,
Andreas M.
Updated by Andreas Müller about 10 years ago
It is not that easy to determine the correct MIME for each type of files:
http://stackoverflow.com/questions/51438/getting-a-files-mime-type-in-java
http://www.rgagnon.com/javadetails/java-0487.html
http://stackoverflow.com/questions/8488491/how-to-accurately-determine-mime-data-from-a-file
MP3 originally has no Metadata (http://de.wikipedia.org/wiki/MP3#Tagging). However there are several standards how to add them.
Software for reading also exists (e.g. http://www.jthink.net/jaudiotagger/)
Updated by Andreas Müller about 10 years ago
das abspielen übernehmen die Browser oder eine andere Applikation je nach Einstellung.
Ich müsste nur im Dataportal checken ob Sound und Video auch in die Webseiten auch richtig eingebunden werden.
Andreas
On Monday 25 March 2013 10:59:11 Müller, Andreas wrote:
Hallo Andreas,
Wie ist denn da der Stand portalseitig. Können mp3s abgespielt werden. Fehlt noch irgendetwas datenseitig? Haben wir glaube ich kürzlich erst besprochen, ich bin aber immer so vergesslich.
AM
Updated by Gabriele Dröge about 10 years ago
ok, ich hab den MIME-type jetzt manuell eingetragen mit audio/mpeg. Jetzt verschwindet immerhin das thumbnail im Portal. Aber die url des mp3 steht lediglich im Quellcode.
LG Gabi
Updated by Andreas Müller about 10 years ago
Replying to g.droege:
ok, ich hab den MIME-type jetzt manuell eingetragen mit audio/mpeg. Jetzt verschwindet immerhin das thumbnail im Portal. Aber die url des mp3 steht lediglich im Quellcode.
LG Gabi
Ich habe gerade mit AK gesprochen. Fürs abspielen von mp3 und ähnlichem müsste er noch ein paar php Zeilen hinzufügen im Portal Code, was er die nächsten Tage vermutlich macht. Mit HTML5 wird ja jetzt sowieso alles besser in Bezug auf Medienwiedergabe.
Updated by Gabriele Dröge about 10 years ago
Super, danke! So eilig hatte ich es ja gar nicht ;)
Und wie funktioniert das mit den Sonogrammen? Ist da was spezielles für nötig? Siehe Beispiel: http://www.xeno-canto.org/recording-embed.php?XC=67123
Bliebe noch die saubere Modellierung im EDITor von:
Link to source web entry (not link to mp3 file) hab ich bei Description Element reingetan
License (name and link) hab ich bei Description vom Media reingetan
Updated by Andreas Müller about 10 years ago
Replying to g.droege:
Super, danke! So eilig hatte ich es ja gar nicht ;)
Und wie funktioniert das mit den Sonogrammen? Ist da was spezielles für nötig? Siehe Beispiel: http://www.xeno-canto.org/recording-embed.php?XC=67123
Ich denke, da kümmert sich AK drum, kenne ich mich auch nicht so mit aus
Bliebe noch die saubere Modellierung im EDITor von:
Link to source web entry (not link to mp3 file) hab ich bei Description Element reingetan
was ist das genau?
License (name and link) hab ich bei Description vom Media reingetan
Wenn du ein Media in z.B: der ImageGallery ausgewählt hast, sollte im Supplemental Data View auch der "Rights" Teil kommen. Dort solltest du so etwas eingeben können. Allerdings fehlt hier noch ein bischen ein Link auf Standardlizenzen wie CC-BY etc.
Updated by Gabriele Dröge about 10 years ago
Replying to a.mueller:
Link to source web entry (not link to mp3 file) hab ich bei Description Element reingetan
was ist das genau?
Entweder die Zitierung wie vom Provider gefordert, z.B. "Louis A. Hansen, XC67123. Accessible at www.xeno-canto.org/67123" oder nur "http://www.xeno-canto.org/67123"
License (name and link) hab ich bei Description vom Media reingetan
Wenn du ein Media in z.B: der ImageGallery ausgewählt hast, sollte im Supplemental Data View auch der "Rights" Teil kommen. Dort solltest du so etwas eingeben können. Allerdings fehlt hier noch ein bischen ein Link auf Standardlizenzen wie CC-BY etc.
OK, ja das funktioniert, aber ich will es ja nicht extra in die ImageGallery schieben, sondern es soll beim richtigen Feature dranhängen, in die ImageGallery kommt es portalseitig ja von alleine. Kann man das nicht auch außerhalb der ImageGallery zulassen?
Updated by Andreas Müller about 10 years ago
OK, passen dann die source web entries nicht in die References? Allerdings ist das zugegebenerweise ein bischen aufwendig zum eingeben. Muss ich nochmal drüber nachdenken. Bin mir immer noch nicht ganz sicher, ob ich deren Semantik in Gänze verstehe.
Zu den fehlenden Suplemental data: das ist wirklich ein mir bislang nicht bekannter Bug: neues Ticket gibt es unter #3367. Cherian setzt sich da vermutlich nächste Woche dran. Wir wollen das Thema Supplemental Data auch nochmal grundsätzlicher angehen: #3368.
Updated by Andreas Kohlbecker over 9 years ago
- Target version changed from cdmlib RELEASE 3.3.0 to cdmlib RELEASE 3.3.1
moving unresolved tickets to next release milestone due release of version 3.3
Updated by Andreas Müller over 8 years ago
- Priority changed from Priority08 to Highest
Updated by Andreas Kohlbecker about 8 years ago
- Target version changed from cdmlib RELEASE 3.5.0 to cdmlib RELEASE 3.5.1
moving tickets to next milestone
Updated by Andreas Müller about 8 years ago
- Target version changed from cdmlib RELEASE 3.5.1 to cdmlib RELEASE 3.5.2
move open 3.5.1 tickets to next milestone after release
Updated by Andreas Müller over 7 years ago
- Target version changed from cdmlib RELEASE 3.5.2 to Unassigned CDM tickets
Updated by Andreas Müller over 6 years ago
- Tags set to corvidae
- Description updated (diff)
- Target version changed from Unassigned CDM tickets to Release 4.6
Updated by Andreas Müller about 6 years ago
- Target version changed from Release 4.6 to Release 4.7
Updated by Andreas Müller about 6 years ago
- Target version changed from Release 4.7 to Release 4.8
Updated by Andreas Müller almost 6 years ago
- Target version changed from Release 4.8 to Release 4.9
Updated by Andreas Müller almost 6 years ago
- Target version changed from Release 4.9 to Release 4.10
Updated by Andreas Müller over 5 years ago
- Target version changed from Release 4.10 to Release 4.12
Updated by Andreas Müller over 5 years ago
- Target version changed from Release 4.12 to Release 4.13
Updated by Andreas Müller over 5 years ago
- Target version changed from Release 4.13 to Release 4.14
Updated by Andreas Müller over 5 years ago
- Target version changed from Release 4.14 to Release 5.0
Updated by Andreas Müller about 5 years ago
- Target version changed from Release 5.0 to Release 5.1
Updated by Andreas Müller almost 5 years ago
- Target version changed from Release 5.1 to Release 5.2
Updated by Andreas Müller almost 5 years ago
- Target version changed from Release 5.2 to Release 5.3
Updated by Andreas Müller over 4 years ago
- Target version changed from Release 5.3 to Release 5.5
Updated by Andreas Müller over 4 years ago
- Target version changed from Release 5.5 to Release 5.6
Updated by Andreas Müller over 4 years ago
- Target version changed from Release 5.6 to Reviewed Next Major Release