Debian Codegraph @

src/devedeng/mux_dvd_menu.py

raw
1 #!/usr/bin/env python3
2
3 # Copyright 2014 (C) Raster Software Vigo (Sergio Costas)
4 #
5 # This file is part of DeVeDe-NG
6 #
7 # DeVeDe-NG is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 3
9 # as published by the Free Software Foundation.
10 #
11 # DeVeDe-NG is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>
18
19 import os
20 import devedeng.configuration_data
21 import devedeng.executor
22
23
24 class mux_dvd_menu(devedeng.executor.executor):
25
26 def __init__(self):
27
28 devedeng.executor.executor.__init__(self)
29 self.config = devedeng.configuration_data.configuration.get_config()
30
31 def create_mpg(self, n_page, output_path, movie_path):
32
33 self.n_page = n_page
34 self.text = _("Mixing menu %(X)d") % {"X": self.n_page}
35
36 final_path = os.path.join(output_path, "menu_" + str(n_page) + "B.mpg")
37
38 self.command_var = []
39 self.command_var.append("spumux")
40 self.command_var.append(os.path.join(output_path, "menu_" + str(n_page) + ".xml"))
41 self.stdin_file = movie_path
42 self.stdout_file = final_path
43
44 return final_path
45
46 def process_stderr(self, data):
47
48 return