[FFmpeg-user] How do I add subtitles to mp4 files?

Paul B Mahol onemda at gmail.com
Wed Mar 20 10:55:26 CET 2013


On 3/20/13, Alexander Kulyakhtin <akulyakhtin at gmail.com> wrote:
>>> Please provide your command line and complete, uncut console output.
>
> ffmpeg -i myvideo.mp4 -i mysrt.srt -scodec mov_text myout.mp4
>
> This works with ffmpeg.exe on windows combining input video and subtitiles
> in the output video.
>
> However, I'm using an ffmpeg binary build  for Android and the same gives
> me output as follows:
> I can rebuild ffmpeg for Android changing any options but I don't know
> which options should be changed.
>
>
> ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
> built on Mar 19 2013 17:07:16 with gcc 4.6 20120106 (prerelease)

Too old.

> configuration:
> --arch=arm
> --cpu=cortex-a8
> --target-os=linux
> --enable-runtime-cpudetect
> --prefix=/data/data/info.guardianproject.ffmpeg/app_opt
> --enable-pic
> --disable-shared
> --enable-static
> --cross-prefix=/home/me/android-ndk-r8d//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
> --sysroot=/home/me/android-ndk-r8d//platforms/android-3/arch-arm
> --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon'
> --extra-ldflags=-L../x264
> --enable-version3
> --enable-gpl
> --disable-doc
> --enable-yasm
> --enable-decoders
> --enable-encoders
> --enable-muxers
> --enable-demuxers
> --enable-parsers
> --enable-protocols
> --enable-filters
> --enable-avresample
> --enable-libfreetype
> --disable-indevs
> --enable-indev=lavfi
> --disable-outdevs
> --enable-hwaccels
> --enable-ffmpeg -
> --disable-ffplay
> --disable-ffprobe
> --disable-ffserver
> --disable-network
> --enable-libx264
> --enable-zlib
>
> libavutil      51. 54.100 / 51. 54.100
> libavcodec     54. 23.100 / 54. 23.100
> libavformat    54.  6.100 / 54.  6.100
> libavdevice    54.  0.100 / 54.  0.100
> libavfilter     2. 77.100 /  2. 77.100
> libswscale      2.  1.100 /  2.  1.100
> libswresample   0. 15.100 /  0. 15.100
> libpostproc    52.  0.100 / 52.  0.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/storage/sdcard0/LegalRecorder/20130320_125607.mp4':
> Metadata:
> major_brand     : isom
> minor_version   : 0
> compatible_brands: isom3gp4
> creation_time   : 2013-03-20 08:56:17
> Duration: 00:00:09.00, start: 0.000000, bitrate: 365 kb/s
> Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
> 176x144, 362 kb/s, 28.20 fps, 29.67 tbr, 90k tbn, 180k tbc
> Metadata:
> rotate          : 90
> creation_time   : 2013-03-20 08:56:17
> handler_name    : VideoHandle
> [srt @ 0xedc060] Estimating duration from bitrate, this may be inaccurate
> nput #1, srt, from '/storage/sdcard0/LegalRecorder/20130320_125607.srt':
> Duration: N/A, bitrate: N/A
> Stream #1:0: Subtitle: srt
> *Unknown encoder 'mov_text'*
>
> Ffmpeg returns 1 then (not 0 as on success).
>
> Is there anything wrong with the build options or anywhere?
>
> Thanks in advance
> Alex
>
>
>
>
>
>>
>>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list