Compare commits

...

3 Commits

Author SHA1 Message Date
vexorian
8481e2cea1 Revert "Another base image for ffmpeg"
This reverts commit 86d5e0018abf126351a5526fe2d370b0854d7c5c.
2021-10-30 18:48:48 -04:00
vexorian
86d5e0018a Another base image for ffmpeg 2021-10-30 17:00:33 -04:00
vexorian
350d59d928 qsv test 2021-10-30 15:37:50 -04:00
2 changed files with 15 additions and 1 deletions

14
Dockerfile-qsv Normal file
View File

@ -0,0 +1,14 @@
FROM node:12.18-alpine3.12
WORKDIR /home/node/app
COPY package*.json ./
RUN npm install && npm install -g browserify nexe@3.3.7
COPY --from=vexorian/dizquetv:nexecache /var/nexe/linux-x64-12.16.2 /var/nexe/
COPY . .
RUN npm run build && LINUXBUILD=dizquetv sh make_dist.sh linuxonly
FROM wzhy1234/ffmpeg-qsv
EXPOSE 8000
WORKDIR /home/node/app
ENTRYPOINT [ "./dizquetv" ]
COPY --from=0 /home/node/app/dist/dizquetv /home/node/app/
RUN ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg

View File

@ -227,7 +227,7 @@ class FFMPEG extends events.EventEmitter {
//add 150 milliseconds just in case, exact duration seems to cut out the last bits of music some times.
duration = `${streamStats.duration + 150}ms`;
}
videoComplex = `;[${inputFiles++}:0]format=yuv420p[formatted]`;
videoComplex = `;[${inputFiles++}:0]format=nv12[formatted]`;
videoComplex +=`;[formatted]scale=w=${iW}:h=${iH}:force_original_aspect_ratio=1[scaled]`;
videoComplex += `;[scaled]pad=${iW}:${iH}:(ow-iw)/2:(oh-ih)/2[padded]`;
videoComplex += `;[padded]loop=loop=-1:size=1:start=0[looped]`;