-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoarchive.py
More file actions
17 lines (14 loc) · 766 Bytes
/
autoarchive.py
File metadata and controls
17 lines (14 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from args_parser import args_parser
import application
from pyffwrapper import factory, profile_loader
from pyffwrapper.profile_data_provider import JinjaProfileDataProvider
from pyffwrapper.profile_data_parser import JsonProfileDataParser
if __name__ == '__main__':
base_dir = os.path.dirname(__file__)
app = application.Application(base_dir, args_parser.parse_args())
factory.ffmpeg_factory = factory.FFmpegFactory(app.conf['ffmpeg_path'], app.conf['temp_dir'])
factory.ffprobe_factory = factory.FFprobeFactory(app.conf['ffprobe_path'])
profile_loader.profile_loader = profile_loader.ProfileLoader(JinjaProfileDataProvider(),
JsonProfileDataParser())
app.exec()