click
Javanaut 2 years ago
parent 71456e74c2
commit f0fdaf6f8e

@ -116,7 +116,7 @@ audioStreams = [s for s in streamData if s['codec_type'] == 'audio']
subtitleStreams = [s for s in streamData if s['codec_type'] == 'subtitle']
for aStream in audioStreams:
if 'channel_layout' in aStream.keys():
if 'channel_layout' in aStream:
print(f"audio stream: {aStream['channel_layout']}") #channel_layout
else:
print(f"unknown audio stream with {aStream['channels']} channels") #channel_layout

Loading…
Cancel
Save