Skip to content

Ogg files with implausibly long durations #6

@cheesestraws

Description

@cheesestraws

Hi,

I have a number of ogg files here for which Audio::Scan returns implausibly long durations:

$ perl -MAudio::Scan -MData::Dumper -e 'print Data::Dumper->Dump( print Data::Dumper->Dump([Audio::Scan->scan("/mnt/media/home/media/player/Other/B/Berestez/Kahvi Collective Archive Vol 1/Plokcity.ogg")]))'
$VAR1 = {
          'tags' => {
                      'TRACKNUMBER' => '2',
                      'DATE' => '2003',
                      'GENRE' => 'electronica',
                      'TITLE' => 'Plokcity',
                      'ALBUM' => 'Kahvi Collective Vol 1',
                      'VENDOR' => 'Xiphophorus libVorbis I 20011231',
                      'ARTIST' => 'Berestez'
                    },
          'info' => {
                      'blocksize_1' => 512,
                      'bitrate_upper' => 0,
                      'file_size' => 7335534,
                      'bitrate_nominal' => 192003,
                      'song_length_ms' => '18446744071562067968', **<-- should be something more like 372400**
                      'bitrate_average' => 27,
                      'stereo' => 1,
                      'version' => 0,
                      'serial_number' => 32321,
                      'samplerate' => 44100,
                      'blocksize_0' => 4096,
                      'bitrate_lower' => 0,
                      'audio_size' => 7331474,
                      'channels' => 2,
                      'jenkins_hash' => 978199415,
                      'audio_offset' => 4060
                    }
        };

ffmpeg does parse the duration correctly:

...
[ogg @ 0x5602c91d7fc0] 107 bytes of comment header remain
Input #0, ogg, from '/mnt/media/home/media/player/Other/B/Berestez/Kahvi Collective Archive Vol 1/Plokcity.ogg':
  Duration: 00:06:12.40, start: 0.000000, bitrate: 157 kb/s
...

I should mention that the files showing the issue are, I believe, freely distributable, so I can send those over if useful.

Thanks!

Rob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions