FallingSnow / h265ize

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

Add hvc1 tag to codec and copy cover art for mp4 and m4v #127

Open upekshapriya opened 5 years ago

upekshapriya commented 5 years ago

Add hvc1 tag to codec so HEVC is playable by Quicktime in mp4 and m4v containers on MacOS. See https://danconnor.com/posts/21d8bd7c22f6ae6b423c3c09/how_to_encode_h_265_hevc_video_that_will_play_in_quicktime_on_macos_using_ffmpeg_

upekshapriya commented 5 years ago

Copy the second video stream assuming it is an mjpeg stream masquerading as cover art.

upekshapriya commented 5 years ago

Only do this for m4v and mp4 files, not mkv files.

upekshapriya commented 5 years ago

Workaround for ffmpeg not remapping channels for libopus automatically

upekshapriya commented 5 years ago

Sorry this is all a bit of a mess but it mimics what I've done in the compiled version on my Mac which works perfectly for the files I'm converting, which I've been using for the last six months.

I also didn't realise that I had closed it last time I added a change I made.

Attaching the file I edited on my computer that I used as the basis for the changes here, which I found at /usr/local/lib/node_modules/h265ize/h265ize but added .txt so it could be uploaded here.

h265ize.txt Sorry I'm not used to using Github