A Linux tool to cut short videos with ffmpeg
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
deterenkelt c99262fa25 Improved overshooting handling for heavy files. 3 weeks ago
.github/ISSUE_TEMPLATE Updated bug report tempalte 5 months ago
defconf Improved overshooting handling for heavy files. 3 weeks ago
lib Spelling fixes in Bahelite comments 3 weeks ago
metaconf Trivial fixes and release notes update. 2 months ago
modules Improved overshooting handling for heavy files. 3 weeks ago
packaging/gentoo upd 2 months ago
tests Finalised 2.17.2 update 6 months ago
.gitignore v2.21 update 2 months ago
LICENCE LICENSE → LICENCE 3 years ago
Makefile Finalised 2.17.2 update 6 months ago
README.md upd 2 months ago
RELEASE_NOTES Improved overshooting handling for heavy files. 3 weeks ago
nadeshiko-do-postponed.sh Nade-do-post to store logs of completed jobs till the next batch 2 months ago
nadeshiko-mpv.sh Fixed error on cropping with Nadeshiko-mpv 2 months ago
nadeshiko.sh Improved overshooting handling for heavy files. 3 weeks ago

README.md

Nadeshiko

A Linux tool to cut short videos with ffmpeg

nadeshiko.sh

Command line tool. Smart. Configurable. Extensible.

GIF: Using Nadeshiko in terminal

Why it is best  ⋅  How to use  ⋅  Tips

 

nadeshiko-mpv.sh

Frontend that connects to mpv player.

GIF: Nadeshiko-mpv in action

Predictor  ⋅  How to use  ⋅  Tips

 

Main features

  • Guarantees to fit clip in a specified size.

    • One run – one clip. No more encoding by trial and error.
  • Keeps the quality good or refuses to encode.

    • Optimal bitrate ranges are determined by the codec type, resolution and scene complexity.
    • Quality is proven by numerous test runs (See this test for example.)
    • No need to learn FFmpeg!
    • Resolution may be lowered as necessary to save quality.
    • Built-in predictor:
      Predictor
  • Customisable

    • Every setting is configurable through a simple config file.
    • Preconfigured options for VP9 (+2 audio codecs) and H.264 (+3 audio codecs).
    • Turn subtitles and audio on or off by default.
    • Custom style for subtitles, that have none (+automatic scaling depending on the resolution!)
    • Fine-tune the encoding mechanism (but be careful!)
    • If you feel like adding a key or two to the default FFmpeg command – you can add them as input or output options (1 pass and 2 pass separately).
    • Clone configs to create custom presets!
  • Simple installation

    • Download and run. No compilation is needed.
  • Hardsubbing

    • For text-based subtitles: SubRip (.srt), ASS (.ass, .ssa), WebVTT (.vtt) – built-in or external.
    • For pixel-based DVD and Bluray subtitlies – yes, but only for the built-in ones.
    • With fonts, as you see them in the player! Nadeshiko will extract them, if necessary, and turn on OpenType for FFmpeg.
    • Fonts built-in in the .ass files are extracted.
    • Extracted attachments are cached to save time for the next runs.
  • Cropping

    • Set coordinates by hand…
    • Or pick them interactively (built-in mpv_crop_script).
  • Colour space conversion

    • Enabled optionally. Can be forced.
    • Includes tonemap and contrast restretch for HDR to SDR conversion.
    • Supports anything that ffmpeg supports.
    • Customisable exclusions and colour space targets.
    • Strict and safe tagging of the output by default.

 

Don’t look down

Read about which codec is best at what or even better – go through the Crash course, you d-don’t need to know the scary truth… Don’t look down.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Don’t let Nadeshiko die!

.

.

.

.

.

This program’s name is a reference to Nadeshiko Kagamihara, a character from Yurucamp. The original manga was drawn by あfろ for Houbunsha, and the anime television series is made by studio C-Station.

The ghosts on the picture above were taken from Katanagatari. It was originally written as a light novel by Nisio Isin for Kodansha and illustrated by Take. The light novel was animated by studio White Fox.

Nadeshiko uses FFmpeg (which in its turn uses libx264, libvpx, libopus, libvorbis, libfdk_aac, aac, libass…), mediainfo, mpv, mpv_crop_script, GNU grep, GNU sed and GNU time.

Let’s be grateful to their authors for their hard work.