Setup:
# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORSTop 10 contributors (all):
Setup:
# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORSTop 10 contributors (all):
Brought to you by Headjack
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.
Let's start with some basics:
ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe fileThis guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| import AVKit | |
| import Foundation | |
| class VideoHelper { | |
| static func getThumbnail(from player: AVPlayer, at time: CMTime, maximumSize: CGSize? = nil) -> CGImage? { | |
| guard let currentItem = player.currentItem else { return nil } | |
| return getThumbnail(from: currentItem.asset, at: time, maximumSize: maximumSize) | |
| } |
| // | |
| // Non-conclusive list of interesting private Metal pixel formats | |
| // | |
| let MTLPixelFormatYCBCR8_420_2P: UInt = 500 | |
| let MTLPixelFormatYCBCR8_422_1P: UInt = 501 | |
| let MTLPixelFormatYCBCR8_422_2P: UInt = 502 | |
| let MTLPixelFormatYCBCR8_444_2P: UInt = 503 | |
| let MTLPixelFormatYCBCR10_444_1P: UInt = 504 | |
| let MTLPixelFormatYCBCR10_420_2P: UInt = 505 | |
| let MTLPixelFormatYCBCR10_422_2P: UInt = 506 |