Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th December 2019, 16:36   #1  |  Link
madada
Registered User
 
Join Date: Oct 2019
Posts: 2
H.264 level for vertical video

Hi all,

I am planning to re-encode a collection of home videos with the main goal to make them very universally compatible. To that end, I am making an encoding plan.
I want to encode video to the AVC/H.264 format with x264 and audio to AAC and mux them in MP4 containers. I want to choose the lowest H.264 levels I can get away with based on the frame size/resolution of the videos, and for low resolution videos that I'll encode with level 3.0 or lower, I want to choose Main Profile instead of High profile for playback on e.g. old iPads.

I noticed that a lot of encoding software will adjust settings based on the chosen level. For example, when encoding a 720p video with Handbrake using x264's "veryslow" profile, having chosen level 3.1, the software will limit the amount of used reference frames to fit the maximum allowed by the level. However, I also noticed that other software sometimes doesn't comply, so I want to be sure of what I'm doing, therefore the following question.

When encoding a vertical video to a frame size/resolution of 720*1280 (so, not 1280*720), can I still use level 3.1 (the lowest level that allows horizontal 720p)? Or is a vertical frame size of more than 720 pixels not allowed?

Side note: I know some vertical videos created by phones are actually rotated horizontal videos but have a tag that tells the video player how to rotate "back" upon playback. I also read that this tag is not standardized. Is this correct?

Last edited by madada; 7th December 2019 at 16:42.
madada is offline   Reply With Quote
Old 7th December 2019, 18:48   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Resolution is only looked at as frame size in macroblocks (16x16) regarding the minimal required level so whether it's 1280x720 or 720x1280 doesn't matter since they cover the same amount of macroblocks.
(iirc the main problem with the rotate flag is that not all players support it)
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 7th December 2019, 22:21   #3  |  Link
madada
Registered User
 
Join Date: Oct 2019
Posts: 2
Quote:
Originally Posted by Selur View Post
Resolution is only looked at as frame size in macroblocks (16x16) regarding the minimal required level so whether it's 1280x720 or 720x1280 doesn't matter since they cover the same amount of macroblocks.
(iirc the main problem with the rotate flag is that not all players support it)
Okay, that's very good to know.
Thanks for your answer!
madada is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.