Есть вот эти данные.как спарсить codec_type
{
streams: [
{
index: 0,
codec_name: 'h264',
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
profile: 'Main',
codec_type: 'video',
codec_time_base: '1/60',
codec_tag_string: 'avc1',
codec_tag: '0x31637661',
width: 1400,
height: 1000,
coded_width: 1408,
coded_height: 1008,
has_b_frames: 1,
pix_fmt: 'yuv420p',
level: 41,
color_range: 'tv',
color_space: 'bt709',
color_transfer: 'bt709',
color_primaries: 'bt709',
chroma_location: 'left',
refs: 1,
is_avc: 'true',
nal_length_size: '4',
r_frame_rate: '30/1',
avg_frame_rate: '30/1',
time_base: '1/30000',
start_pts: 0,
start_time: '0.000000',
duration_ts: 181000,
duration: '6.033333',
bit_rate: '10734765',
bits_per_raw_sample: '8',
nb_frames: '181',
disposition: [Object],
tags: [Object]
}
]
}