7 async_web_server_cpp::HttpConnectionPtr connection,
ros::NodeHandle& nh) :
8 LibavStreamer(request, connection, nh,
"mp4",
"libx264",
"video/mp4")
14 preset_ = request.get_query_param_value_or_default(
"preset",
"ultrafast");
33 av_dict_set(&
opt_,
"movflags",
"+frag_keyframe+empty_moov+faststart", 0);
43 async_web_server_cpp::HttpConnectionPtr connection,
AVFormatContext * format_context_
H264Streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
virtual void initializeEncoder()
AVCodecContext * codec_context_
virtual boost::shared_ptr< ImageStreamer > create_streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)