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

ERROR_MEDIA_INVALID when playing MP4 file

    Details

      Description

      This issue is reproducible on Windows with 9 b80. This file works fine with 9 b79 or 8u60. Looks like regression from JDK-8043352.

        Issue Links

          Activity

          Hide
          almatvee Alexander Matveev added a comment -
          http://cr.openjdk.java.net/~almatvee/8135304/webrev.00/

          This issue affects all MP4 files with header at the end of file and when file is larger then 10 megs.

          - javasource was not supporting GST_QUERY_SEEKING and thus qtdemux assumed that file is not seekable and thus was not able to find header.
          - After fixing above file still was not played, because javasource was not able to send NEW SEGMENT after it send EOS. Fixed by flushing source pad on javasource.
          - Also, we need to clear pending events in progressbuffer when seek is performed, otherwise it breaks playback intermittently by sending wrong sequence of events.
          Show
          almatvee Alexander Matveev added a comment - http://cr.openjdk.java.net/~almatvee/8135304/webrev.00/ This issue affects all MP4 files with header at the end of file and when file is larger then 10 megs. - javasource was not supporting GST_QUERY_SEEKING and thus qtdemux assumed that file is not seekable and thus was not able to find header. - After fixing above file still was not played, because javasource was not able to send NEW SEGMENT after it send EOS. Fixed by flushing source pad on javasource. - Also, we need to clear pending events in progressbuffer when seek is performed, otherwise it breaks playback intermittently by sending wrong sequence of events.
          Hide
          stayer Kirill Kirichenko (Inactive) added a comment -
          Approved.
          Show
          stayer Kirill Kirichenko (Inactive) added a comment - Approved.
          Show
          almatvee Alexander Matveev added a comment - http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/6f0872422591

            People

            • Assignee:
              almatvee Alexander Matveev
              Reporter:
              almatvee Alexander Matveev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: