iframe_playlist_generator

package
v0.0.0-...-cd115bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePlaylist

func GeneratePlaylist(dir string, inFile string) error

Types

type IFrameEntry

type IFrameEntry struct {
	SegmentURI     string
	PacketPosition uint
	PacketSize     uint
	Duration       float64
}

type ProbeFrame

type ProbeFrame struct {
	MediaType               string `json:"media_type"`
	StreamIndex             int    `json:"stream_index"`
	KeyFrame                bool   `json:"key_frame"`
	PktPts                  int    `json:"pkt_pts"`
	PktPtsTime              string `json:"pkt_pts_time"`
	PktDts                  int    `json:"pkt_dts"`
	PktDtsTime              string `json:"pkt_dts_time"`
	BestEffortTimestamp     int    `json:"best_effort_timestamp"`
	BestEffortTimestampTime string `json:"best_effort_timestamp_time"`
	PktPos                  string `json:"pkt_pos"`
	PktSize                 string `json:"pkt_size"`
	Width                   int    `json:"width"`
	Height                  int    `json:"height"`
	PixFmt                  string `json:"pix_fmt"`
	SampleAspectRatio       string `json:"sample_aspect_ratio"`
	PictType                string `json:"pict_type"`
	CodedPictureNumber      int    `json:"coded_picture_number"`
	DisplayPictureNumber    int    `json:"display_picture_number"`
	InterlacedFrame         int    `json:"interlaced_frame"`
	TopFieldFirst           int    `json:"top_field_first"`
	RepeatPict              int    `json:"repeat_pict"`
	ColorRange              string `json:"color_range"`
	ColorSpace              string `json:"color_space"`
	ColorPrimaries          string `json:"color_primaries"`
	ColorTransfer           string `json:"color_transfer"`
	ChromaLocation          string `json:"chroma_location"`
}

type ProbePacket

type ProbePacket struct {
	PtsTime      float64 `json:"pts_time,string"`
	DtsTime      float64 `json:"dts_time,string"`
	DurationTime float64 `json:"duration_time,string"`
	Size         uint    `json:"size,string"`
	Pos          uint    `json:"pos,string"`
	Flags        string  `json:"flags"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL