Skip to content

.Mov IPhone Video - comparing .mov to .mkv error #186

@Memphiisto

Description

@Memphiisto

Hi!

There is a problem when trying to compare an original iphone .mov file to a converted file (mkv or mp4... doesnt matter)
It only gives me the values "error" for PSNR, SSIM and VMAF...

The log states:

Stream #0:1 -> #0:1 (vorbis (native) -> pcm_s16le (native))
[Parsed_libvmaf_5 @ 00000184eaf50480] input width must match.
[Parsed_libvmaf_5 @ 00000184eaf50480] input height must match.
[Parsed_libvmaf_5 @ 00000184eaf50480] Failed to configure input pad on Parsed_libvmaf_5
[fc#0 @ 00000184e9188680] Error reinitializing filters!
[fc#0 @ 00000184e9188680] Task finished with error code: -22 (Invalid argument)
[fc#0 @ 00000184e9188680] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 00000184e920be80] [enc:wrapped_avframe @ 00000184e9209880] Could not open encoder before EOF
[vost#0:0/wrapped_avframe @ 00000184e920be80] Task finished with error code: -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 00000184e920be80] Terminating thread with return code -22 (Invalid argument)
[out#0/null @ 00000184e99fbec0] Nothing was written into output file, because at least one of its streams received no packets.
Conversion failed!

I have an idea what it could or even probably is going to be...
IPhone .mov files store the rotation of the video only in metadata... it doesnt actually rotate the pixels...

Meaning --> The Original is in reality 3840x2160 but rotated 90° via Metadata (for Portrait)
The converted video is probably 2160x3840 without metadata rotation.

is there anything we can do inside the code to tell it to take that into account?
Maybe that it uses the rotation in metadata and auto rotates for comparison?

thanks!
Mem

Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'C:/Users/Marcel/Desktop/FIndVideos/IMG_5569.MOV':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2020-08-06T11:19:40.000000Z
com.apple.quicktime.location.ISO6709: +47.4975+009.6275+396.698/
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 7 Plus
com.apple.quicktime.software: 13.3
com.apple.quicktime.creationdate: 2020-08-06T13:19:40+0200
Duration: 00:00:02.50, start: 0.000000, bitrate: 48428 kb/s
Stream #1:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 3840x2160, 48305 kb/s, 30 fps, 30 tbr, 600 tbn (default)
Metadata:
creation_time : 2020-08-06T11:19:40.000000Z
handler_name : Core Media Video
vendor_id : [0][0][0][0]
encoder : H.264
Side data:
displaymatrix: rotation of -90.00 degrees

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions