<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>293310</bug_id>
          
          <creation_ts>2025-05-20 12:31:05 -0700</creation_ts>
          <short_desc>Incorrect media time for Opus audio in an Ogg container.</short_desc>
          <delta_ts>2026-03-11 05:53:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Adams">chris</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>aptyget</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>jer.noble</cc>
    
    <cc>matt.russell</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2118474</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Adams">chris</who>
    <bug_when>2025-05-20 12:31:05 -0700</bug_when>
    <thetext>We recently ran into a problem with some Opus files which play correctly in every browser other than Safari. These are Ogg containers with 48kHz Opus streams - here&apos;s ffprobe&apos;s output:

[ogg @ 0x154e05bd0] 658 bytes of comment header remain
Input #0, ogg, from &apos;DB100298.opus&apos;:
  Duration: 07:32:36.61, start: 0.000000, bitrate: 24 kb/s
  Stream #0:0: Audio: opus, 48000 Hz, mono, fltp

If I use that file as the source for an &lt;audio&gt; tag, in Safari the total time will display as 7:58:26 in Safari and 7:32:36 in Chrome, Edge, Firefox, and tools like FFmpeg or VLC.

If I copy the Opus stream from the original Ogg container to a WebM container, Safari will load it with the correct time:

ffmpeg -i DB100298.opus -codec copy DB100298.webm

If I convert the Opus stream to a Vorbis stream in an Ogg container, it also has the correct time:

ffmpeg -i DB100298.opus -f ogg DB100298-vorbis.opus


This was reported on multiple systems running the latest Sequoia and Safari 18.5 (20621.2.5.11.8)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119066</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Adams">chris</who>
    <bug_when>2025-05-22 13:34:27 -0700</bug_when>
    <thetext>I reported this at https://feedbackassistant.apple.com/feedback/17678667 because it affects QuickTime Player as well as Safari, presumably being located in a system framework like Core Audio.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119082</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-05-22 14:25:06 -0700</bug_when>
    <thetext>rdar://151875752</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2165469</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Adams">chris</who>
    <bug_when>2025-12-12 11:12:05 -0800</bug_when>
    <thetext>I updated the version tag to reflect that the behaviour is unchanged in Safari 26.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>