1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-19 06:22:18 +00:00

Fix line breaks for ffmpeg cmd

This commit is contained in:
snobu
2020-04-08 12:06:26 +03:00
parent 1fc80d8366
commit 388ec0c9a3

View File

@@ -3,9 +3,9 @@ import { execSync } from 'child_process';
export function drawThumbnail(posterImage: string, accessToken: string): void {
let fetchCmd = `ffmpeg -hide_banner -loglevel warning ` +
`-headers "Authorization: Bearer ${accessToken}\r\n" ` +
`-i "${posterImage}" -y .thumbnail.png`;
let fetchCmd = `ffmpeg -hide_banner -loglevel warning \
-headers "Authorization: Bearer ${accessToken}" \
-i "${posterImage}" -y .thumbnail.png`;
execSync(fetchCmd, { stdio: 'inherit' });
try {
term.drawImage('.thumbnail.png', { shrink: { width: 50, height: 50 } });