bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
734 stars 172 forks source link

I use this command why the generated bgMusic.aac file is 0b #127

Open wangqingpeng131 opened 4 years ago

wangqingpeng131 commented 4 years ago

-i /storage/emulated/0/Android/data/com.video.supermaker/cache/trimmedMusic_hello.mp3 -ss 00:00:10 -t 10 -acodec copy /storage/emulated/0/ffmpeg/bgMusic.aac kotlin I use this command why the generated bgMusic.aac file is 0B and onFinish() is not called.

wangqingpeng131 commented 4 years ago

This is my "output" print: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (GCC) configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [mp3 @ 0xe7616000] Skipping 0 bytes of junk at 326. Input #0, mp3, from '/storage/emulated/0/Android/data/com.video.supermaker/cache/trimmedMusic_july.mp3': Metadata: encoded_by : REAPER date : 2018-07-30 time_reference : 992605 encoder : Lavf57.41.100 Duration: 00:03:00.74, start: 0.025057, bitrate: 128 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Metadata: encoder : Lavc57.48

DemindoO commented 4 years ago

Same issue i am facing

mantraspace commented 4 years ago

Can you try without the -acodec copy ?