videokit-ffmpeg-android
videokit-ffmpeg-android copied to clipboard
Get information about subtitles maps
trafficstars
How can I get information about subtitles (text) tracks - maps?
or how can I get next output to parse manually?
fmpeg -i input.mkv
ffmpeg version ... Copyright (c) 2000-2012 the FFmpeg developers
Input #0, matroska,webm, from 'input.mkv':
Duration: 01:39:44.02, start: 0.000000, bitrate: 5793 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x800, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s
Stream #0:3(ger): Subtitle: text (default)
At least one output file must be specified
from this output I can find out which map do I need and language code of audio or subtitles
it's possible with FFmpeg binary (static) but what about this library which uses shared libraries files?
or how even execute next simple function ffmpeg --version and get output?