-
-
Notifications
You must be signed in to change notification settings - Fork 0
Usage Examples
Below are common usage examples for NHK-TS. For a full list of options, run:
node dist/cli.js --helpOr with Docker:
docker run --rm -t ghcr.io/uppercenter/nhk-ts:latest --helpProcess all .ts files in one directory, enrich with metadata, and transcode to MKV in a different output folder (default output is MKV unless --format mp4 is specified):
docker run --rm -t \
-v /recordings:/input \
-v /output:/output \
-e TVDB_API_KEY=your_key \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--metadata \
--transcode \
--yesdocker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest --input /input --output /output --yesdocker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest --file /input/show.ts --output /output --yesdocker run --rm -t \
-v /recordings:/input \
-v /output:/output \
-e TVDB_API_KEY=your_key \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--metadata \
--yesdocker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest --input /input --output /output --transcode --format mp4 --preset slow --crf 20 --yesdocker run --rm -t --gpus all \
-v /recordings:/input \
-v /output:/output \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--transcode \
--hw-accel nvenc \
--best \
--yesdocker run --rm -t --gpus all \
-v /recordings:/input \
-v /output:/output \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--transcode \
--encoder hevc_nvenc \
--preset medium \
--crf 18 \
--audio-copy \
--yesdocker run --rm -t --gpus all \
-v /recordings:/input \
-v /output:/output \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--transcode \
--hw-accel auto \
--best \
--yesdocker run --rm -t \
-v /recordings:/input \
-v /output:/output \
-v /config:/config \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--reference /config/custom-image.png \
--yesAnalyse recordings without making any modifications:
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest --input /input --output /output --test --yesDelete original .ts and .nfo files only after all requested operations (metadata, trimming, transcoding) complete successfully:
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest --input /input --output /output --delete-original --yesProcess more frames in parallel (uses more CPU/RAM but is faster):
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest --input /input --output /output --parallelism 24 --yesPersist metadata cache between runs by mounting a cache directory:
docker run --rm -t \
-v /recordings:/input \
-v /output:/output \
-v /cache:/cache \
-e TVDB_API_KEY=your_key \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--metadata \
--metadata-cache /cache/metadata.json \
--yesAdjust the analysis window for recordings with different programme transition timings:
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--start-window 100 \
--end-window 230 \
--yesFine-tune black frame detection sensitivity:
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--min-black 0.1 \
--pix-threshold 0.15 \
--yesPreserve original audio quality by copying streams:
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--transcode \
--audio-copy \
--yesEnable detailed logging:
docker run --rm -t -v /recordings:/input -v /output:/output ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--verbosity verbose \
--keep-debug \
--yesA complete example combining metadata lookup, GPU transcoding, and cache persistence:
docker run --rm -t --gpus all \
-v /recordings:/input \
-v /output:/output \
-v /cache:/cache \
-e TVDB_API_KEY=your_key \
ghcr.io/uppercenter/nhk-ts:latest \
--input /input \
--output /output \
--metadata \
--metadata-cache /cache/metadata.json \
--transcode \
--hw-accel auto \
--best \
--audio-copy \
--format mkv \
--yes