dont force keyframe interval
This commit is contained in:
parent
3dc8dfcacd
commit
ec1fd2c565
2 changed files with 7 additions and 5 deletions
|
@ -223,6 +223,10 @@ class Client(object):
|
|||
for name in self._config['volumes']:
|
||||
path = self._config['volumes'][name]
|
||||
path = os.path.normpath(path)
|
||||
conn, c = self._conn()
|
||||
c.execute('SELECT path FROM file WHERE path LIKE ? AND deleted < 0', ["%s%%"%path])
|
||||
known_files = [r[0] for r in c.fetchall()]
|
||||
|
||||
files = []
|
||||
for dirpath, dirnames, filenames in os.walk(path, followlinks=True):
|
||||
if isinstance(dirpath, str):
|
||||
|
@ -237,11 +241,8 @@ class Client(object):
|
|||
files.append(file_path)
|
||||
self.scan_file(file_path)
|
||||
|
||||
conn, c = self._conn()
|
||||
c.execute('SELECT path FROM file WHERE path LIKE ? AND deleted < 0', ["%s%%"%path])
|
||||
known_files = [r[0] for r in c.fetchall()]
|
||||
deleted_files = filter(lambda f: f not in files, known_files)
|
||||
|
||||
conn, c = self._conn()
|
||||
if deleted_files:
|
||||
deleted = time.mktime(time.localtime())
|
||||
for f in deleted_files:
|
||||
|
|
|
@ -130,8 +130,9 @@ def video_cmd(video, target, profile, info):
|
|||
if abs(width/height - dar) < 0.02:
|
||||
aspect = '%s:%s' % (width, height)
|
||||
|
||||
# '-g', '%d' % int(fps*2),
|
||||
video_settings = [
|
||||
'-vb', '%dk'%bitrate, '-g', '%d' % int(fps*2),
|
||||
'-vb', '%dk'%bitrate,
|
||||
'-s', '%dx%d'%(width, height),
|
||||
'-aspect', aspect,
|
||||
'-vf', 'yadif',
|
||||
|
|
Loading…
Reference in a new issue