Skip to content

Commit

Permalink
transcode: update profile name for rendition that matches the source
Browse files Browse the repository at this point in the history
stream's resolution

Remote B (via access-token) rejects transcode request if a profile with
name "source" is used. The "source" keyword is used to define an
incoming RTMP push in go-livepeer (server/mediaserver.go) - which
triggers a different use-case. Change the profile name to follow the
name syntax (e.g. 720p) being used for the other profiles.
  • Loading branch information
emranemran committed Nov 8, 2022
1 parent 21e952e commit e72e27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transcode/transcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net/url"
"path"
"strconv"
"sync"
"time"

Expand Down Expand Up @@ -270,7 +271,7 @@ func getPlaybackProfiles(iv clients.InputVideo) ([]clients.EncodedProfile, error
profiles = []clients.EncodedProfile{lowBitrateProfile(video)}
}
profiles = append(profiles, clients.EncodedProfile{
Name: "source",
Name: strconv.FormatInt(int64(video.Height), 10) + "p0",
Bitrate: video.Bitrate,
FPS: 0,
Width: video.Width,
Expand Down

0 comments on commit e72e27d

Please sign in to comment.