ffmpeg.js icon indicating copy to clipboard operation
ffmpeg.js copied to clipboard

file: Invalid data found when processing input

Open test3207 opened this issue 4 years ago • 4 comments

i'm trying to make an audio convertion build, and modify makefile as follows:

--COMMON_DECODERS = vp8 h264 vorbis opus mp3 aac pcm_s16le mjpeg png

++COMMON_DECODERS = vorbis opus mp3 aac pcm_s16le mjpeg png alac flac

the build process seems ok, and when i try to list decoders it shows as expected:

image

but when i try to convert something it may broke, saying 'file: Invalid data found when processing input':

image

that happens with the following formats: aac, ape, flac I'm think these types are all supported by ffmpeg, according to their homepage. and it works fine with some other formats: m4a, mp3, ogg, opus, wav

a test flac file

tried something else and have no clue. i wonder if you can figure out why? thank you

test3207 avatar Jul 03 '20 10:07 test3207

Do you have FLAC in the ffmpeg -demuxers output?

AlexVestin avatar Jul 06 '20 15:07 AlexVestin

Do you have FLAC in the ffmpeg -demuxers output?

nop. i believe that's the problem. didnt see a flac build option in ffmpeg docs, maybe it's included in libavcodec. when i add flac option directly, the build process failed.

a good direction. thanks

test3207 avatar Jul 06 '20 22:07 test3207

~~I think it's --enable-parser=flac ~~ ~~(if you were using --enable-demuxer=flac)~~

Might be, just glanced at the ffmpeg config file

AlexVestin avatar Jul 07 '20 14:07 AlexVestin

~~I think it's --enable-parser=flac ~~ ~(if you were using --enable-demuxer=flac)~

Might be, just glanced at the ffmpeg config file

thanks for your help, but i can't move any further now.

even with the original makefile, the build process failed when cc some files in libavutil, randomly. really creepy.

i'm not sure what's going on... maybe i broke some temp or env vars...or something wrong with new submodules......tried to redownload all that stuff...

anyway i was totally fuxxed by emcc XD

will update if i find a way out

test3207 avatar Jul 08 '20 13:07 test3207