Dear all,
I am currently using the SVN version of freevo and I noticed that the
"ENCODINGSERVER_SAVEDIR" is ignored by the reencode plugin.
I thing the problem is in the following piece of code:
* def prepare_output(self, source):
"""Prepare the output file path. Note that we strip the
extension from the output file name"""
output = os.path.splitext(source)[0]
directory = os.path.dirname(output)
#can we write in that directory? If so, the reencoded file will go there
if directory and os.path.isabs(output) and
os.path.isdir(directory) and \
os.access(directory, os.R_OK | os.W_OK | os.X_OK):
return output
basename = os.path.basename(output)
if basename == '':
basename = 'reencoded_video'
# check that we have a default place where we can write the resulting
# reencoded file (it is up to the user to create the dir with correct
# permission)
directory = config.ENCODINGSERVER_SAVEDIR
if directory and os.path.isdir(directory) and
os.access(directory, os.R_OK | os.W_OK | os.X_OK):
return os.path.join(directory, basename)
else:
#in this case, it all ends into a temporary file
return os.path.join('.', basename)
*
In case the first "if" is true then we will return immediately and we
use the base directory of the video to be encoded as the final
destination.
This makes that in case we want to encode a recorded television
program the file is never "copied" to the ENCODINGSERVER_SAVEDIR.
Whas this the intention?
Or should I make a patch such way that we always use the
"ENCODINGSERVER_SAVEDIR" except it is not defined or not correct?
I was also thinking to expand the functionality a bit in such way that
the fxd file is also copied to the new directory and updated with the
new file name.
(I think I have to do this change in the encoding server. Only there
we know if we were sucessful in the end.)
Would that be a good functionality for others as well?
Kind regards,
Han
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel