This commit is contained in:
parent
33e72c839a
commit
426edf6c84
1 changed files with 18 additions and 0 deletions
18
modules2/hosts/t480/heightwidth.nix
Normal file
18
modules2/hosts/t480/heightwidth.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
flake.modules.nixos.pc =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
(pkgs.writeShellApplication {
|
||||||
|
name = "heightwidth";
|
||||||
|
|
||||||
|
runtimeInputs = [ pkgs.ffmpeg ];
|
||||||
|
|
||||||
|
# https://github.com/rwxrob/dot/blob/main/scripts/heightwidth.
|
||||||
|
text = ''
|
||||||
|
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=noprint_wrappers=1 "$1"
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue