Exemple #1
0
    def parse(self):
        parent = self.parent_flv
        VideoTag.parse(self)

        parent.no_video = False

        if (not parent.first_media_tag_offset and
                self.h264_packet_type != H264_PACKET_TYPE_SEQUENCE_HEADER):
            parent.first_media_tag_offset = self.offset
Exemple #2
0
    def parse(self):
        parent = self.parent_flv
        VideoTag.parse(self)

        parent.no_video = False

        if (not parent.first_media_tag_offset
                and self.h264_packet_type != H264_PACKET_TYPE_SEQUENCE_HEADER):
            parent.first_media_tag_offset = self.offset
    def parse(self):
        parent = self.parent_flv
        VideoTag.parse(self)

        parent.no_video = False

        if not parent.first_media_tag_offset:
            parent.first_media_tag_offset = self.offset

        if self.frame_type == FRAME_TYPE_KEYFRAME:
            parent.keyframes.filepositions.append(self.offset)
            parent.keyframes.times.append(self.timestamp / 1000.0)
Exemple #4
0
    def parse(self):
        parent = self.parent_flv
        VideoTag.parse(self)

        parent.no_video = False

        if not parent.first_media_tag_offset:
            parent.first_media_tag_offset = self.offset

        if self.frame_type == FRAME_TYPE_KEYFRAME:
            parent.keyframes.filepositions.append(self.offset)
            parent.keyframes.times.append(self.timestamp / 1000.0)
Exemple #5
0
	def parse(self):
		parent = self.parent_flv
		VideoTag.parse(self)

		if self.frame_type == FRAME_TYPE_KEYFRAME and not fuzz_keyframe:
			return

		x = random.randint(0, fuzz_vector)
		
		if fuzz_videotag and (x == fuzz_vector):
			f = FuzzGenerator(parent.buffer)
			parent.buffer = f.fuzz(self.offset, self.size)
Exemple #6
0
    def parse(self):
        parent = self.parent_flv
        VideoTag.parse(self)

        if self.frame_type == FRAME_TYPE_KEYFRAME and not fuzz_keyframe:
            return

        x = random.randint(0, fuzz_vector)

        if fuzz_videotag and (x == fuzz_vector):
            f = FuzzGenerator(parent.buffer)
            parent.buffer = f.fuzz(self.offset, self.size)