Browse Source

Add strip-meta, rename edit-jpg-public

master
Nicolas Lenz 2 months ago
parent
commit
5af6843976
2 changed files with 10 additions and 0 deletions
  1. 10
    0
      strip-meta
  2. 0
    0
      strip-meta-jpg

+ 10
- 0
strip-meta View File

@@ -0,0 +1,10 @@
#!/usr/bin/env zsh

# Strips (hopefully) all metadata from a video or audio file using ffmpeg.
# Arg 1: Input file

# Choose VA-API device and enable decoding acceleration
# Encode video using H.265 and VA-API, targeting QP 30, which seems to be roughly the same as in CRF 28 using normal x265
# Encode audio using Opus and 128k bitrate

ffmpeg -i ${1} -map_metadata -1 -timestamp now -c:v copy -c:a copy ${1}

edit-jpg-public → strip-meta-jpg View File


Loading…
Cancel
Save