JayH5/android-ffmpeg-cmdline

Unable to extract audio (strip only - no conversion)

dentex opened this issue · 6 comments

Hi,
I successfully imported your project as a library, to extract audio from various video containers with
the given method.
I always get those two errors:
Invalid data found when processing input
for the vorbis extraction, or
Unable to find a suitable output format for '/storage/sdcard0/Download/Attack.aac' /storage/sdcard0/Download/Attack.aac: Invalid argument
for the aac.

I tried also the "simple" way, copying the ffmpeg binary in my app's /data/data/ folder and executing from there with su on a rooted phone, with this command,
ffmpeg -i Attack_hd720.webm -vn -acodec copy Attack.ogg
or
ffmpeg -i Attack_hd720.mp4 -vn -acodec copy Attack.aac
and also using the one from your extractAudio method, with -vn -f $FORMAT.

Does it worked for you? Or could it be included into the case you explain in the README, 3rd point? (audio not working)

thanks.

Hmm... I have to admit, I haven't worked on this project in a long time. I used it for a very specific purpose (creating a slideshow of images with a voice-over) and never really tested it on much else.

Have you been able to get those ffmpeg commands to work on your computer? Do you know they do what you want? If you know they work my next step would be to try build ffmpeg for your computer with the same configuration as is found in build.sh to check if the ffmpeg build is missing an option you need. That would be kind of a pain but it's do-able.

I might have a try rewriting some of this code or try experiment with some ffmpeg commands this evening if I find time.

Thank you very much.
I tried the commands on my PC. They worked. But I have to admit that ffmpeg
on my distro it's just an alias of avconv, so I think the commands works
also for the original ffmpeg binary, but I'm not 100% sure. I successfully
built various ffmpeg for android (also including lame lib) but, although I
used --enable-static and --disable-shared, it always depends on liblame.so,
that I don't know where to put.
So I'll compile again ffmpeg for android without lame, both for android and
x86, and I'll try the same commands again on both platforms. Thanks for
suggesting this approach.
(Would be great also if you find the time to test some commands, but I
cannot ask! ;P )
Anyway, at https://github.com/dentex/ytdownloader/tree/audio_extraction you
can take a look at my tests, if you want.
Ciao!

2013/3/25 Jamie Hewland notifications@github.com

Hmm... I have to admit, I haven't worked on this project in a long time. I
used it for a very specific purpose (creating a slideshow of images with a
voice-over) and never really tested it on much else.

Have you been able to get those ffmpeg commands to work on your computer?
Do you know they do what you want? If you know they work my next step would
be to try build ffmpeg for your computer with the same configuration as is
found in build.sh to check if the ffmpeg build is missing an option you
need. That would be kind of a pain but it's do-able.

I might have a try rewriting some of this code or try experiment with some
ffmpeg commands this evening if I find time.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-15397278
.

All fixex.
I compiled a new build with no feature excluded (decoders, demuxers, etc). It's about 7MB, but it works.
I'm using some methods from your repository: I'll give proper credits in code comments and into the dedicated App's activity.
https://github.com/dentex/ytdownloader/tree/master
Thanks.

Great. Yeah, I did a build with the latest ffmpeg 1.2 and NDK r8e also with no features excluded...but never got around to testing it or uploading, is about 8MB big.

Glad someone managed to find a use for this code :)

I'm gonna upload a much more streamlined version of the command-line interface soon, so keep an eye on the repo if yr interested...

OK thanks.
I only need to extract audio, with ffmpeg. So for now I'm OK. Anyway I'll
monitor the repository for sure, because I'm really interested in this
project.
Il giorno 31/mar/2013 21:16, "Jamie Hewland" notifications@github.com ha
scritto:

Great. Yeah, I did a build with the latest ffmpeg 1.2 and NDK r8e also
with no features excluded...but never got around to testing it or
uploading, is about 8MB big.

Glad someone managed to find a use for this code :)

I'm gonna upload a much more streamlined version of the command-line
interface soon, so keep an eye on the repo if yr interested...


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-15696352
.

Hi,
Did you know how to execute command "ffmpeg -r 5/1 -i test_%03d.png -i Bad\ taco.mp3 -strict experimental -t 2 -pix_fmt yuv420p out2.mp4'
i have batch of images which will be converted into video with sound but when i add "-strict experimental" then it does not work.
I have run command "ffmpeg -codecs" then it does not return any codecs audio.
can you post some link which make the static ffmpeg file we can use in this project.

Thank you.