videokit-ffmpeg-android icon indicating copy to clipboard operation
videokit-ffmpeg-android copied to clipboard

Get information about subtitles maps

Open anonym24 opened this issue 7 years ago • 2 comments
trafficstars

How can I get information about subtitles (text) tracks - maps?

anonym24 avatar May 13 '18 22:05 anonym24

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?

anonym24 avatar May 13 '18 22:05 anonym24

or how even execute next simple function ffmpeg --version and get output?

anonym24 avatar May 14 '18 00:05 anonym24