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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 18th July 2008, 18:55   #1  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Question about decoders

Are they supposed to produce identical output, if 100% standard compliant?
Comatose is offline   Reply With Quote
Old 18th July 2008, 18:58   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,868
No. For example, MPEG2 defines the legal syntax of the bitstream and how it is decoded, but not how the bitstream is to be generated. For example, a given stream might be encoded as frames or as fields; neither is mandated by any spec while both are legal according to spec. Another example is the use of different quantization matrices for encoding. The spec doesn't specify the actual values of the quant matrices to be used for encoding (some defaults are defined, however). Then there's also GOP length, frame type, etc., etc.

Last edited by Guest; 18th July 2008 at 20:14.
Guest is offline   Reply With Quote
Old 18th July 2008, 19:03   #3  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Ah, okay, thanks =)
Comatose is offline   Reply With Quote
Old 18th July 2008, 20:49   #4  |  Link
Sergey A. Sablin
Registered User
 
Join Date: Dec 2004
Location: Tomsk, Russia
Posts: 366
Quote:
Originally Posted by neuron2 View Post
No. For example, MPEG2 defines the legal syntax of the bitstream and how it is decoded, but not how the bitstream is to be generated. For example, a given stream might be encoded as frames or as fields; neither is mandated by any spec while both are legal according to spec. Another example is the use of different quantization matrices for encoding. The spec doesn't specify the actual values of the quant matrices to be used for encoding (some defaults are defined, however). Then there's also GOP length, frame type, etc., etc.
Don, I guess you didn't read the question and/or title:

Quote:
Question about decoders:
Are they supposed to produce identical output, if 100% standard compliant?
the answer is dependent on specification used - for mpeg-2/4, h261/3 (and any other which involves not bit exact calculations like DCT) might produce different results, while still be standard compliant. For such formats there are restrictions on the accuracy of calculations.
For specifications with all operations defined using bit exact formulas like H.264, VC-1 etc outputs from standard compliant decoders shall be the same (not counting post-processing of course)
Sergey A. Sablin is offline   Reply With Quote
Old 18th July 2008, 20:59   #5  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,868
I read it perfectly well, and I don't know why you are nitpicking me.

No specification that the user could reasonably be referring to specifies all encoding choices! The AVC spec doesn't specify that you have to choose Frame vs. MBAFF vs. PAFF encoding. And it doesn't specify whether to choose frame or field for a given frame or macroblock.
Guest is offline   Reply With Quote
Old 18th July 2008, 21:27   #6  |  Link
Sergey A. Sablin
Registered User
 
Join Date: Dec 2004
Location: Tomsk, Russia
Posts: 366
Quote:
Originally Posted by neuron2 View Post
I read it perfectly well, and I don't know why you are nitpicking me.
no you didn't.

Quote:
Question about decoders:
Are they supposed to produce identical output, if 100% standard compliant?
Sergey A. Sablin is offline   Reply With Quote
Old 18th July 2008, 23:28   #7  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,868
Oops, brain fart.

You could have just said that in your first post.
Guest is offline   Reply With Quote
Old 18th July 2008, 23:43   #8  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,664
Answer: yes.
Dark Shikari is offline   Reply With Quote
Old 19th July 2008, 00:05   #9  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,868
Quote:
Originally Posted by Dark Shikari View Post
Answer: yes.
Not always yes, as Sergey explained. For example, MPEG2 decoders can use different IDCT algorithms, producing slightly different outputs.
Guest is offline   Reply With Quote
Old 19th July 2008, 00:06   #10  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,664
Quote:
Originally Posted by neuron2 View Post
Not always yes, as Sergey explained. For example, MPEG2 decoders can use different IDCT algorithms, producing slightly different outputs.
Look up. This is the MPEG-4 AVC forum.
Dark Shikari is offline   Reply With Quote
Old 19th July 2008, 00:15   #11  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
>:3

Get in the car!
Comatose is offline   Reply With Quote
Old 20th July 2008, 10:07   #12  |  Link
Gabriel_Bouvigne
L.A.M.E. developer
 
Gabriel_Bouvigne's Avatar
 
Join Date: Dec 2001
Location: Paris - France
Posts: 276
For AVC decoders, the general answer is : YES, outputs should be 100% identical

...

except if

...

the stream includes some specific SEI messages of which interpretation is not mandatory, like fgm or output_before_deblocking
Gabriel_Bouvigne is offline   Reply With Quote
Reply


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 05:15.


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