Project

General

Profile

Actions

feature request #3362

open

Enabling sound files (mp3) in EDITor and data portal

Added by Gabriele Dröge about 11 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Highest
Category:
cdmlib
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Tags:

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

see also #2452, #3630, #3631, #3635

Actions #1

Updated by Andreas Müller about 11 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.

Actions #2

Updated by Andreas Müller about 11 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

Actions #3

Updated by Andreas Müller about 11 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.

Actions #4

Updated by Andreas Müller about 11 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/)

Actions #5

Updated by Andreas Müller about 11 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

Actions #6

Updated by Gabriele Dröge about 11 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

Actions #7

Updated by Andreas Müller about 11 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.

Actions #8

Updated by Gabriele Dröge about 11 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

Actions #9

Updated by Andreas Müller about 11 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.

Actions #10

Updated by Gabriele Dröge about 11 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?

Actions #11

Updated by Andreas Müller about 11 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.

Actions #12

Updated by Andreas Kohlbecker over 10 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

Actions #13

Updated by Andreas Müller over 9 years ago

  • Priority changed from Priority08 to Highest
Actions #14

Updated by Andreas Kohlbecker about 9 years ago

  • Target version changed from cdmlib RELEASE 3.5.0 to cdmlib RELEASE 3.5.1

moving tickets to next milestone

Actions #15

Updated by Andreas Müller almost 9 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

Actions #16

Updated by Andreas Müller over 8 years ago

  • Target version changed from cdmlib RELEASE 3.5.2 to Unassigned CDM tickets
Actions #17

Updated by Andreas Müller over 7 years ago

  • Tags set to corvidae
  • Description updated (diff)
  • Target version changed from Unassigned CDM tickets to Release 4.6
Actions #18

Updated by Andreas Müller about 7 years ago

  • Target version changed from Release 4.6 to Release 4.7
Actions #19

Updated by Andreas Müller almost 7 years ago

  • Target version changed from Release 4.7 to Release 4.8
Actions #20

Updated by Andreas Müller almost 7 years ago

  • Target version changed from Release 4.8 to Release 4.9
Actions #21

Updated by Andreas Müller over 6 years ago

  • Target version changed from Release 4.9 to Release 4.10
Actions #22

Updated by Andreas Müller over 6 years ago

  • Target version changed from Release 4.10 to Release 4.12
Actions #23

Updated by Andreas Müller over 6 years ago

  • Target version changed from Release 4.12 to Release 4.13
Actions #24

Updated by Andreas Müller about 6 years ago

  • Target version changed from Release 4.13 to Release 4.14
Actions #25

Updated by Andreas Müller about 6 years ago

  • Target version changed from Release 4.14 to Release 5.0
Actions #26

Updated by Andreas Müller almost 6 years ago

  • Target version changed from Release 5.0 to Release 5.1
Actions #27

Updated by Andreas Müller almost 6 years ago

  • Target version changed from Release 5.1 to Release 5.2
Actions #28

Updated by Andreas Müller over 5 years ago

  • Target version changed from Release 5.2 to Release 5.3
Actions #29

Updated by Andreas Müller over 5 years ago

  • Target version changed from Release 5.3 to Release 5.5
Actions #30

Updated by Andreas Müller about 5 years ago

  • Target version changed from Release 5.5 to Release 5.6
Actions #31

Updated by Andreas Müller about 5 years ago

  • Target version changed from Release 5.6 to Reviewed Next Major Release
Actions #32

Updated by Andreas Müller almost 3 years ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF