Sarjuuk / aowow

Database viewer for TrinityCore based on aowow by @LordJZ, based on the JS-Engine of Wowhead
206 stars 218 forks source link

Reencoding sound files error #109

Closed dikkedeur closed 7 years ago

dikkedeur commented 7 years ago

i am currently reencoding the wav files. seems that everything works well but on the last end this error pops up.

Input #0, mp3, from './cinematicvoices/deathknightnarration.mp3':
  Metadata:
    title           : DeathKnightNarration
    album           : Wrath of the Lich King
    artist          : Russell Brower
    genre           : Soundtrack
    date            : 2008
  Duration: 00:00:51.44, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0xfef1c0] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x1d0a440] Skipping 522 bytes of junk at 256.
[mp3 @ 0x1d0a440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/bloodelfnarration.mp3':
  Metadata:
    title           : BloodElfNarration
    album           : WoW BC
    artist          : Russell Brower
    genre           : Soundtrack
    date            : 2006
  Duration: 00:01:22.63, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x1d0d1c0] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x23b7440] Skipping 522 bytes of junk at 0.
[mp3 @ 0x23b7440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/draeneinarration.mp3':
  Metadata:
    title           : DraeneiNarration
    artist          : Derek Duke
    album           : WoW BC
    date            : 2006
    genre           : Soundtrack
  Duration: 00:01:13.67, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x23b9940] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x770440] Skipping 417 bytes of junk at 0.
[mp3 @ 0x770440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/dwarfnarration.mp3':
  Metadata:
    title           : DwarfNarration
    artist          : Glenn Stafford
    album           : World of Warcraft
    date            : 2004
    genre           : Other
  Duration: 00:01:01.63, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[NULL @ 0x772f40] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x1f82440] Skipping 417 bytes of junk at 256.
[mp3 @ 0x1f82440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/gnomenarration.mp3':
  Metadata:
    title           : GnomeNarration
    album           : World of Warcraft
    artist          : Derek Duke
    genre           : Other
    date            : 2004
  Duration: 00:01:18.22, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[NULL @ 0x1f84f80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x1fef440] Skipping 0 bytes of junk at 2108.
[mp3 @ 0x1fef440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/humannarration.mp3':
  Metadata:
    title           : HumanNarration-new
    encoded_by      : iTunes v4.2.0.72
    artist          : Jason Hayes
    TCM             : Jason Hayes
    album           : World of Warcraft
    genre           : Soundtrack
  Duration: 00:01:28.06, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x1ff1dc0] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x223c440] Skipping 0 bytes of junk at 2199.
[mp3 @ 0x223c440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/nightelfnarration.mp3':
  Metadata:
    title           : NightElfNarration_withmusic
    artist          : Jason Hayes
    TCM             : Jason Hayes
    album           : World of Warcraft
    encoded_by      : iTunes v4.5
    genre           : Soundtrack
    date            : 2004
  Duration: 00:01:48.07, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x223ef80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x1d9e440] Skipping 0 bytes of junk at 2097.
[mp3 @ 0x1d9e440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/orcnarration.mp3':
  Metadata:
    title           : OrcNarration
    encoded_by      : iTunes v4.5
    artist          : Jason Hayes
    TCM             : Jason Hayes
    album           : World of Warcraft
    genre           : Soundtrack
  Duration: 00:01:12.07, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x1da0dc0] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x2515440] Skipping 417 bytes of junk at 256.
[mp3 @ 0x2515440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/taurennarration.mp3':
  Metadata:
    title           : TaurenNarration
    album           : World of Warcraft
    artist          : Glenn Stafford
    genre           : Other
    date            : 2004
  Duration: 00:01:15.16, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[NULL @ 0x2517f80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x6da440] Skipping 0 bytes of junk at 2108.
[mp3 @ 0x6da440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/trollnarration.mp3':
  Metadata:
    title           : TrollNarration-new
    encoded_by      : iTunes v4.2.0.72
    artist          : Jason Hayes
    TCM             : Jason Hayes
    album           : World of Warcraft
    genre           : Soundtrack
  Duration: 00:01:04.05, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x6dcdc0] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x9aa440] Skipping 417 bytes of junk at 256.
[mp3 @ 0x9aa440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './cinematicvoices/undeadnarration.mp3':
  Metadata:
    title           : UndeadNarration
    album           : World of Warcraft
    artist          : Derek Duke
    genre           : Other
    date            : 2004
  Duration: 00:01:44.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[NULL @ 0x9acf80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x16dd440] Skipping 0 bytes of junk at 1024.
[mp3 @ 0x16dd440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './music/zonemusic/brewfest/bf_dwarves1.mp3':
  Metadata:
    genre           : Other
  Duration: 00:02:04.71, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x16dff80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0xe9b440] Skipping 0 bytes of junk at 1024.
[mp3 @ 0xe9b440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './music/zonemusic/brewfest/bf_dwarves2.mp3':
  Metadata:
    genre           : Other
  Duration: 00:02:25.61, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0xe9df80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x1ba5440] Skipping 0 bytes of junk at 1024.
[mp3 @ 0x1ba5440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './music/zonemusic/brewfest/bf_dwarves3.mp3':
  Metadata:
    genre           : Other
  Duration: 00:00:53.01, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x1ba7f80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x7f7440] Skipping 0 bytes of junk at 1024.
[mp3 @ 0x7f7440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './music/zonemusic/brewfest/bf_goblins1.mp3':
  Metadata:
    genre           : Other
  Duration: 00:01:37.81, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x7f9f80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x163a440] Skipping 0 bytes of junk at 1024.
[mp3 @ 0x163a440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './music/zonemusic/brewfest/bf_goblins2.mp3':
  Metadata:
    genre           : Other
  Duration: 00:02:03.17, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x163cf80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument
[mp3 @ 0x96e440] Skipping 0 bytes of junk at 1024.
[mp3 @ 0x96e440] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from './music/zonemusic/brewfest/bf_goblins3.mp3':
  Metadata:
    genre           : Other
  Duration: 00:00:58.05, start: 0.000000, bitrate: 160 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
[NULL @ 0x970f80] Unable to find a suitable output format for 'mp3'
mp3: Invalid argument

it looks like this in the console.

schermafbeelding 2017-05-07 om 23 21 08

i dont know if its something you can control or that it is a ffmpeg problem. it seems ( it went very fast ) that only these are affected..

Sarjuuk commented 7 years ago

are you missing libmp3lame?

dikkedeur commented 7 years ago

that was indeed the problem.

apt-cache policy libmp3lame-dev
libmp3lame-dev:
  Installed: (none)
  Candidate: 3.99.5+repack1-9build1
  Version table:
     3.99.5+repack1-9build1 500

installed it now.. i will do the proces again.

dikkedeur commented 7 years ago

well that was not the problem, still same error. i wonder is it a big problem if those what is it 4 files are not encoded?

Sarjuuk commented 7 years ago

most browsers will probably just don't play them if asked to.

4 .. files? where did you get that number

Playon24 commented 7 years ago

find -name "*.wav" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libvorbis "%.ogg"; rm "%";' && find -name "*.mp3" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -f mp3 -acodec libmp3lame "%.mp3"; rm "%";' I think there must be and -f flag before "mp3 -acodec libmp3lame"

Sarjuuk commented 7 years ago

you are right. sorry about that...

Sarjuuk commented 7 years ago

so, even with this correction it still doesn't work?

dikkedeur commented 7 years ago

tried it again with the new method, it seems that everything gets encoded. so thats great.