Skip to content

fetch_audio_duration is not working properly #192

Open
@grossir

Description

@grossir

I am copying this graph from freelawproject/courtlistener#440 which shows that for the same duration, we get different file sizes when querying the actual bucket (and checking the length of the downloaded bytes)

image
Another more colorful graph that takes the year from the date_created shows that the problem is from late 2019 to the present
image

Examples of wrong and correct durations:

  • one created in 2023 with duration 3028 (3028/60=50.46), but lasts 58:46 on the audio player

  • a correct one created in 2014 with duration 3029 that lasts 50:25 on the audio player (which roughly matches 3029/60 = 50.48)

  • one created in 2023 with duration 2000 (2000/60=33.33) but lasts 38:49 on the audio player.

  • a correct one created in 2014 with duration 2001 that lasts 33:18 minutes in the audio player

Code that needs correcting:

def fetch_audio_duration(request) -> HttpResponse:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions