FallingSnow / h265ize

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

Saving Stats doesn't work anymore #156

Open Knuspel opened 4 years ago

Knuspel commented 4 years ago

When I run the application with --stats enabled I run into the following error.

 (node:14229) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'format' of undefined
    at /root/repos/h265ize/lib/classes/video.js:1137:56
(node:14229) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:14229) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

It crashes the whole application.

I wasn't able to figure out the issue as to why this happens unfortunatly.

platima commented 3 years ago

Seconded in latest (0.5.0) also using latest stable ffmpeg (4.3.1) compiled from scratch on Debian 9 x64.

Needed this as 4K MOV files from iPhone was throwing issues with the unknown mebx streams not copying ("Could not find tag for codec none in stream #2, codec not currently supported in container").

Not sure if in the end moving to 0.5.0 fixed it with https://github.com/FallingSnow/h265ize/commit/6fe44ebdf43c61ffd37236a8d9b6aa233d09b71e but had to update ffmpeg to fix something else anyway.