Mediainfo to get the actual bitrate of video and audio to be placed on the stamp detail
Posted: 26 Aug 2024, 23:25
Hi, All
Straight to the point. The bit rate displayed in the Video: section in the result thumbnail is the total bit rate, which is a combination of video and audio bitrates that if checked using ffmpeg / ffprobe, is at the top of the output, precisely in the duration line: ... (bitrate: 1409 kb/s)
While the actual video bitrate is: 1278655 bps (1279 kb/s), and audio is 127874 bps (128 kb/s). Those details are also displayed in mediainfo.
The problem is that I did not find an option to display the actual bitrate of both.So, are you willing to implement the use of mediainfo to retrieve these details and then put them on the stamp detail?
Thank you and kind regards,
Uhnam
Straight to the point. The bit rate displayed in the Video: section in the result thumbnail is the total bit rate, which is a combination of video and audio bitrates that if checked using ffmpeg / ffprobe, is at the top of the output, precisely in the duration line: ... (bitrate: 1409 kb/s)
Code: Select all
$ ffprobe -hide_banner vsshort-aac.mkv
Input #0, matroska,webm, from 'vsshort-aac.mkv':
Metadata:
encoder : libebml v1.4.5 + libmatroska v1.7.1
creation_time : 2024-08-26T20:03:38.000000Z
Duration: 00:01:09.78, start: 0.000000, bitrate: 1409 kb/s
Stream #0:0: Video: msmpeg4v3 (msmpeg4) (DIV3 / 0x33564944), yuv420p, 640x352, SAR 1:1 DAR 20:11, 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 1278655
DURATION : 00:01:09.778000000
NUMBER_OF_FRAMES: 1673
NUMBER_OF_BYTES : 11152757
_STATISTICS_WRITING_APP: mkvmerge v86.0 ('Winter') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-08-26 20:03:38
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Metadata:
BPS : 127874
DURATION : 00:01:09.780000000
NUMBER_OF_FRAMES: 3271
NUMBER_OF_BYTES : 1115389
_STATISTICS_WRITING_APP: mkvmerge v86.0 ('Winter') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-08-26 20:03:38
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
The problem is that I did not find an option to display the actual bitrate of both.So, are you willing to implement the use of mediainfo to retrieve these details and then put them on the stamp detail?
Thank you and kind regards,
Uhnam