forked from puzzlet/pytranscode
-
Notifications
You must be signed in to change notification settings - Fork 1
/
presets.py
89 lines (72 loc) · 2.5 KB
/
presets.py
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"""
Presets for the ffmpeg manager
==============================
Import these presets for quick access to transcode settings
"""
# YouTube Quality
# ===============
STANDARD_FLV_VIDEO = {'size':'420x340',
'vcodec':'flv',
'format':'flv',
'bitrate':'4000'}
STANDARD_FLV_AUDIO = {'rate':'256k',
'freq':'44100',
'acodec':'libmp3lame'}
# IPOD Video
# ==========
IPOD_MP4_VIDEO = {'format':'mp4',
'vcodec':'mpeg4',
'qmin':'3',
'qmax':'5',
'g':'300',
'size':'480x320',
'bitrate':'700k'}
IPOD_MP4_AUDIO = {'acodec':'libfaac',
'rate':'128k'}
# HD Video (780p)
# ===============
HD_H264_AUDIO = {'acodec':'libfaac',
'rate':'96k',
'freq':'44100'}
HD_H264_VIDEO = {'vcodec':'libx264',
'level':'41',
'crf':'25',
'bufsize': '20000k',
'maxrate': '25000k',
'g':'30',
'fps':'20',
'size':'1280x720',
'coder':'1',
'flags': '+loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8',
'flags2': '+dct8x8+bpyramid',
'me_method': 'umh',
'subq':'7',
'me_range':'16',
'keyint_min':'25',
'sc_threshold':'40',
'i_qfactor':'0.71',
'rc_eq': "'blurCplx^(1-qComp)'",
'bf':'16',
'b_strategy':'1',
'bidir_refine': '1',
'refs': '6',
'deblockalpha':'0',
'deblockbeta':'0',
}
# High Quality FLV
# ================
HQ_FLV_AUDIO = {'acodec':'libmp3lame',
'rate': '128k',
'channels':'2',
'freq':'44100'}
HQ_FLV_VIDEO = {'format':'flv',
'deinterlace':'',
'nr': '500',
'size':'640x420',
'fps':'30',
'bitrate':'270k',
'me_range':'25',
'i_qfactor':'0.9',
'qmin':'12',
'qmax':'12',
'g':'500'}