FallingSnow / h265ize

A node utility utilizing ffmpeg to encode videos with the hevc codec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AVCHD .MTS files are not recognized as video stream

omencat opened this issue · comments

From the helpers.js it looks like it checks to see if mime type starts with video, but for .MTS files, I guess they are not recognized as valid video files.

That is probably correct. You would need to change the code located at

if (mime.lookup(file).startsWith('video/') || Path.extname(file) === '.m2ts')

to add .mts.