Skip to content

Commit 7705719

Browse files
committed
Update H265NVENCEncoder.cpp
1 parent 6edc7c0 commit 7705719

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/video/H265NVENCEncoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ std::string buildPipelineString(int width, int height, int fps, const std::strin
3232
<< ",framerate=" << fps << "/1 ! ";
3333
pipeline << "queue max-size-buffers=1 leaky=downstream ! ";
3434
pipeline << "videoconvert ! ";
35-
pipeline << "nvh264enc ! ";
36-
pipeline << "h264parse config-interval=1 disable-passthrough=false ! ";
35+
pipeline << "nvh265enc ! ";
36+
pipeline << "h265parse config-interval=1 disable-passthrough=false ! ";
3737
pipeline << "queue max-size-buffers=1 leaky=downstream ! ";
3838
pipeline << "appsink name=" << sinkName
39-
<< " caps=\"video/x-h264,stream-format=byte-stream,alignment=au\" "
39+
<< " caps=\"video/x-h265,stream-format=byte-stream,alignment=au\" "
4040
"emit-signals=false sync=false drop=true max-buffers=1";
4141
return pipeline.str();
4242
}

0 commit comments

Comments
 (0)