I'm just curious about the GOP structure. In my encoding software, I can set i-frame keyframes. But can I really set them as I want? Could I set every frame as an i-frame and hence have a mjpeg stream? Can I set whatever frames as I want as i-frames? Or is there a limit to how close they can be? I tried once to set like ten i-frames in a row, but the file could not be opened by other programs.
Any place on the net that explains these things without digging twenty miles down the earth is appreciated.
+ Reply to Thread
Results 1 to 7 of 7
-
-
I'll answer what I can:
#1Depends on the encoding software, but usually (for the better ones), YES.But can I really set them as I want?
#2Same as above, YES. Note that in doing so, you'll need a good deal higher average bitrate in order to maintain the same overall quality.Could I set every frame as an i-frame
#3No, you'd have an I-frame MPEG stream. There ARE differences (however minor) between I-frame MPEG (and MPEG stills) and JPEG, even though both use DCT. MPEG, being ratified after JPEG, has a few areas where it can be more efficient than JPEG.and hence have a mjpeg stream
#4See #1. This is where manual control is really important in pro use of hardware/software encoders to optimize the quality.Can I set whatever frames as I want as i-frames
#5Not really, although this depends upon playback BUFFERS and expectations, unless you're talking about MultiAngle/ILVB/Playlist/Parental clips, then YES.there a limit to how close they can be
#6Problem with that is that you set up the equivalent of a much higher bitrate (and probably overran the buffers). This has to be taken into account. Try Bitrate Viewer to see what a sequence like yours is doing.tried once to set like ten i-frames in a row, but the file could not be opened by other programs.
It's best to start with a stock sequence: IIIIIII or IPPIPPIPPI or IBBPBBPBBPBBPBBI and only modify the few cases where you HAVE to (e.g. jumpcuts). [[edit: and/or start with "AutoSceneDetect" and save/reload manually modify from there]]
Try to find "DVD Authoring and Production, by Ralph LaBarge" or read Scenarist or Maestro encoding manuals (if you can get a hold of them).
Scott -
It's also worth noting that setting every frame to an I-frame is invalid for DVD (should you care about that) and will increase the size of your files as the B and P frames are what is used to save space in MPEG encoding.
-
jman98,
You got me wondering...
After checking the manuals available to me, I don't see ANYTHING that specifically says that I-frame only is invalid.
They do mention "low delay", but that doesn't necessarily mean that I-frame only is low delay.
And I tested an I-frame only clip I made with TMPGEnc. Both DVDMaestro and DVDArchitect happily authored DVDs (that played OK), without any error message or anything.
That's not to say it's recommended, as you have a quality (or bitrate) penalty. But this could be dependant upon the kind of material you're working with.
Plus, if you think about it, MPEG stills are valid and they're I-frames.
Scott -
Low delay mode is separate from I-frame only mode. In low delay mode you don't have to have a frame every expected interval. Usually used for trick states like fast forward or rewind, which often are I-frame only, but may not have any frames between them for simplicity. The player knows to simply play the first frame, then continue showing it (possibly deinterlaced) until the next frame comes along.
I-frames are intra coded. Which means that every macro block needs to be specified. If you kept the bit rate the same, and forced all frames to be I-frames the quality would go down radically as you forced the nice efficient B and P-frames out of the stream, and replaced them with I-frames. The I-frames would be forced, on average, to be the same size as the B and P-frames that they were replacing, and things would get very blocky. Might even turn out to be impossible if the bit rate were low enough, either resulting in an encoder failure, or buffer over or underflows, or skipped frames, or some other error depending on the encoder. The resulting stream might play back okay on a player, or it might not. -
But it is low delay. The "delay" comes from the processing delay needed for the B pictures, which need information from pictures "yet to come" - thus there is significant processing delay for these pictures (they can't be processed until all parts are available). They are even sent temporally out of sequence, I guess to help speed up the processing. If you look at the actual sequence of the pictures in a GOP, you'll see something like this: 1,4,2,3,7,5,6,9,7,8,12,10,11. The actual display sequence would be 1,2,3,4,5,6,7,8,9,10,11,12.Originally Posted by Cornucopia
I've always heard (from those who are supposed to know) that in the DVD "bible" (a $5000 book of technical specs available only after signing a "non-disclosure" agreement), a "low delay" stream is not permitted. As for those stills, they technically are not video streams, but are M2V pictures.
And no, I don't have access, nor have I ever seen, this book. And those here who have, can't comment on this (due to the non-disclosure thing). So, I guess we'll never know...ICBM target coordinates:
26° 14' 10.16"N -- 80° 16' 0.91"W
Similar Threads
-
How to define I, P, B frames for GOP?
By Nologic in forum Video ConversionReplies: 2Last Post: 5th Apr 2012, 23:34 -
Virtualdub VCR capture no dropped frames but 5400 inserted frames in 1 hour
By suloku in forum Capturing and VCRReplies: 12Last Post: 17th Aug 2011, 23:33 -
How to detect and print I, B and P frames of a GOP frame
By pavithra_mdn in forum ProgrammingReplies: 1Last Post: 10th Mar 2011, 12:40 -
Recommend a GOP setting for PAL-DVD/MPEG 2 files?
By Dark Alpha in forum EditingReplies: 1Last Post: 25th Jan 2008, 22:41 -
inserted frames without dropped frames in VirtualDub capturing VHS
By whschlebaum in forum Capturing and VCRReplies: 0Last Post: 23rd Aug 2007, 21:59



Quote