vp9_streamer.cpp
Go to the documentation of this file.
2 
3 namespace web_video_server
4 {
5 
8  LibavStreamer(request, connection, nh, "webm", "libvpx-vp9", "video/webm")
9 {
10 }
12 {
13 }
14 
16 {
17 
18  // codec options set up to provide somehow reasonable performance in cost of poor quality
19  // should be updated as soon as VP9 encoding matures
20  av_opt_set_int(codec_context_->priv_data, "pass", 1, 0);
21  av_opt_set_int(codec_context_->priv_data, "speed", 8, 0);
22  av_opt_set_int(codec_context_->priv_data, "cpu-used", 4, 0); // 8 is max
23  av_opt_set_int(codec_context_->priv_data, "crf", 20, 0); // 0..63 (higher is lower quality)
24 }
25 
27  LibavStreamerType("webm", "libvpx-vp9", "video/webm")
28 {
29 }
30 
33  ros::NodeHandle& nh)
34 {
35  return boost::shared_ptr<ImageStreamer>(new Vp9Streamer(request, connection, nh));
36 }
37 
38 }
web_video_server::Vp9StreamerType::Vp9StreamerType
Vp9StreamerType()
Definition: vp9_streamer.cpp:26
boost::shared_ptr< HttpConnection >
web_video_server::LibavStreamer::codec_context_
AVCodecContext * codec_context_
Definition: libav_streamer.h:40
vp9_streamer.h
web_video_server::Vp9StreamerType::create_streamer
virtual boost::shared_ptr< ImageStreamer > create_streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition: vp9_streamer.cpp:31
web_video_server::LibavStreamerType
Definition: libav_streamer.h:62
web_video_server::Vp9Streamer
Definition: vp9_streamer.h:12
web_video_server::LibavStreamer
Definition: libav_streamer.h:24
async_web_server_cpp::HttpRequest
web_video_server::Vp9Streamer::initializeEncoder
virtual void initializeEncoder()
Definition: vp9_streamer.cpp:15
web_video_server
Definition: h264_streamer.h:9
web_video_server::Vp9Streamer::Vp9Streamer
Vp9Streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition: vp9_streamer.cpp:6
ros::NodeHandle
web_video_server::Vp9Streamer::~Vp9Streamer
~Vp9Streamer()
Definition: vp9_streamer.cpp:11


web_video_server
Author(s): Mitchell Wills
autogenerated on Wed Mar 2 2022 01:13:36