]> git.sesse.net Git - nageru/blob - defs.h
Make the muxing buffer configurable, and 10 MB (since 1 MB is too little for our...
[nageru] / defs.h
1 #ifndef _DEFS_H
2 #define _DEFS_H
3
4 // OUTPUT_FREQUENCY/FPS must be an integer for now.
5 #define OUTPUT_FREQUENCY 48000
6 #define FPS 60
7
8 #define AUDIO_OUTPUT_CODEC AV_CODEC_ID_MP3
9 #define AUDIO_OUTPUT_SAMPLE_FMT AV_SAMPLE_FMT_FLTP
10 #define AUDIO_OUTPUT_BIT_RATE 256000
11
12 #define LOCAL_DUMP_FILE_NAME "test.ts"
13 #define STREAM_MUX_NAME "mpegts"
14 #define MUX_OPTS {}
15
16 // In bytes. Beware, if too small, stream clients will start dropping data.
17 #define MUX_BUFFER_SIZE 10485760
18
19 #endif  // !defined(_DEFS_H)