Hi,

I am struggling to understand and am hoping somebody can help.

My goal is to take videos on my iPhone, transfer them to my NAS and then for them to be available to watch on a variety of clients, primarily on my Samsung Smart TV (UE55MU7000).

My NAS is running Synology (technically, a HP ProLiant Gen8 G1610T MicroServer running Xpenology) and on it I am running a Plex server and Synology's Photostation.

I have a Plex Client running on my Samsung Smart TV.

I am open to different suggestions of how to accomplish this goal but I do not want to store anything on any cloud services. Apple, Microsoft, Facebook and Amazon have already gathered enough information about me, I don't want to voluntarily give them more.

Generally, Plex works fine for me for watching movies and DS Photo app is great when I want to look at my photos when out and about.

What I have done so far:
1. Imported the iPhone .mov files to my Windows 10 PC, which I then transferred theme to my NAS.
2. I launched the Plex Client on my TV and although the file would play, It took around 15s for the NAS to transcode them and then they would only play for around 5s before buffering again.
3. I changed the extension from .mov to .mp4 on a different file and transferred to my NAS and it would play fine. “Great” I thought as all I had to do was change the extension of all my files, but…
4. I changed the extension from .mov to .mp4 on a third file transferred to my NAS and it behaved the same way as the first file, taking a long time to load and constant buffering.
5. All the files played fine on the Plex app on my iPhone and on the Plex web app.
6. That made me think it was an issue with the Plex client on my TV and that I would be better converting the files using a tool so that the Plex Server didn’t have to transcode them.
7. After doing some research, I decided to use ffmpeg and although the file now plays fine on the Plex client on my TV, the video is “stretched” (for lack of a better word). It should be portrait but looks more like it is playing in 4:3 aspect.
8. Then I decided to test using Handbrake and this time the file plays fine on my Plex client on my TV and in portrait mode.

I have attached the logs from ffmpeg, the activity log from handbrake and the MediaInfo from all three files (.mov as the original, .mp4 as the fffmpeg conversion and _hb.mp4 as the handbrake conversion).

I would prefer to use ffmpeg so that I can copy the metadata as part of the encoding. I may decide to use different applications in the future and if any of them use a timeline feature, I want the created and modified dates to be accurate and not all of the day I did the conversion.

My question is why does it work fine when using handbrake and is there any setting I can use on ffmpeg so that the file does not display as “stretched” on my Samsung TV?

Perhaps it is the Plex client that is the issue, but it must be reading some of the metadata or file properties that is causing it to display differently.

Any help would be greatly appreciated.

Thanks,

Erik


####This is encoding with ffmpeg ####

Microsoft Windows [Version 10.0.19042.867]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\temp>ffmpeg -i "test.mov" -vcodec h264 -acodec mp3 "test.mp4"
ffmpeg version 2021-04-04-git-b1b7cc698b-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 72.100 / 56. 72.100
libavcodec 58.135.100 / 58.135.100
libavformat 58. 77.100 / 58. 77.100
libavdevice 58. 14.100 / 58. 14.100
libavfilter 7.111.100 / 7.111.100
libswscale 5. 10.100 / 5. 10.100
libswresample 3. 10.100 / 3. 10.100
libpostproc 55. 10.100 / 55. 10.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2021-01-18T12:09:27.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 8
com.apple.quicktime.software: 14.3
com.apple.quicktime.creationdate: 2021-01-18T12:09:27+0000
Duration: 00:00:15.35, start: 0.000000, bitrate: 11948 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 11741 kb/s, 60.01 fps, 60 tbr, 600 tbn, 600 tbc (default)
Metadata:
rotate : 90
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Video
vendor_id : [0][0][0][0]
encoder : HEVC
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 105 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Metadata
Stream #0:3(und): Data: none (mebx / 0x7862656D), 1 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Metadata
Stream #0:4(und): Data: none (mebx / 0x7862656D), 69 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Metadata
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[libx264 @ 000002546cdb47c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000002546cdb47c0] profile High, level 4.2, 4:2:0, 8-bit
[libx264 @ 000002546cdb47c0] 264 - core 161 r3048 b86ae3c - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
com.apple.quicktime.creationdate: 2021-01-18T12:09:27+0000
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 8
com.apple.quicktime.software: 14.3
encoder : Lavf58.77.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1920, q=2-31, 60 fps, 15360 tbn (default)
Metadata:
encoder : Lavc58.135.100 libx264
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Video
vendor_id : [0][0][0][0]
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
displaymatrix: rotation of -0.00 degrees
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, fltp (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
encoder : Lavc58.135.100 libmp3lame
frame= 921 fps= 23 q=-1.0 Lsize= 20954kB time=00:00:15.33 bitrate=11193.7kbits/s speed=0.387x
video:20809kB audio:120kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.116518%
[libx264 @ 000002546cdb47c0] frame I:11 Avg QP:24.04 size: 43003
[libx264 @ 000002546cdb47c0] frame P:292 Avg QP:26.84 size: 31450
[libx264 @ 000002546cdb47c0] frame B:618 Avg QP:27.82 size: 18854
[libx264 @ 000002546cdb47c0] consecutive B-frames: 10.0% 1.3% 1.0% 87.7%
[libx264 @ 000002546cdb47c0] mb I I16..4: 15.7% 81.6% 2.7%
[libx264 @ 000002546cdb47c0] mb P I16..4: 6.4% 22.7% 0.4% P16..4: 50.5% 6.5% 2.8% 0.0% 0.0% skip:10.7%
[libx264 @ 000002546cdb47c0] mb B I16..4: 0.6% 3.8% 0.0% B16..8: 49.7% 4.8% 0.5% direct: 4.8% skip:35.8% L0:48.8% L1:49.1% BI: 2.1%
[libx264 @ 000002546cdb47c0] 8x8 transform intra:79.5% inter:90.5%
[libx264 @ 000002546cdb47c0] coded y,uvDC,uvAC intra: 46.5% 40.8% 1.4% inter: 25.0% 31.3% 0.0%
[libx264 @ 000002546cdb47c0] i16 v,h,dc,p: 39% 18% 11% 32%
[libx264 @ 000002546cdb47c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 12% 28% 7% 7% 7% 6% 7% 5%
[libx264 @ 000002546cdb47c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 16% 8% 9% 8% 7% 7% 4%
[libx264 @ 000002546cdb47c0] i8c dc,h,v,p: 70% 14% 15% 1%
[libx264 @ 000002546cdb47c0] Weighted P-Frames: Y:4.5% UV:1.4%
[libx264 @ 000002546cdb47c0] ref P L0: 49.7% 12.4% 23.6% 14.1% 0.2%
[libx264 @ 000002546cdb47c0] ref B L0: 75.0% 19.0% 6.0%
[libx264 @ 000002546cdb47c0] ref B L1: 89.4% 10.6%
[libx264 @ 000002546cdb47c0] kb/s:11105.16

C:\temp>
###This is encoding with Handbrake###


HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Ram: 16252 MB,
GPU Information:
NVIDIA GeForce GTX 960M - 23.21.13.9125
Intel(R) HD Graphics 530 - 26.20.100.6859
Screen: 1920x1080
Temp Dir: C:\Users\horre\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\horre\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[08:29:30] base preset: Fast 1080p30
[20:29:30] hb_init: starting libhb thread
[20:29:31] Starting work at: Thu Apr 08 20:29:31 2021
[20:29:31] 1 job(s) to process
[20:29:31] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": true,
"File": "C:\\temp\\Test_HB.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "av_mp4"
},
"Filters": {
"FilterList": [
{
"ID": 4,
"Settings": {
"mode": "7"
}
},
{
"ID": 3,
"Settings": {
"block-height": "16",
"block-thresh": "40",
"block-width": "16",
"filter-mode": "2",
"mode": "3",
"motion-thresh": "1",
"spatial-metric": "2",
"spatial-thresh": "1"
}
},
{
"ID": 12,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "1080",
"width": "1080"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 9,
"Den": 16
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "C:\\temp\\Test.mov"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "x264",
"Level": "4.0",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "fast",
"Profile": "main",
"Quality": 22.0,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[20:29:31] CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
[20:29:31] - Intel microarchitecture Skylake
[20:29:31] - logical processor count: 8
[20:29:31] Intel Quick Sync Video support: no
[20:29:31] hb_scan: path=C:\temp\Test.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\temp\Test.mov
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(C:\temp\Test.mov\) failed
[20:29:31] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:29:31] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\temp\Test.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2021-01-18T12:09:27.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 8
com.apple.quicktime.software: 14.3
com.apple.quicktime.creationdate: 2021-01-18T12:09:27+0000
Duration: 00:00:15.35, start: 0.000000, bitrate: 11948 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 11741 kb/s, 60.01 fps, 60 tbr, 600 tbn, 600 tbc (default)
Metadata:
rotate : 90
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Video
encoder : HEVC
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 105 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Audio
Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Metadata
Stream #0:3(und): Data: none (mebx / 0x7862656D), 1 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Metadata
Stream #0:4(und): Data: none (mebx / 0x7862656D), 69 kb/s (default)
Metadata:
creation_time : 2021-01-18T12:09:27.000000Z
handler_name : Core Media Metadata
[20:29:31] scan: decoding previews for title 1
[20:29:31] scan: audio 0x1: aac, rate=44100Hz, bitrate=105072 Unknown (AAC LC) (1.0 ch) (105 kbps)
[20:29:31] Auto-Rotating video 270 degrees
[20:29:31] scan: 10 previews, 1080x1920, 60.000 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1
[20:29:31] scan: supported video decoders: avcodec qsv
[20:29:31] libhb: scan thread found 1 valid title(s)
[20:29:32] Starting Task: Encoding Pass
[20:29:32] work: only 1 chapter, disabling chapter markers
[20:29:32] job configuration:
[20:29:32] * source
[20:29:32] + C:\temp\Test.mov
[20:29:32] + title 1, chapter(s) 1 to 1
[20:29:32] + container: mov,mp4,m4a,3gp,3g2,mj2
[20:29:32] + data rate: 11948 kbps
[20:29:32] * destination
[20:29:32] + C:\temp\Test_HB.mp4
[20:29:32] + container: MPEG-4 (libavformat)
[20:29:32] + align initial A/V stream timestamps
[20:29:32] * video track
[20:29:32] + decoder: hevc
[20:29:32] + bitrate 11741 kbps
[20:29:32] + filters
[20:29:32] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[20:29:32] + Decomb (mode=39)
[20:29:32] + Framerate Shaper (mode=2:rate=27000000/900000)
[20:29:32] + frame rate: 60.000 fps -> peak rate limited to 30.000 fps
[20:29:32] + Crop and Scale (width=1080:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:29:32] + source: 1080 * 1920, crop (0/0/0/0): 1080 * 1920, scale: 1080 * 1080
[20:29:32] + Output geometry
[20:29:32] + storage dimensions: 1080 x 1080
[20:29:32] + pixel aspect ratio: 9 : 16
[20:29:32] + display dimensions: 607 x 1080
[20:29:32] + encoder: H.264 (libx264)
[20:29:32] + preset: fast
[20:29:32] + profile: main
[20:29:32] + level: 4.0
[20:29:32] + quality: 22.00 (RF)
[20:29:32] + color profile: 1-1-1
[20:29:32] * audio track 1
[20:29:32] + decoder: Unknown (AAC LC) (1.0 ch) (105 kbps) (track 1, id 0x1)
[20:29:32] + bitrate: 105 kbps, samplerate: 44100 Hz
[20:29:32] + mixdown: Mono
[20:29:32] + dither: none
[20:29:32] + encoder: AAC (libavcodec)
[20:29:32] + bitrate: 160 kbps, samplerate: 44100 Hz
[20:29:32] sync: expecting 920 video frames
[20:29:32] encx264: min-keyint: 30, keyint: 300
[20:29:32] encx264: encoding at constant RF 22.000000
[20:29:32] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=9/16
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[20:29:32] Auto-Rotating video 270 degrees
[20:29:32] sync: first pts video is 0
[20:29:32] sync: "Chapter 1" (1) at frame 1 time 0
[20:29:32] sync: first pts audio 0x1 is 0
[20:29:48] reader: done. 1 scr changes
[20:29:50] work: average encoding speed for job is 52.621723 fps
[20:29:50] comb detect: heavy 2 | light 28 | uncombed 891 | total 921
[20:29:50] decomb: deinterlaced 2 | blended 28 | unfiltered 891 | total 921
[20:29:50] vfr: 461 frames output, 460 dropped and 0 duped for CFR/PFR
[20:29:50] vfr: lost time: 0 (0 frames)
[20:29:50] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:29:50] aac-decoder done: 661 frames, 0 decoder errors
[20:29:50] hevc-decoder done: 921 frames, 0 decoder errors
[20:29:50] sync: got 921 frames, 920 expected
[20:29:50] sync: framerate min 60.000 fps, max 60.013 fps, avg 60.000 fps
x264 [info]: frame I:7 Avg QP:21.18 size: 41020
x264 [info]: frame P:126 Avg QP:24.03 size: 32750
x264 [info]: frame B:328 Avg QP:24.74 size: 21771
x264 [info]: consecutive B-frames: 4.8% 0.9% 0.7% 93.7%
x264 [info]: mb I I16..4: 38.7% 0.0% 61.3%
x264 [info]: mb P I16..4: 11.7% 0.0% 17.2% P16..4: 45.4% 15.4% 8.5% 0.0% 0.0% skip: 1.8%
x264 [info]: mb B I16..4: 28.3% 0.0% 1.7% B16..8: 31.9% 13.5% 0.6% direct:19.1% skip: 4.8% L0:47.6% L1:43.5% BI: 8.8%
x264 [info]: coded y,uvDC,uvAC intra: 39.3% 56.4% 5.4% inter: 37.5% 62.7% 0.3%
x264 [info]: i16 v,h,dc,p: 21% 22% 43% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 23% 24% 6% 6% 4% 8% 4% 6%
x264 [info]: i8c dc,h,v,p: 65% 21% 13% 1%
x264 [info]: Weighted P-Frames: Y:4.8% UV:2.4%
x264 [info]: ref P L0: 59.6% 40.4%
x264 [info]: ref B L0: 78.6% 21.4%
x264 [info]: ref B L1: 91.9% 8.1%
x264 [info]: kb/s:6015.31
[20:29:51] mux: track 0, 461 frames, 11554174 bytes, 6002.17 kbps, fifo 512
[20:29:51] mux: track 1, 662 frames, 308172 bytes, 160.09 kbps, fifo 1024
[20:29:51] Finished work at: Thu Apr 08 20:29:51 2021
[20:29:51] libhb: work result = 0

# Encode Completed ...

###This is the output from MediaInfo###

General
Complete name : C:\temp\Test.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 0000.00 (qt )
File size : 21.9 MiB
Duration : 15 s 348 ms
Overall bit rate mode : Variable
Overall bit rate : 11.9 Mb/s
Encoded date : UTC 2021-01-18 12:09:27
Tagged date : UTC 2021-01-18 12:09:43
Writing library : Apple QuickTime
com.apple.quicktime.make : Apple
com.apple.quicktime.model : iPhone 8
com.apple.quicktime.software : 14.3
com.apple.quicktime.creationdate : 2021-01-18T12:09:27+0000

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4.1@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 15 s 347 ms
Bit rate : 11.7 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Rotation : 90°
Frame rate mode : Variable
Frame rate : 60.000 FPS
Minimum frame rate : 60.000 FPS
Maximum frame rate : 66.667 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.094
Stream size : 21.5 MiB (98%)
Title : Core Media Video
Encoded date : UTC 2021-01-18 12:09:27
Tagged date : UTC 2021-01-18 12:09:43
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : hvcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 15 s 345 ms
Source duration : 15 s 418 ms
Bit rate mode : Variable
Bit rate : 105 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 197 KiB (1%)
Source stream size : 198 KiB (1%)
Title : Core Media Audio
Encoded date : UTC 2021-01-18 12:09:27
Tagged date : UTC 2021-01-18 12:09:43

Other #1
Type : meta
Duration : 15 s 348 ms
Bit rate mode : Constant

Other #2
Type : meta
Duration : 15 s 348 ms
Bit rate mode : Variable

Other #3
Type : meta
Duration : 15 s 348 ms
Bit rate mode : Variable

General
Complete name : C:\temp\Test_HB.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/iso2/avc1/mp41)
File size : 11.3 MiB
Duration : 15 s 372 ms
Overall bit rate : 6 183 kb/s
Encoded date : UTC 2021-04-08 19:29:32
Tagged date : UTC 2021-04-08 19:29:32
Writing application : HandBrake 1.3.3 2020061300

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15 s 367 ms
Bit rate : 6 015 kb/s
Width : 1 080 pixels
Height : 1 080 pixels
Display aspect ratio : 0.563
Frame rate mode : Constant
Frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.172
Stream size : 11.0 MiB (97%)
Writing library : x264 core 157 r2935 545de2f
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2021-04-08 19:29:32
Tagged date : UTC 2021-04-08 19:29:32
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
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 372 ms
Bit rate mode : Constant
Bit rate : 160 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 301 KiB (3%)
Title : Mono
Default : Yes
Alternate group : 1
Encoded date : UTC 2021-04-08 19:29:32
Tagged date : UTC 2021-04-08 19:29:32

General
Complete name : C:\temp\ffmpeg.exe
Format : MZ
Format profile : Executable / AMD x86-64
File size : 107 MiB

General
Complete name : C:\temp\test.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 20.5 MiB
Duration : 15 s 350 ms
Overall bit rate : 11.2 Mb/s
Writing application : Lavf58.77.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15 s 350 ms
Bit rate : 11.1 Mb/s
Width : 1 080 pixels
Height : 1 920 pixels
Display aspect ratio : 0.563
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.089
Stream size : 20.3 MiB (99%)
Title : Core Media Video
Writing library : x264 core 161 r3048 b86ae3c
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : mp4a-6B
Duration : 15 s 347 ms
Source duration : 15 s 372 ms
Source_Duration_LastFrame : -14 ms
Bit rate mode : Constant
Bit rate : 64.0 kb/s
Channel(s) : 1 channel
Sampling rate : 44.1 kHz
Compression mode : Lossy
Stream size : 120 KiB (1%)
Source stream size : 120 KiB (1%)
Title : Core Media Audio
Default : Yes
Alternate group : 1
mdhd_Duration : 15347