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 20th April 2009, 19:54   #1  |  Link
omer205
Registered User
 
Join Date: Oct 2008
Posts: 1
Open GoP and Closed GoP

Hi,

I have been thinking that GoP is a groups of pictures that might be decoded independently without the need of any reference from other GoPs. But while inspecting a conformance bitstream, I realized that some of the pictures do point out outside of a GoP for referencing purposes.

My Question is:

1. What is the benefit of a GoP if it can't be decoded individually ?

2. How Can we play/fwd/reverse a video having open GoPs ?

Thanks,
Omer
omer205 is offline   Reply With Quote
Old 20th April 2009, 20:08   #2  |  Link
Sandra24
Registered User
 
Join Date: Sep 2008
Posts: 24
ad2:

You have to re-encode it with for example TMPGEnc and select closed GOPs.

"Output bitstream for edition (Closed GOPs)"
Sandra24 is offline   Reply With Quote
Old 20th April 2009, 20:55   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
H.264 allows P-Frames and B-Frames to have multiple references. That is: Instead of only referring to the previous frame, they can refer to up to 16 previous frames.
Consequently you cannot start decoding at any I-Frame, because one of the P-/B-Frames after the I-Frame may refer to some frame before the I-Frame.
Anyway, there is a special kind of I-Frames in H.264, the IDR-Frames. Any frame following an IDR-Frame is guaranteed to not refer to any frame before the IDR-Frame.

The purpose of multiple references (and None-IDR I-Frames) is improved compressibility:
If more reference frames are available to the encoder, then the P- or B-Frame can be predicted more precisely and thus the residual will cost less bits to encode.

This thread explains how you can find the a point in a H.264 stream where you can start decoding/playing:
http://forum.doom9.org/showthread.php?t=146269

Also I think it's not possible to reverse a GOP without re-encoding the stream...
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 20th April 2009 at 21:50.
LoRd_MuldeR is offline   Reply With Quote
Old 21st April 2009, 11:41   #4  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
Quote:
1. What is the benefit of a GoP if it can't be decoded individually ?
Seeking : you can still seek on open GOP (provided the encoder inserted a random access point indicator, or a recovery point SEI)
Quote:
2. How Can we play/fwd/reverse a video having open GoPs ?
For GOP signaled with a RAP or a recovery point, you can safely decode them by ignoring all frames whose indexes are before the index of the I frame starting the GOP.
__________________
Manao 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 14:56.


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