Optimierungen

This commit is contained in:
Stefan Bethke 2013-08-06 22:16:14 +00:00
parent e54350c0c6
commit cff554f297

View file

@ -7,16 +7,17 @@ import sys
def transcode(src, tgt, fmt): def transcode(src, tgt, fmt):
#transcode_opts = [ "ffmpeg1" ];
transcode_opts = [ "ffmpeg-devel" ]; transcode_opts = [ "ffmpeg-devel" ];
#transcode_opts.extend(["-t", "240"]) # testing only #transcode_opts.extend(["-t", "240"]) # testing only
#transcode_opts.extend(["-loglevel", "error"]) #transcode_opts.extend(["-loglevel", "debug"])
transcode_opts.extend(["-i", src]) transcode_opts.extend(["-i", src])
transcode_opts.extend(["-threads", "0"]) transcode_opts.extend(["-threads", "0"])
transcode_opts.extend(["-y", "-deinterlace"]) transcode_opts.extend(["-y", "-deinterlace"])
transcode_opts.extend(["-ac", "2", "-ab", "128k"]) #transcode_opts.extend(["-ac", "2", "-ab", "128k"])
transcode_opts.extend(["-vcodec", "libx264"]) transcode_opts.extend(["-vcodec", "libx264"])
transcode_opts.extend(["-tune", "film", "-profile", "main"]) #transcode_opts.extend(["-tune", "film", "-profile", "main"])
if fmt == "hd": if fmt == "hd":
transcode_opts.extend(["-s", "1280x720"]) transcode_opts.extend(["-s", "1280x720"])
transcode_opts.extend(["-b", "4000k"]) transcode_opts.extend(["-b", "4000k"])