MKV (H.264/ACC) for Plex aspect ratio issues?
Hello there, I’ve been trying to avoid posting for help on this matter; but after more than two weeks of reading through lots of posts and guides I got overwhelmed and still unable to make any progress.
Like many others, I’m capturing my old VHS tapes using an ATI AIW card through VirtualDub with Huffyuv compression at 352x480 frame size. My plan is to keep the master file for archival and create two more files for delivery mediums. The first will be a DVD, I used Avidemux to encode to mpeg using a two pass VBR and got a file that VLC plays at 4:3 DAR with no issues, though I still haven't burned a disc to test on a player. My second task is to create a mkv file, consisting of H.264 and ACC audio and video streams to stream from a Plex server, and here is where everything falls apart. The original avi file plays as a tall and skinny video on VLC (as expected) unless I select the appropriate DAR of 4:3, but after encoding it to H.264 using Avidemux or Hybrid and setting (or at least that’s what I think I’m doing) the correct DAR, VLC will automatically play it using the said aspect ratio, problem is, Plex will still play it as a tall and skinny version. I’ve tried using MKVToolNix and ffmpeg to change the aspect ratio and apparently it does set a flag on either the container of the video file itself, but Plex still won’t recognize the correct DAR. The only way I have been successful with this task is resizing to 640x480, but I don’t know if this is the only way to go or if maybe I’m missing something else. According to ffmepg this is the information I get from the files: Master file (avi) Stream #0:0: Video: huffyuv (HFYU / 0x55594648), yuv422p, 352x480, 32110 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc DVD file (mpeg) Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, progressive), 352x480 [SAR 20:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc MKV file (h264 original size not deinterlaced) Stream #0:0: Video: h264 (High), yuv420p(progressive), 352x480 [SAR 1:1 DAR 11:15], SAR 20:11 DAR 4:3, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) MKV file (h264 resized and BOB deinterlaced) Stream #0:0: Video: h264 (High), yuv420p(tv, bt470bg/unknown/unknown, progressive), 640x480 [SAR 1:1 DAR 4:3], 59.94 fps, 59.94 tbr, 1k tbn, 119.88 tbc (default) (forced) I would be grateful if someone could help me out, and in the process, enlighten me regarding PAR, SAR and DAR though the entire VHS to MPEG and VHS to H264 workflow. |
H.264 AR can be a nuisance.
H.264 AR + the players can be bigger aggravation, not playing nice even with to-spec files. ^ And that's just progressive. Interlaced H.264 can be a quagmire. The most ideal fix is to resize to 640x480 (1:1 AR), so the H.264 doesn't get confused. I generally capture lossless as 720x480 )and I thought Huffyuv required it?) Downconvert MPEG/DVD copy to 352x480. 1:1 AR (matting when needed, on non-4x3/16x9) for streaming DLNA. The main reason for 352x480 on DVD was (1) retained most/all source information, but (2) saved disc space for more content. H.264 compression isn't as rigid, so 352x480 and 640x480 with a proper CRF encode can literally be the same size. I often see this with 640x480 vs. 720x405 encodes. The main reason for 720x480 lossless was to (1) appease the software, like NLEs, and (2) retain every possible bit of information, even if it was 1% between 352 and 720, as those were often edit/restore projects. |
In Hybrid, Crop/Resize tab: change Input PAR to 20:11. Now if you look at the x264 command line, it should say --sar 20:11 which is required per: http://www.x264bluray.com/home/480i-ntsc
One man's explanation: Quote:
|
Quote:
|
He only mentioned trying to set DAR. "PAR" and "SAR" only appear in his post via his specs and his final query.
|
Thank you very much to both of you lordsmurf and msgohan, not only have you help solve the problem I was having but also gave me enough information to better understand this complicated (at least to me :depressed:) subject of aspect ratios. I was mixing concepts and was trying to set a 4:3 AR as PAR in hybrid instead of the 20:11 as intended for 4:3 AR for 352x480 resolution.
Regarding the capture resolution, I settle for 352x480 instead of the 720x480 mainly because what lordsmurf said about it retained most/all source information at leas for my DVD projects; but also because of the huffyuv file size, right now I’m looking at 30GiB for two hour VHS and takes around 45minutes to transfer between my capture PC to my editing/encoding rig. I’m sorry I didn’t respond sooner, but I just got back to work and the kids back to school, so I didn’t have time to read the resources and test out what you guys told me. I’m grateful this forum exists and that is very active by knowledgeable people. |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.