Skip to content

Commit

Permalink
Updated pipfile dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmithjr committed Apr 22, 2019
1 parent bf9aba9 commit 0a7d934
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -143,9 +143,10 @@ profiles:
# Sample nVidia transcode setup
#

hevc_hd_preserved: # profile name
hevc_cuda: # profile name
input_options: | # ffmpeg input options
-hwaccel cuvid # REQUIRED for CUDA
-c:v h264_cuvid # hardware decoding too
output_options: | # ffmpeg output options
-c:v hevc_nvenc # REQUIRED for CUDA
-profile:v main
Expand Down Expand Up @@ -174,7 +175,7 @@ profiles:
| threshold | optional. If provided this number represents a minimum percentage compression savings for the encoded media. If it does not meet this threshold the transcoded file is discarded, source file remains as-is, and the source job marked as complete. This is useful if a particular file doesn't compress much and you would rather just keep the original. |
| threshold_check | optional. If provided this is the percent done to start checking if the threshold is being met. Default is 100% (when media is finished). Use this to have threshold checks done earlier to stop a long-running transcode if not producing expected compression (threshold).

> CPU Note: When transcoding from h264 on an Intel chip, _ffmpeg_ will use detected extensions to basically perform hardware decoding for you. So if you configured hardware encoding you'll see low CPU use. On AMD there is no chip assistance on decoding. So even if hardware encoding, the decoding process will load down your CPU. To fix this simply enable hardware decoding as an **input option**.
> CPU Note: When transcoding from h264 on an Intel I5/I7 6th+ gen chip, _ffmpeg_ will use detected extensions to basically perform hardware decoding for you. So if you configured hardware encoding you'll see low CPU use. On AMD there is no chip assistance on decoding. So even if hardware encoding, the decoding process will load down your CPU. To fix this simply enable hardware decoding as an **input option**.
#### rules - simple profile matching rules

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -24,7 +24,7 @@
long_description_content_type = 'text/markdown',
extras_require={'with_plexapi': ['plexapi>=3.1.0']},
url='https://github.com/mlsmithjr/transcoder',
data_files=[('share/doc/pytranscoder', ['README.md', 'Cluster.md', 'transcode.yml'])],
data_files=[('share/doc/pytranscoder', ['README.md', 'Cluster.md', 'transcode.yml', 'simple.yml'])],
packages=['pytranscoder'],
install_requires=['pyyaml', 'crayons'],
entry_points={"console_scripts": ["pytranscoder=pytranscoder.transcode:main"]},
Expand Down
11 changes: 6 additions & 5 deletions simple.yml
Expand Up @@ -10,6 +10,7 @@
config:
default_queue_file: '/tmp/fileoffiles.txt'
ffmpeg: '/usr/bin/ffmpeg'
colorize: yes

##
# profile definitions. You can model all your transcoding combinations here.
Expand Down Expand Up @@ -41,29 +42,29 @@ profiles:
rules:
'skip video if already encoded in hevc/h265':
profile: SKIP
rules:
criteria:
vcodec: 'hevc'

'skip video if resolution < 700':
profile: SKIP
rules:
criteria:
res_height: '<700'

'content just too big':
profile: hevc_cuda
rules:
criteria:
runtime: '>90' # more than 90 minutes
filesize_mb: '>4000' # ..and larger than 4 gigabytes

'small enough already': # skip if <2.5g size and higher than 720p and between 30 and 64 minutes long.
profile: SKIP # transcoding these will probably cause a noticeable quality loss so skip.
rules:
criteria:
filesize_mb: '<2500' # less than 2.5 gigabytes
res_height: '720-1081' # 1080p, allowing for random oddball resolutions still in the HD range
runtime: '30-65' # between 30 and 65 minutes long

'default': # this will be the DEFAULT (no criteria implies a match)
profile: h264
rules:
criteria:
vcodec: '!hevc'

0 comments on commit 0a7d934

Please sign in to comment.