Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ogg files with implausibly long durations #6

Open
cheesestraws opened this issue Sep 7, 2019 · 2 comments
Open

Ogg files with implausibly long durations #6

cheesestraws opened this issue Sep 7, 2019 · 2 comments

Comments

@cheesestraws
Copy link

cheesestraws commented Sep 7, 2019

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

@andygrundman
Copy link
Owner

Thanks for the report. Can you send me the file so I can take a look?

@cheesestraws
Copy link
Author

It wouldn't let me upload it on its own, as it were, so I've zipped it.

Plokcity.ogg.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants