Optimierungen
This commit is contained in:
parent
e54350c0c6
commit
cff554f297
1 changed files with 4 additions and 3 deletions
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue