Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

SDK / exoplayer

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Find file History
  • Source code
  • Download zip
  • Download tar.gz
  • Download tar.bz2
  • Download tar
Switch branch/tag
  • exoplayer
  • ..
  • transformerdumps
  • mp4
  • andrewlewis's avatar
    Fix audio encode timestamp off by one · d43fe347
    Simplify the audio encoder input timestamp calculation. The new calculation
    avoids drifting by tracking the total number of bytes encoded rather than
    tracking the timestamp and remainder separately, and also makes the timestamps
    match the decoder output buffer timestamps.
    
    Also switch one of the export tests that was passing through AMR samples over
    to using WAVE audio. The problem with using AMR is that the compressed samples
    are not necessarily an integer number of audio frames and the shadow decoder
    would pass them from input to output, so the audio encoder was receiving
    non-integer numbers of audio frames.
    
    Tested by logging the timestamps at the decoder output and encoder input with
    forcing transcoding audio, and verifying that after this change the audio
    timestamps are no longer off by one.
    
    PiperOrigin-RevId: 523409869
    andrewlewis committed Apr 12, 2023
    d43fe347
Name
Last commit
Last Update
..
sample.mp4.48000hz.dump Loading commit data...
sample.mp4.concatenated.dump Loading commit data...
sample.mp4.concatenated_with_high_pitch_and_no_video.dump Loading commit data...
sample.mp4.dump Loading commit data...
sample.mp4.noaudio.dump Loading commit data...
sample.mp4.novideo.dump Loading commit data...
sample.mp4.silence_then_audio.dump Loading commit data...
sample.mp4.silence_then_audio_with_effects.dump Loading commit data...
sample.mp4.silentaudio.dump Loading commit data...
sample_18byte_nclx_colr.mp4.dump Loading commit data...
sample_18byte_nclx_colr.mp4.silentaudio.dump Loading commit data...
sample_ac3.mp4.fallback.dump Loading commit data...
sample_sef_slow_motion.mp4.dump Loading commit data...
sample_with_increasing_timestamps_320w_240h.mp4.clipped.dump Loading commit data...
sample_with_increasing_timestamps_320w_240h.mp4.clipped_and_concatenated.dump Loading commit data...