once both audio and video stream then audio is first

This commit is contained in:
Jakub Jezek 2024-07-29 15:42:46 +02:00
parent de270114a7
commit c165eb24e6
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -878,7 +878,7 @@ def get_image_info_metadata(
ffprobe_stream = get_ffprobe_data(path_to_file, logger)
if "streams" in ffprobe_stream and len(ffprobe_stream["streams"]) > 0:
metadata_stream = _ffprobe_metadata_conversion(
ffprobe_stream["streams"][0])
ffprobe_stream["streams"][-1])
if not metadata_stream and is_oiio_supported():
oiio_stream = get_oiio_info_for_input(path_to_file, logger=logger)