 				// Do writing.
 				CONFIG::LOGGING
 				{
-					logger.debug("Writing tag " + buffer.length + " bytes @ " + lastWrittenTime + "sec type=" + tag.tagType);
+					logger.debug("Writing tag " + buffer.length + " bytes @ " + lastWrittenTime + "sec type=" + tag.tagType + " avcc=" + isTagAVCC(tag as FLVTagVideo) + " iFrame=" + isTagIFrame(tag as FLVTagVideo));
 				}
 
 				if(writeToMasterBuffer)

				var header:FLVHeader = new FLVHeader();
				var headerBytes:ByteArray = new ByteArray();
				header.write(headerBytes);
				appendBytes(headerBytes);

				flushPendingTags();


		public static function isTagAVCC(tag:FLVTagVideo):Boolean
		{
			if(!tag)
				return false;

			// Must be keyframe.
			if(tag.frameType != FLVTagVideo.FRAME_TYPE_KEYFRAME)
				return false;

			// If config record, then it's an AVCC!
			return tag.avcPacketType == 0;
		}


		public static function isTagIFrame(tag:FLVTagVideo):Boolean
		{
			if(!tag)
				return false;

			// Must be keyframe.
			if(tag.frameType != FLVTagVideo.FRAME_TYPE_KEYFRAME)
				return false;

			// It's an I-frame if not a config record!
			return tag.avcPacketType == 1;
		}

		private function onBufferTag(tag:FLVTag):Boolean
