Opened 5 years ago

Closed 5 years ago

#8085 closed enhancement (invalid)

ffprobe - report if audio is vbr

Reported by: Joseph P. Hillenburg Owned by:
Priority: wish Component: ffprobe
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Currently, ffprobe reports an average bitrate for audio streams. It would be useful to not only report this, but also to report if a given stream is variable bitrate (VBR). As a human, I can guess this, but I am utilizing the JSON output from ffprobe programmatically.

Change History (2)

comment:1 by Joseph P. Hillenburg, 5 years ago

For example, below we have a bit_rate key. Could we add a key that indicates vbr vs. cbr?

   "format": {
        "filename": "Sultans of Swing.mp3",
        "nb_streams": 1,
        "nb_programs": 0,
        "format_name": "mp3",
        "format_long_name": "MP2/3 (MPEG audio layer 2/3)",
        "start_time": "0.000000",
        "duration": "346.435918",
        "size": "8759649",
        "bit_rate": "202280",
        "probe_score": 51,
        "tags": {
            "title": "Sultans of Swing",
            "artist": "Dire Straits",
            "genre": "Rock",
            "date": "1978"
        }

comment:2 by Carl Eugen Hoyos, 5 years ago

Resolution: invalid
Status: newclosed
Version: 4.2git-master

The bit_rate field in the format output above is set from a header value (or a value decided from a few frames), vbr can only be detected by examining all frames (except the last one).

Note: See TracTickets for help on using tickets.