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 30th May 2009, 18:11   #1  |  Link
delanejenkins
Registered User
 
Join Date: Mar 2002
Posts: 81
h.264 Baseline Profile vs High Profile

I am playing my videos on a networked media tank. To be compliant to the specs of the unit, standard definition needs to be encoded at level 3.0 with the baseline profile. I am aware of the difference in the max bitrate(which my encodes never come close to at CQ 18) and inability to use some of the x.264 encoding settings such as cabac, bframes etc. with baseline vs high. My question is if I am using the same constant quality factor of 18, same number of reference frames, and same max bitrate with both profiles, will I see a quality loss using baseline instead of high or will I keep the same quality but just end up with a larger file size with the baseline profile?

Last edited by delanejenkins; 30th May 2009 at 18:46.
delanejenkins is offline   Reply With Quote
Old 30th May 2009, 21:01   #2  |  Link
Chengbin
Registered User
 
Join Date: Oct 2007
Posts: 1,060
No. You'll end up with a FAR larger file with baseline (about 4 times)

Why use CQ? Use CRF
Chengbin is offline   Reply With Quote
Old 30th May 2009, 21:05   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,255
Baseline profile means that you cannot use CABAC

And CABAC gives you ~10-30% (or even more) of extra compression at the same quantizer, compared to CAVLC:
http://akuvian.org/src/x264/entropy.png
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 30th May 2009 at 21:23.
LoRd_MuldeR is offline   Reply With Quote
Old 30th May 2009, 22:03   #4  |  Link
Chengbin
Registered User
 
Join Date: Oct 2007
Posts: 1,060
I'm just curious, what media tank do you have that ONLY supports baseline profile? Even the AppleTV isn't that bad!
Chengbin is offline   Reply With Quote
Old 30th May 2009, 22:16   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,932
Quote:
Originally Posted by LoRd_MuldeR View Post
Baseline profile means that you cannot use CABAC

And CABAC gives you ~10-30% (or even more) of extra compression at the same quantizer, compared to CAVLC:
http://akuvian.org/src/x264/entropy.png
And you lose B-frames, which are a pretty big hit as well.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 31st May 2009, 00:37   #6  |  Link
delanejenkins
Registered User
 
Join Date: Mar 2002
Posts: 81
I have an HDX 1000. All networked media tanks use the same syabas processor and have the same specs which is baseline level 3.0 for standard definition and up to level 4.1 high profile for high definition. Nmt's will play almost anything you throw at them but will sometimes have some stuttering if the videos are not dxva compliant and close to the spec profiles. I am not too worried if the baseline profile makes my files larger than that of high profile. I just want to make sure I'm not losing quality.

Last edited by delanejenkins; 31st May 2009 at 00:50.
delanejenkins is offline   Reply With Quote
Old 31st May 2009, 00:41   #7  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,255
If the decoder chip can do High profile for HD content, it should be able to do High for SD content easily...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 31st May 2009, 01:18   #8  |  Link
delanejenkins
Registered User
 
Join Date: Mar 2002
Posts: 81
Lord mulder I was thinking the same thing. I definitely do run into more problems with standard definition than high definition encodes tho. Do you think it's the use of more reference frames with standard definition that is the problem and not the profile or settings

Last edited by delanejenkins; 31st May 2009 at 01:32.
delanejenkins is offline   Reply With Quote
Old 31st May 2009, 01:39   #9  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,255
The number of reference frames is limited by the Level! More specifically by the maximum decoded picture buffer size (MaxDPB) defined by the individual Level.

And if the decoder chip can do Level 4.1 for HD content, then I see no reason why it suddenly should be limited to Level 3.0 for SD material.

Since the MaxDPB size remains the same for HD and SD, but SD material has a lower resolution (less data per frame), you can actually have more ref frames for SD at the same Level.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 31st May 2009 at 01:50.
LoRd_MuldeR is offline   Reply With Quote
Old 31st May 2009, 01:56   #10  |  Link
delanejenkins
Registered User
 
Join Date: Mar 2002
Posts: 81
I do see how the reference frames are limited by the levels according to the h.264 wiki. I have been using 8 reference frames for standard definition as compared to 4 reference frames for high def. This is why I question whether more reference frames can be causing the issues with standard def
delanejenkins is offline   Reply With Quote
Old 31st May 2009, 02:06   #11  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,255
Quote:
Originally Posted by delanejenkins View Post
I do see how the reference frames are limited by the levels according to the h.264 wiki. I have been using 8 reference frames for standard definition as compared to 4 reference frames for high def. This is why I question whether more reference frames can be causing the issues with standard def
As long as the number of ref frames doesn't exceed the MaxDPB size, there should be no problem. And MaxDPB is defined by Level.

So if your device can do Level 4.1, then it has a maximum buffer size of 12.288 * 1024 bytes. Depending on the resolution, you can calculate how many ref frames can be used.

That means for 720x576 or 720x480 you could use up 16 ref frames. For 720p you can still use 8 ref frames. And so on...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 31st May 2009 at 02:15.
LoRd_MuldeR 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 01:00.


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