48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
|
|
# Copyright 2014 (C) Raster Software Vigo (Sergio Costas)
|
|
#
|
|
# This file is part of DeVeDe-NG
|
|
#
|
|
# DeVeDe-NG is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 3
|
|
# as published by the Free Software Foundation.
|
|
#
|
|
# DeVeDe-NG is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
import os
|
|
import devedeng.configuration_data
|
|
import devedeng.executor
|
|
|
|
|
|
class mux_dvd_menu(devedeng.executor.executor):
|
|
|
|
def __init__(self):
|
|
|
|
devedeng.executor.executor.__init__(self)
|
|
self.config = devedeng.configuration_data.configuration.get_config()
|
|
|
|
def create_mpg(self, n_page, output_path, movie_path):
|
|
|
|
self.n_page = n_page
|
|
self.text = _("Mixing menu %(X)d") % {"X": self.n_page}
|
|
|
|
final_path = os.path.join(output_path, "menu_" + str(n_page) + "B.mpg")
|
|
|
|
self.command_var = []
|
|
self.command_var.append("spumux")
|
|
self.command_var.append(os.path.join(output_path, "menu_" + str(n_page) + ".xml"))
|
|
self.stdin_file = movie_path
|
|
self.stdout_file = final_path
|
|
|
|
return final_path
|
|
|
|
def process_stderr(self, data):
|
|
|
|
return
|