Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 2 -hls_list_size 0 -f hls filename.m3u8
# adapted from https://www.reddit.com/r/PrivateInternetAccess/comments/njwip9/qbittorrent_and_private_internet_access_pia_vpn/ | |
# requires running "Install-Module PsIni" | |
Import-Module PsIni | |
# get qBittorrent process | |
$qbProc = Get-Process qbittorrent -ErrorAction SilentlyContinue | |
# if qBit is running, it's closed | |
if ($qbProc) { |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 2 -hls_list_size 0 -f hls filename.m3u8
export const omitSingle = <T>(key: keyof T, { [key]: _, ...obj }: T) => obj; |
import * as moment from 'moment-timezone'; | |
// moment-msdate doesn't provide strong types, so add them here | |
declare module 'moment' { | |
export function fromOADate(oaDate: number, offset?: (string | number)): moment.Moment; | |
interface Moment { | |
toOADate(): number; | |
} | |
} |