Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
GNU General Public License v3.0
3.33k
stars
829
forks
source link
Add subtitles without errors, but subtitles are not shown #243
Open
LeooooL opened 7 years ago
-y -i /storage/emulated/0/input.mp4 -f srt -i /storage/emulated/0/test.srt -vcodec copy -acodec copy -scodec mov_text -metadata:s:s:0 language=eng /storage/emulated/0/output.mp4
configuration: --target-os=linux --cross-prefix=/home/ifeimo/ffmpeg/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/ifeimo/ffmpeg/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --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/ifeimo/ffmpeg/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/ifeimo/ffmpeg/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/ifeimo/ffmpeg/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/ifeimo/ffmpeg/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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.71.100 comment : "yidian-inc" Duration: 00:02:30.66, start: 0.042667, bitrate: 805 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 864x480, 732 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s (default) Metadata: handler_name : SoundHandler Input #1, srt, from '/storage/emulated/0/test.srt': Duration: N/A, bitrate: N/A Stream #1:0: Subtitle: subrip Output #0, mp4, to '/storage/emulated/0/output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 comment : "yidian-inc" encoder : Lavf57.25.100 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 864x480, q=2-31, 732 kb/s, 30 fps, 30 tbr, 15360 tbn, 15360 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 64 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:2(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008) Metadata: encoder : Lavc57.24.102 mov_text Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #1:0 -> #0:2 (subrip (srt) -> mov_text (native)) Press [q] to stop, [?] for help frame= 4518 fps=0.0 q=-1.0 Lsize= 14808kB time=00:02:30.65 bitrate= 805.2kbits/s speed= 303x
video:13468kB audio:1177kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.108923%