#define AUDIO_OUTPUT_SAMPLE_FMT AV_SAMPLE_FMT_FLTP
#define AUDIO_OUTPUT_BIT_RATE 256000
+#define LOCAL_DUMP_FILE_NAME "test.ts"
+#define STREAM_MUX_NAME "mpegts"
+
#endif // !defined(_DEFS_H)
size_t *upload_data_size, void **con_cls)
{
printf("url %s\n", url);
- AVOutputFormat *oformat = av_guess_format("mpegts", nullptr, nullptr);
+ AVOutputFormat *oformat = av_guess_format(STREAM_MUX_NAME, nullptr, nullptr);
assert(oformat != nullptr);
HTTPD::Stream *stream = new HTTPD::Stream(oformat, width, height);
streams.push_back(stream);
} // namespace
Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards)
- : httpd("test.ts", WIDTH, HEIGHT),
+ : httpd(LOCAL_DUMP_FILE_NAME, WIDTH, HEIGHT),
num_cards(num_cards),
mixer_surface(create_surface(format)),
h264_encoder_surface(create_surface(format)),