correction de typo dans la fonction pour hdr10+

This commit is contained in:
Antoine Van Elstraete 2022-07-06 17:24:09 +02:00
parent 184c75e8e7
commit 7634ad4fad
Signed by: AntoineVe
GPG Key ID: E36069A977E2A9ED

View File

@ -69,7 +69,7 @@ def get_infos(file):
hdr10_v_raw = subprocess.getoutput(hdr10_v_cmd)
if 'metadata detected' in hdr10_v_raw:
hdr10_cmd = f'ffmpeg -loglevel panic -i {file} -c:v copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_parser -o /tmp/{file}_hdr10_metadata.json -'
v_infos.update({'hdr10': True, 'hdr10_metdata': f'/tmp/{file}_hdr10_metadata.json'})
v_infos.update({'hdr10plus': True, 'hdr10plus_metadata': f'/tmp/{file}_hdr10_metadata.json'})
infos = {'duration': duration, 'video': v_infos, 'audio': a_infos, 'subtitles': s_infos}
logging.debug("Informations du film : \n" + json.dumps(infos, indent=True))
return infos