Skip to content

Commit

Permalink
Merge pull request #3 from video-dev/add-b-frame-support-to-presets
Browse files Browse the repository at this point in the history
add gop_num_b_frames to preset
  • Loading branch information
adamthesax authored Dec 2, 2019
2 parents e4983dc + fb2b822 commit 2d7bc88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Preset struct {
VideoBitrate string `xml:"video_description>h264_settings>bitrate,omitempty"`
GopSize string `xml:"video_description>h264_settings>gop_size,omitempty"`
GopMode string `xml:"video_description>h264_settings>gop_mode,omitempty"`
GopNumBFrames string `xml:"video_description>h264_settings>gop_num_b_frames,omitempty"`
Profile string `xml:"video_description>h264_settings>profile,omitempty"`
ProfileLevel string `xml:"video_description>h264_settings>level,omitempty"`
RateControl string `xml:"video_description>h264_settings>rate_control_mode,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions presets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func TestGetPreset(t *testing.T) {
AudioBitrate: "128000",
GopSize: "80",
GopMode: "fixed",
GopNumBFrames: "0",
Profile: "Baseline",
ProfileLevel: "3",
RateControl: "ABR",
Expand Down Expand Up @@ -339,6 +340,7 @@ func TestGetPresetForHls(t *testing.T) {
AudioBitrate: "64000",
GopSize: "90",
GopMode: "fixed",
GopNumBFrames: "2",
Profile: "Main",
ProfileLevel: "3.1",
RateControl: "VBR",
Expand Down Expand Up @@ -476,6 +478,7 @@ func TestCreatePreset(t *testing.T) {
AudioBitrate: "64000",
GopSize: "90",
GopMode: "fixed",
GopNumBFrames: "2",
Profile: "Main",
ProfileLevel: "3.1",
RateControl: "VBR",
Expand Down

0 comments on commit 2d7bc88

Please sign in to comment.