ParhamP / Speech-Hacker

Makes famous people speak whatever you wish by linking their words
Apache License 2.0
370 stars 40 forks source link

Falls over with many WAV files in set #6

Closed opyate closed 7 years ago

opyate commented 7 years ago

Hello,

I see the following output:

ffmpeg version 0.8.18-6:0.8.18-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
  built on Oct  4 2016 17:59:06 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
[wav @ 0xb2bb20] max_analyze_duration reached
Input #0, wav, from '/opt/wav/filtered/1942_Dover_512kb.wav':
  Metadata:
    comment         : license:  http://creativecommons.org/licenses/publicdomain/
    date            : 1942
    title           : Dover - http://www.archive.org/details/1942_Dover
    encoder         : Lavf57.25.100
  Duration: 00:20:36.60, bitrate: 1536 kb/s
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'
ffmpeg version 0.8.18-6:0.8.18-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
  built on Oct  4 2016 17:59:06 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
[wav @ 0xc7ab20] max_analyze_duration reached
Input #0, wav, from '/opt/wav/filtered/1944-06-06_Eve_of_Battle_512kb.wav':
  Metadata:
    comment         : license:  http://creativecommons.org/licenses/publicdomain/
    date            : 1944
    title           : Eve of Battle, 1944/06/06 - http://www.archive.org/details/1944-06-06_Eve_of_Battle
    encoder         : Lavf57.25.100
  Duration: 00:19:28.61, bitrate: 1536 kb/s
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'

I'll investigate in a moment what this means:

Unrecognized option 'c'
Failed to set value 'copy' for option 'c'

UPDATE 2016-12-24 10:06

Falls over with many WAV files in set. I whittled it down to one and managed to generate a dictionary.

aalireza commented 7 years ago

Hi,

Thanks for letting us know. The thing is you're using an ffmpeg that's provided by libav-tools (which is a fork of ffmpeg itself). They broke compatibility while forking and from versions to versions as well!

Anyway I know where the problem is and can fix it, though I'd appreciate it if you could enter ffmpeg -ss 0 -t 30 -i input.wav output.wav (replace input.wav with that big audio file). Let me know what happens (There should be a new file created at the same directory whose length is 30seconds).

opyate commented 7 years ago

Hello, the copy issue turned out to be a non-issue, but it still crashes on my 5GB data set (I thought copy had something to do with it).

Since this is an issue with SimpleAudioIndexer, I'll open an issue there.