Image Distortion with Huawei P40 Pro UHD Video files

GaryX wrote on 10/31/2021, 4:57 AM

Hello,

i am out of ideas right now. Just came back from holidays and wanted to edit the recorded files in VegasPro 19 to a new video, but it seems the Huawei P40pro uses a weird Codec or something wrong, so the image is distorted.

Codec information read with VLC says:

Codec: H264 - MPEG-4 AVC (part 10) (avc1)
Language: English
Type: Video
Video resolution: 3840x2160
Buffer dimensions: 3840x2160
Frame rate: 60.012500
Decoded format: 
Orientation: Top left
Color primaries: ITU-R BT.601 (625 lines, 50 Hz)
Color transfer function: ITU-R BT.709
Color space: ITU-R BT.601 Range
Chroma location: Left

Is there anything i can do to save the files? Playback in the Phone is normal, it's just distorted on the Computer.

Comments

Dexcon wrote on 10/31/2021, 5:07 AM

It would be helpful if you could post a 'text' or 'tree' view of a MediaInfo report on the video media. Please see:

https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

... for more info. BTW, the MediaInfo program is free. The data provided by MediaInfo is much more comprehensive than the VLC data that you've provided.

Also, could you please take a screen shot of Vegas Pro's preview window that shows the distortion and upload that image as well.

Last changed by Dexcon on 10/31/2021, 5:13 AM, changed a total of 1 times.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

GaryX wrote on 10/31/2021, 5:13 AM

General
Complete name                            : J:\Bulgarien21\P40pro\VID_20210823_125141.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp42)
File size                                : 177 MiB
Duration                                 : 15 s 97 ms
Overall bit rate                         : 98.2 Mb/s
Encoded date                             : UTC 2021-08-23 09:51:41
Tagged date                              : UTC 2021-08-23 09:51:41
com.android.version                      : 10
IsTruncated                              : Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.2
Format settings                          : CABAC / 2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 2 frames
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 15 s 97 ms
Bit rate                                 : 97.1 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 60.000 FPS
Minimum frame rate                       : 30.030 FPS
Maximum frame rate                       : 60.403 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.195
Stream size                              : 175 MiB (99%)
Title                                    : VideoHandle
Language                                 : English
Encoded date                             : UTC 2021-08-23 09:51:41
Tagged date                              : UTC 2021-08-23 09:51:41
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
matrix_coefficients_Original             : BT.470 System B/G
mdhd_Duration                            : 15097
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 15 s 84 ms
Duration_FirstFrame                      : 23 ms
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 354 KiB (0%)
Title                                    : SoundHandle
Language                                 : English
Encoded date                             : UTC 2021-08-23 09:51:41
Tagged date                              : UTC 2021-08-23 09:51:41

EricLNZ wrote on 10/31/2021, 5:19 AM

One thing I notice - variable framerate and quite a variation.

j-v wrote on 10/31/2021, 5:21 AM

That video becomes distorted because it has a very variable framerate.
Vegas can handle a very litle variation, but in your video the difference become until 30 frames per second.
To edit this kind of video you have to convert it to a steady framerate.
A lot of users use for that goal the freeapp Handbrake.

Last changed by j-v on 10/31/2021, 5:26 AM, changed a total of 1 times.

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 24H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
566.14 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2130
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 576.02 and Intel UHD Graphics 630 with driver 31.0.101.2130
Vegas software: VP 10 to 22 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

GaryX wrote on 10/31/2021, 5:22 AM

One thing I notice - variable framerate and quite a variation.

The thing is, it plays fine on the phone, i can also send it to someone else by phone and it is ok, it seems it plays only corrupted on the computer 😐

RogerS wrote on 10/31/2021, 5:40 AM

Playback and frame-accurate playback for editing are different things. Just convert the file. Feel free to upload a short sample and share a link here if you want us to test it.

GaryX wrote on 10/31/2021, 5:42 AM

Thanks all for the help,

i have just used DivXpro Converter to test it and after converting it looks good. so now i have to convert like 200 files and maybe next year in june i am able to edit the video 😂😂

walter-i. wrote on 10/31/2021, 6:21 AM

@GaryX
The topic of variable frame rates has been discussed many times here in the forum.
If you want more information on why smartphones record in this way and why they are so difficult to edit, you are welcome to use the search function.
It would go beyond the scope of this forum to go into detail every time.

PS: You might also be able to set your smartphone to do a constant frame rate, but then I would recommend attaching a mobile hard drive......

GaryX wrote on 10/31/2021, 6:25 AM

@GaryX
The topic of variable frame rates has been discussed many times here in the forum.
If you want more information on why smartphones record in this way and why they are so difficult to edit, you are welcome to use the search function.
It would go beyond the scope of this forum to go into detail every time.

PS: You might also be able to set your smartphone to do a constant frame rate, but then I would recommend attaching a mobile hard drive......

Thanks, no need to go deeper, i just wanted to know "why & how" to fix the issue.

I've downloaded handbrake as well, goes faster, because of hardware encoding, so thank you :)

EricLNZ wrote on 10/31/2021, 6:32 AM

@GaryX Handbrake also has a batch function so you could add all 200 and just let it run.