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:
#1But can I really set them as I want?
#2Could I set every frame as an i-frame
#3and hence have a mjpeg stream
#4Can I set whatever frames as I want as i-frames
#5there a limit to how close they can be
#6tried 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. -
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, 22: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, 22: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, 11:40 -
Recommend a GOP setting for PAL-DVD/MPEG 2 files?
By Dark Alpha in forum EditingReplies: 1Last Post: 25th Jan 2008, 21:41 -
inserted frames without dropped frames in VirtualDub capturing VHS
By whschlebaum in forum Capturing and VCRReplies: 0Last Post: 23rd Aug 2007, 20:59