Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213510

[Windows] MediaPlayer does not play some mp3 with artwork stream in mjpeg

    Details

    • Subcomponent:
    • Introduced In Build:
      b05
    • Introduced In Version:
    • CPU:
      x86_64
    • OS:
      windows

      Backports

        Description

        ADDITIONAL SYSTEM INFORMATION :
        Windows 10, Java 11.0.1, JavaFX 11

        A DESCRIPTION OF THE PROBLEM :
        MediaPlayer stays in state UNKNOWN with some mp3 files if they have artwork as second mjpeg stream.
        Those file are playable by iTunes and VLC without any problem, once artwork is removed using iTunes - MediaPlayer can play the file as expected.
        Specific file where issue was discovered is encoded with Lame3.99.
        Other files with artwork as png stream are ok. Some other files encoded with different encoders with mjpeg stream are not affected.
        Typical output from ffprobe for affected files looks as below:
        Input #0, mp3, from '01-01.mp3':
          Metadata:
            track : 1/49
            album_artist : XXX
            Engineer : XXX
            title : XXX
            album : XXX
            genre : XXX
            artist : XXX
            date : 2014-09-03
          Duration: 00:12:47.90, start: 0.000000, bitrate: 132 kb/s
            Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
            Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 583x520 [SAR 100:100 DAR 583:520], 90k tbr, 90k tbn, 90k tbc
            Metadata:
              comment : Cover (front)

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Play mp3 with mjpeg stream for artwork with MediaPlayer.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Music is playing.
        ACTUAL -
        Music is not playing.

        ---------- BEGIN SOURCE ----------
        Standard example of using MediaPlayer
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Remove artwork manually, however could be not possible by end users.

        FREQUENCY : always


          Attachments

          1. FXMediaPlayerTest.java
            1 kB
          2. Original_no_art.mp3
            9.55 MB
          3. Original.mp3
            9.89 MB

            Issue Links

              Activity

                People

                • Assignee:
                  almatvee Alexander Matveev
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: