FallingSnow / h265ize

A node utility utilizing ffmpeg to encode videos with the hevc codec.
MIT License
527 stars 81 forks source link

keep extension #131

Open aakhter opened 5 years ago

aakhter commented 5 years ago

Is there a way to keep the file extension (eg. mkv, mp4) the same as the original file. This would of course mean matching the container...

FallingSnow commented 5 years ago

No there is not.

jefro108 commented 5 years ago

I use a workaround with the find command find "/Path/to/media/files" -type f -iname "*.mkv" -exec h265ize -v -m medium -q 25 --he-audio --delete {} \; to select just the mkv files. If I want to process mp4 files: find "/Path/to/media/files" -type f -iname "*.mp4" -exec h265ize -v -m medium -q 25 -f mp4 --delete {} \; which forces a mp4 output file.

Yes I use the 'dangerous' delete command but the files are on a ZFS server with automatic snapshots so I can always retrieve the original if necessary.