mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
validate: Better organize rendered files
This commit is contained in:
parent
ca12b78be3
commit
10c192f693
2 changed files with 8 additions and 12 deletions
|
@ -120,12 +120,10 @@ class GESRenderTest(GESTest):
|
||||||
self._set_rendering_info()
|
self._set_rendering_info()
|
||||||
|
|
||||||
def _set_rendering_info(self):
|
def _set_rendering_info(self):
|
||||||
self.dest_file = os.path.join(self.options.dest,
|
self.dest_file = path = os.path.join(self.options.dest,
|
||||||
"ges.",
|
self.classname.replace(".render.", os.sep).
|
||||||
os.path.basename(self.project_uri) +
|
replace(".", os.sep))
|
||||||
'-' + self.combination.acodec +
|
utils.mkdir(os.path.dirname(urlparse.urlsplit(self.dest_file).path))
|
||||||
self.combination.vcodec + '.' +
|
|
||||||
self.combination.container)
|
|
||||||
if not utils.isuri(self.dest_file):
|
if not utils.isuri(self.dest_file):
|
||||||
self.dest_file = utils.path2url(self.dest_file)
|
self.dest_file = utils.path2url(self.dest_file)
|
||||||
|
|
||||||
|
|
|
@ -185,12 +185,10 @@ class GstValidateTranscodingTest(GstValidateTest):
|
||||||
self.dest_file = ""
|
self.dest_file = ""
|
||||||
|
|
||||||
def set_rendering_info(self):
|
def set_rendering_info(self):
|
||||||
self.dest_file = os.path.join(self.options.dest,
|
self.dest_file = path = os.path.join(self.options.dest,
|
||||||
"validate.transcoding." +
|
self.classname.replace(".transcode.", os.sep).
|
||||||
os.path.basename(self.uri) +
|
replace(".", os.sep))
|
||||||
'-' + self.combination.acodec +
|
utils.mkdir(os.path.dirname(urlparse.urlsplit(self.dest_file).path))
|
||||||
self.combination.vcodec + '.' +
|
|
||||||
self.combination.container)
|
|
||||||
if urlparse.urlparse(self.dest_file).scheme == "":
|
if urlparse.urlparse(self.dest_file).scheme == "":
|
||||||
self.dest_file = path2url(self.dest_file)
|
self.dest_file = path2url(self.dest_file)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue