[FFmpeg-user] How do I reliably get get data not listed in show_format?
lou at lrcd.com
Fri May 11 21:48:11 EEST 2018
On Fri, May 11, 2018, at 7:36 AM, Nino from Read2Me wrote:
> Hi, I'm interested in this bit:
> Duration: 00:13:14.59, start: 0.006500, bitrate: 31 kb/s
> Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
> According to a few trac tickets (for example
> <https://trac.ffmpeg.org/ticket/2226>) this bit is not meant to be parsed,
> so how do you recommend I get duration as human readable, bitrate and
> sampling? I don't see those listed in [FORMAT][/FORMAT].
For duration examples:
For sample rate:
ffprobe -loglevel error -select_streams a -show_entries stream=sample_rate -of csv=p=0 input.mkv
You can of course combine entries:
> BTW I wanted to chime in on a trac discussion but couldn't complete the
> registration, see attached.
Sorry about that. Should be fixed now.
More information about the ffmpeg-user