A Linux tool to cut short videos with ffmpeg
 
 
 
 
Go to file
deterenkelt a6fea18f03 Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00
.gitea/ISSUE_TEMPLATE Got rid of another unnecessary mention of Microsoft’s pile of git grabage 2023-05-30 04:14:41 +03:00
defconf Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00
lib upd for the logging module 2023-07-07 23:33:22 +03:00
metaconf Remove bugs and enhance code related to frame rate 2023-06-22 09:21:13 +03:00
modules Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00
packaging/gentoo Trivial changes, markup, comments… 2023-04-04 10:21:03 +03:00
res/icons Icons for dialogue windows 2022-01-21 19:29:18 +03:00
tests Audio headpat 2023-04-04 10:11:21 +03:00
.gitignore Tidy up the console output, playback bugfix etc. 2022-01-21 20:01:52 +03:00
LICENCE LICENSE → LICENCE 2019-02-27 21:39:25 +03:00
Makefile Tidy up the console output, playback bugfix etc. 2022-01-21 20:01:52 +03:00
README.md Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00
RELEASE_NOTES Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00
nadeshiko-do-postponed.sh Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00
nadeshiko-mpv.sh Updated comments in the code. 2023-07-06 22:22:05 +03:00
nadeshiko.sh Wording, spelling, clarity in help outputs ad descriptions 2023-08-04 01:21:08 +03:00

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 video fragment to specified file 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.
    • 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 support

    • 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.
  • Optimised composition of the encoded file name

    • smart shortening;
    • timestamp format optimised to frame step in the source.

 

Dont look down

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

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Don’t let Nadeshiko die!

.

.

.

.

.

This programs 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.

Lets be grateful to their authors for their hard work.