Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f1a88973
Commit
f1a88973
authored
Dec 14, 2015
by
Agatha Hu
Committed by
Timo Rothenpieler
Dec 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: set slice number to 1 to improve encoding quality
Signed-off-by:
Timo Rothenpieler
<
timo@rothenpieler.org
>
parent
906c0b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
nvenc.c
libavcodec/nvenc.c
+6
-0
No files found.
libavcodec/nvenc.c
View file @
f1a88973
...
@@ -876,6 +876,9 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
...
@@ -876,6 +876,9 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
h264VUIParameters
.
videoFullRangeFlag
=
avctx
->
color_range
==
AVCOL_RANGE_JPEG
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
h264VUIParameters
.
videoFullRangeFlag
=
avctx
->
color_range
==
AVCOL_RANGE_JPEG
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
sliceMode
=
3
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
sliceModeData
=
1
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
disableSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
1
:
0
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
disableSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
1
:
0
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
repeatSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
0
:
1
;
ctx
->
encode_config
.
encodeCodecConfig
.
h264Config
.
repeatSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
0
:
1
;
...
@@ -940,6 +943,9 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
...
@@ -940,6 +943,9 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
break
;
break
;
case
AV_CODEC_ID_H265
:
case
AV_CODEC_ID_H265
:
ctx
->
encode_config
.
encodeCodecConfig
.
hevcConfig
.
sliceMode
=
3
;
ctx
->
encode_config
.
encodeCodecConfig
.
hevcConfig
.
sliceModeData
=
1
;
ctx
->
encode_config
.
encodeCodecConfig
.
hevcConfig
.
disableSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
1
:
0
;
ctx
->
encode_config
.
encodeCodecConfig
.
hevcConfig
.
disableSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
1
:
0
;
ctx
->
encode_config
.
encodeCodecConfig
.
hevcConfig
.
repeatSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
0
:
1
;
ctx
->
encode_config
.
encodeCodecConfig
.
hevcConfig
.
repeatSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
0
:
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment