Is there a command with ffmpeg that returns mp3 information, for example, bit rate or sample rate?
you may try:
ffmpeg -i filename
There is ffprobe .
ffprobe
Simple use:
ffprobe foo.mp3 2>&1 | grep -A1 Duration:
will give you an exit (without displaying an additional window), for example:
Duration: 00:03:10.48, start: 0.000000, bitrate: 128 kb/s Stream #0.0: Audio: mp3, 22050 Hz, 2 channels, s16, 128 kb/s
You can also use:
$ mpg123 -t example.mp3 2>&1 | grep -A1 -E "^MPEG" MPEG 2.5 L III cbr32 11025 mono
cbr32
codec bit rate
11025
Source: https://habr.com/ru/post/897580/More articles:How to create an open square / checkbox list marker for an unordered HTML list? - htmlWhat are good Lazarus / FPC resources? - pascalhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/897577/how-much-json-is-too-much-json&usg=ALkJrhjVbcgGOL6bdAh2w5rciM7McZ67nQPDO Connecting to DB Errors - phpHow to dynamically access values โโin a multi-parameter array - phpHow to define local functions in PHP? - functionHas_one Value and Creating a New Entry in Rails 3 - ruby-on-railsUnderstanding TBitmap.Scanline in Delphi & C ++ Builder - delphiDesign pattern / use of an approach in which actions on an object occur through closure, pass the instance itself - javaHow to write FLAC files in java - javaAll Articles