]> git.sesse.net Git - nageru/blob - defs.h
Fix a problem where the nut output would come way too uneven, given the VLC instance...
[nageru] / defs.h
1 #ifndef _DEFS_H
2 #define _DEFS_H
3
4 #define OUTPUT_FREQUENCY 48000
5 #define MAX_FPS 60
6 #define WIDTH 1280
7 #define HEIGHT 720
8 #define MAX_CARDS 16
9
10 // For deinterlacing. See also comments on InputState.
11 #define FRAME_HISTORY_LENGTH 5
12
13 #define AUDIO_OUTPUT_CODEC AV_CODEC_ID_PCM_S32LE
14 #define AUDIO_OUTPUT_SAMPLE_FMT AV_SAMPLE_FMT_S32
15 #define AUDIO_OUTPUT_BIT_RATE 0
16
17 #define LOCAL_DUMP_PREFIX "record-"
18 #define LOCAL_DUMP_SUFFIX ".nut"
19 #define STREAM_MUX_NAME "nut"
20 #define MUX_OPTS { \
21         /* Make seekable .mov files. */ \
22         { "movflags", "empty_moov+frag_keyframe+default_base_moof" }, \
23         \
24         /* Keep nut muxer from using unlimited amounts of memory. */ \
25         { "write_index", "0" } \
26 }
27
28 // In bytes. Beware, if too small, stream clients will start dropping data.
29 // For mov, you want this at 10MB or so (for the reason mentioned above),
30 // but for nut, there's no flushing, so such a large mux buffer would cause
31 // the output to be very uneven.
32 #define MUX_BUFFER_SIZE 65536
33
34 #endif  // !defined(_DEFS_H)