Closed foremtehan closed 1 year ago
Is it possible to get Encoding settings in mp3 files?
This is the output from mediainfo:
Encoding settings : -m m -V 4 -q 0 -lowpass 20.5
sample:
63e7bf305fc2a.zip
I cannot get this field on analyze method:
analyze
{ "GETID3_VERSION": "2.0.x-202207161647", "filesize": 34271, "filename": "63e7bf305fc2a.mp3", "avdataoffset": 0, "avdataend": 34271, "fileformat": "mp3", "audio": { "dataformat": "mp3", "channels": 1, "sample_rate": 44100, "bitrate": 256000, "channelmode": "mono", "bitrate_mode": "cbr", "codec": "LAME", "encoder": "LAME3.99r", "lossless": false, "encoder_options": "CBR256", "compression_ratio": 0.36281179138321997, "streams": [ { "dataformat": "mp3", "channels": 1, "sample_rate": 44100, "bitrate": 256000, "channelmode": "mono", "bitrate_mode": "cbr", "codec": "LAME", "encoder": "LAME3.99r", "lossless": false, "encoder_options": "CBR256", "compression_ratio": 0.36281179138321997 } ] }, "encoding": "UTF-8", "mime_type": "audio/mpeg", "mpeg": { "audio": { "raw": { "synch": 4094, "version": 3, "layer": 1, "protection": 1, "bitrate": 13, "sample_rate": 0, "padding": 0, "private": 0, "channelmode": 3, "modeextension": 0, "copyright": 0, "original": 1, "emphasis": 0 }, "version": "1", "layer": 3, "channelmode": "mono", "channels": 1, "sample_rate": 44100, "protection": false, "private": false, "modeextension": "", "copyright": false, "original": true, "emphasis": "none", "padding": false, "bitrate": 256000, "framelength": 856, "bitrate_mode": "cbr", "VBR_method": "Xing", "xing_flags_raw": 15, "xing_flags": { "frames": true, "bytes": true, "toc": true, "vbr_scale": true }, "VBR_frames": 40, "VBR_bytes": 34271, "LAME": { "short_version": "LAME3.99r", "numeric_version": "3.99r", "integer_version": [ 3, 99 ], "raw": { "vbr_method": 1, "RGAD_track": 0, "RGAD_album": 0, "abrbitrate_minbitrate": 255, "noise_shaping": 1, "stereo_mode": 0, "not_optimal_quality": 0, "source_sample_freq": 1, "mp3_gain": 0, "surround_info": 0 }, "vbr_quality": 60, "tag_revision": 0, "vbr_method": "cbr", "lowpass_frequency": 20500, "encoding_flags": { "nspsytune": true, "nssafejoint": true, "nogap_next": false, "nogap_prev": false }, "ath_type": 4, "encoder_delay": 576, "end_padding": 1404, "noise_shaping": 1, "stereo_mode": "mono", "not_optimal_quality": false, "source_sample_freq": "44.1 kHz", "mp3_gain_db": 0, "mp3_gain_factor": 1, "surround_info": "no surround info", "preset_used_id": 256, "preset_used": "--alt-preset cbr 256", "audio_bytes": 34271, "music_crc": 6341, "lame_tag_crc": 23599 } } }, "playtime_seconds": 1.04421875, "bitrate": 256000, "playtime_string": "0:01" }
What information is stored in the LAME header is available in ['mpeg']['audio']['LAME'] such as:
['mpeg']['audio']['LAME']
"lowpass_frequency": 20500
"stereo_mode": "mono"
Is it possible to get Encoding settings in mp3 files?
This is the output from mediainfo:
sample:
63e7bf305fc2a.zip
I cannot get this field on
analyze
method: