Skip to content

Commit

Permalink
#1952 use 'grain' tune setting for text content, better warning message
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20392 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 12, 2018
1 parent 570af91 commit d0981e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/codecs/enc_x264/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ cdef class Encoder:
self.profile = self._get_profile(options, self.src_format)
self.export_nals = options.intget("h264.export-nals", 0)
if self.profile is not None and self.profile not in cs_info[2]:
log.warn("invalid profile specified for %s: %s (must be one of: %s)" % (src_format, self.profile, cs_info[2]))
log.warn("Warning: '%s' is not a valid profile for %s", self.profile, src_format)
log.warn(" (must be one of: %s)", csv(cs_info[2]))
self.profile = None
if self.profile is None:
self.profile = cs_info[1]
Expand All @@ -528,6 +529,8 @@ cdef class Encoder:
return TUNE
if self.content_type=="video":
return b"film"
elif self.content_type=="text":
return b"grain"
#return "animation"
return b"zerolatency"

Expand Down

0 comments on commit d0981e9

Please sign in to comment.