
The function checks the file extension to determine YUV or Y4M format. Also adds a flag aligned_output_file to compare_videos.py, which allows saving the aligned reference video to a file. Bug: webrtc:9642 Change-Id: Ia59f5c123a1e41104756eb6b235b6581c4ffbd77 Reviewed-on: https://webrtc-review.googlesource.com/99503 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Paulina Hensman <phensman@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24787}