Set default addresses for FFmpeg/uvgRTP
This commit is contained in:
parent
ac66b7ca7a
commit
20dec060da
|
@ -54,7 +54,7 @@ void thread_func(void *mem, size_t len, char *addr_, int thread_num, double fps)
|
|||
AVFormatContext* avfctx;
|
||||
AVOutputFormat* fmt = av_guess_format("rtp", NULL, NULL);
|
||||
|
||||
snprintf(addr, 64, "rtp://%s:%d", addr_, 8888 + thread_num);
|
||||
snprintf(addr, 64, "rtp://10.21.25.26:%d", 8888 + thread_num);
|
||||
ret = avformat_alloc_output_context2(&avfctx, fmt, fmt->name, addr);
|
||||
|
||||
avio_open(&avfctx->pb, avfctx->filename, AVIO_FLAG_WRITE);
|
||||
|
|
|
@ -50,7 +50,7 @@ void hook(void *arg, uvg_rtp::frame::rtp_frame *frame)
|
|||
|
||||
void thread_func(char *addr, int thread_num)
|
||||
{
|
||||
std::string addr_(addr);
|
||||
std::string addr_("10.21.25.200");
|
||||
uvg_rtp::context rtp_ctx;
|
||||
|
||||
auto sess = rtp_ctx.create_session(addr_);
|
||||
|
|
|
@ -16,7 +16,7 @@ void thread_func(void *mem, size_t len, char *addr, int thread_num, double fps)
|
|||
uint64_t total_size = 0;
|
||||
uint64_t diff = 0;
|
||||
rtp_error_t ret = RTP_OK;
|
||||
std::string addr_(addr);
|
||||
std::string addr_("10.21.25.26");
|
||||
|
||||
uvg_rtp::context rtp_ctx;
|
||||
|
||||
|
|
Loading…
Reference in New Issue