-
Notifications
You must be signed in to change notification settings - Fork 5
/
dvd_mpv.h
57 lines (52 loc) · 1.17 KB
/
dvd_mpv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef DVD_INFO_MPV_H
#define DVD_INFO_MPV_H
#define DVD_INFO_MPV_TIME_POSITION 12
struct dvd_player {
char config_dir[PATH_MAX];
char mpv_config_dir[PATH_MAX];
};
struct dvd_playback {
uint16_t track;
uint8_t first_chapter;
uint8_t last_chapter;
bool fullscreen;
bool deinterlace;
char audio_lang[3];
char audio_stream_id[4];
bool subtitles;
char subtitles_lang[3];
char subtitles_stream_id[4];
char mpv_chapters_range[32];
};
struct dvd_rip {
uint16_t track;
uint8_t first_chapter;
uint8_t last_chapter;
uint8_t mpv_last_chapter;
char filename[PATH_MAX];
char config_dir[PATH_MAX];
char mpv_config_dir[PATH_MAX];
char container[5];
bool encode_video;
char vcodec[256];
char vcodec_opts[256];
char vcodec_log_level[6];
bool encode_audio;
char audio_lang[3];
char audio_stream_id[4];
uint8_t audio_channels;
char mpv_audio_channels[2];
char acodec[256];
char acodec_opts[256];
uint16_t video_bitrate;
uint16_t audio_bitrate;
bool encode_subtitles;
char subtitles_lang[3];
char subtitles_stream_id[4];
char start[DVD_INFO_MPV_TIME_POSITION + 1];
char stop[DVD_INFO_MPV_TIME_POSITION + 1];
char vf_opts[256];
char of_opts[256];
uint8_t crf;
};
#endif