# HG changeset patch # User morphbr # Date 1188286210 -3600 # Node ID 2061bf4c30c799dea7a9892a9c4d3115656f1774 # Parent 30368d31696efa409fc520c94997feb82bfbb4f5 [svn r834] - Bug fix diff -r 30368d31696e -r 2061bf4c30c7 gmyth-stream/server/0.3/lib/request_handler.py --- a/gmyth-stream/server/0.3/lib/request_handler.py Tue Aug 28 08:16:13 2007 +0100 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Tue Aug 28 08:30:10 2007 +0100 @@ -360,13 +360,14 @@ self.send_error(404, "File not found") return - filename = args[0]; + filename = args[0]; if not filename: self.send_error(404, "File not found") return #Only stream files on .transcode dir - filename = os.path.join (utils.config.get_transcoded_location(), os.path.basename(filename)) + filename = os.path.join (utils.config.get_transcoded_location(), + os.path.basename(filename)) self.log.error("Stream file: %s" % filename) if not os.path.exists (filename): self.send_error(404, "File not found") @@ -377,7 +378,6 @@ self.send_header("Content-Type", mimetypes.guess_type(filename)[0]) self.send_header("Cache-Control","no-cache") self.send_header("Content-Length", size) - #self.send_header("Connection", "close") self.end_headers() media = open(filename) @@ -429,7 +429,6 @@ if (obj.name == "gmencoder"): self.send_header("Transfer-Encoding", "chunked") - #self.send_header("Connection", "close") self.end_headers() if body: diff -r 30368d31696e -r 2061bf4c30c7 gmyth-stream/server/0.3/plugins/transcoders/mencoder.py --- a/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Tue Aug 28 08:16:13 2007 +0100 +++ b/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Tue Aug 28 08:30:10 2007 +0100 @@ -91,7 +91,7 @@ if self.args["mux"] == "mpeg": video += " -mpegopts format=%s" % self.args["format"] - video += " -vf kerndint,scale=%s:%s" % (self.args["width"], self.args["height"]) + video += " -vf scale=%s:%s" % (self.args["width"], self.args["height"]) return video # _setup_video()