]> git.sesse.net Git - nageru/blob - shared/shared_defs.h
62b719dddaf8ad3c795fe8a5bc5be6643b264f9d
[nageru] / shared / shared_defs.h
1 #ifndef _SHARED_DEFS_H
2 #define _SHARED_DEFS_H 1
3
4 #define OUTPUT_FREQUENCY 48000  // Currently needs to be exactly 48000, since bmusb outputs in that.
5
6 #define MUX_OPTS { \
7         /* Make seekable .mov files, and keep MP4 muxer from using unlimited amounts of memory. */ \
8         { "movflags", "empty_moov+frag_keyframe+default_base_moof+skip_trailer" }, \
9         \
10         /* Make for somewhat less bursty stream output when using .mov. */ \
11         { "frag_duration", "125000" }, \
12         \
13         /* Keep nut muxer from using unlimited amounts of memory. */ \
14         { "write_index", "0" } \
15 }
16
17 // In bytes. Beware, if too small, stream clients will start dropping data.
18 // For mov, you want this at 10MB or so (for the reason mentioned above),
19 // but for nut, there's no flushing, so such a large mux buffer would cause
20 // the output to be very uneven.
21 #define MUX_BUFFER_SIZE 10485760
22
23 #endif  // !defined(_SHARED_DEFS_H)