fpv-wtf / wtfos-configurator

Configurator for wtfos, with built in margerine
GNU Affero General Public License v3.0
42 stars 16 forks source link

Wrong pixel ratio in rendered videos with the OSD #377

Open robustini opened 1 year ago

robustini commented 1 year ago

Device

Goggles V2

Operating System (Including version)

Windows 10 Pro 21H2

Browser

Chrome

Trace ID (bottom left of the configurator screen)

5bdf521d-94e4-4440-987d-1b06ac6d5880

Describe the issue

After overlaying the OSD on the video if I import the file into Adobe Premiere 2022 or 2023 and put it in the timeline it appears squished vertically as seen in the image.

immagine

Putting the original mp4 recorded with the Goggles in the timeline instead is perfect.

immagine

Investigating in the properties of the video with the osd i've found the issue, the original video has a pixel proportion 1.0, the one with the osd is 18.0125, so the tool in Chrome when saving the video maybe does something wrong in its header. The resolution is correct, but with wrong pixel ratio some editing software may have this problem.

These are the specifications of the original video:

Complete name :DJIG0008.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 4.44 GiB Duration : 28 min 37 s Overall bit rate : 22.2 Mb/s Encoded date : UTC 2023-06-04 11:26:35 Tagged date : UTC 2023-06-04 11:26:35 Writing application : Lavf56.15.102 ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L5 Format settings : CABAC / 1 Ref Frames Format settings, CABAC : Yes Format settings, Reference fra : 1 frame Format settings, GOP : M=1, N=60 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 28 min 37 s Bit rate : 22.2 Mb/s Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.401 Stream size : 4.44 GiB (100%) Encoded date : UTC 2023-06-04 11:26:35 Tagged date : UTC 2023-06-04 11:26:35 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC

And these the ones in the video with the osd:

Complete name : DJIG0008-osd.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (mp41/avc1/isom) File size : 4.96 GiB Duration : 1 h 43 min Overall bit rate : 6 890 kb/s Encoded date : UTC 2023-06-04 11:10:25 Tagged date : UTC 2023-06-04 11:10:25 Writing library : 0xF114CD74 IsTruncated : Yes ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L4.1 Format settings : 1 Ref Frames Format settings, CABAC : No Format settings, Reference fra : 1 frame Format settings, GOP : M=1, N=60 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1 h 43 min Source duration : 28 min 37 s Bit rate : 6 611 kb/s Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.120 Stream size : 4.76 GiB (96%) Source stream size : 4.96 GiB (100%) Encoded date : UTC 2023-06-04 11:10:25 Tagged date : UTC 2023-06-04 11:10:25 Color range : Limited Color primaries : BT.601 NTSC Transfer characteristics : BT.601 Matrix coefficients : BT.601 Codec configuration box : avcC