项目作者: amaurypm

项目描述 :
Unattended video transcoder to H265 and ACC codecs, in MKV containers.
高级语言: Python
项目地址: git://github.com/amaurypm/transcode2H265.git
创建时间: 2017-04-20T20:26:30Z
项目社区:https://github.com/amaurypm/transcode2H265

开源协议:GNU General Public License v3.0

下载


transcode2H265

Unattended video transcoder to H265 and ACC codecs, in MKV containers.

What does this do?

This program transcode video files to H265 and AAC in MKV format. Subtitles,
if present, are automatically detected and soft subbed into the corresponding
output files.

How does it work?

transcode2H265 uses ffmpeg, mkmerge and other system tools to convert the input videos.

How do I install it?

As a python script you can just run the transcode2H265.py file, or put a symbolic link in any directory of your PATH (e.g. /usr/local/bin)
The script needs ffmpeg and mkvtoolnix to work, so, if it can not find them in your system it will complain and exit.

Do not many similar programs already exist?

Probably, but I use this. I like it and it works well for me, if you like it too, enjoy it.

How do I use it?

Just do:
transcode2H265.py video_file[s]

It has some options (type transcode2H265 -h or see below), but defaults should work in most cases.

Options

  1. positional arguments:
  2. video Input video file(s).
  3. optional arguments:
  4. -h, --help Show this help message and exit.
  5. -p PRESET, --preset PRESET
  6. X265 preset [default: medium].
  7. -q CRF, --crf CRF CRF value [default: 28]. Determines the output video
  8. quality. Smaller values gives better qualities and
  9. bigger file sizes, bigger values result in less
  10. quality and smaller file sizes. Default value results
  11. in a nice quality/size ratio. CRF values should be in
  12. the range of 1 to 50.
  13. -r, --replace-original-video-file
  14. If set then original video files will be erased after
  15. transcoding. WARNING: deleted files can not be easily
  16. recovered!
  17. -l AVLANG, --avlang AVLANG
  18. Default audio language for MKV files obtained (used
  19. only if the original stream languages fail to be
  20. determined) [default: eng].
  21. -L SLANG, --slang SLANG
  22. Default subtitle language of soft-subbed subtitles
  23. (only used if original subtitle languages fail to be
  24. determined) [default: spa].
  25. -x FILENAME_POSTFIX, --filename-postfix FILENAME_POSTFIX
  26. Postfix to be added to newly created H.265 video files
  27. [default: _h265].
  28. -t THREADS, --threads THREADS
  29. Indicates the number of processor cores the script
  30. will use. 0 indicates to use as many as possible
  31. [default: 0].
  32. -c, --auto-crop Turn on autocrop function. WARNING: Use with caution
  33. as some video files has variable width horizontal (and
  34. vertical) black bars, in those cases you will probably
  35. lose data.
  36. -v, --version Show program's version number and exit.

Is it just in English?

In English and Spanish, depending of your locale. I just speak these two languages, so, if you like it in other, you can always contribute…