[FFmpeg-user] OVERLAY_CUDA and PGS Subtitle burn
Panda Sing Cool
pandacoolsing at gmail.com
Thu Sep 17 02:28:00 EEST 2020
Hi,
This will not work. overlay_cuda accept only these format:
(
https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200318071955.2329-1-yyyaroslav@gmail.com/
)
+static const enum AVPixelFormat supported_overlay_formats[] = {+
AV_PIX_FMT_NV12,+ AV_PIX_FMT_YUV420P,+ AV_PIX_FMT_YUVA420P,+
AV_PIX_FMT_NONE,+};
./ffmpeg -i input.mkv -filter_complex '[0:v][0:s]overlay_cuda' outut.mkv
...........
Stream mapping:
Stream #0:0 (h264) -> overlay_cuda:main (graph 0)
Stream #0:2 (pgssub) -> overlay_cuda:overlay (graph 0)
overlay_cuda (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (dts (dca) -> ac3 (native))
Press [q] to stop, [?] for help
[matroska,webm @ 0x4a02540] sub2video: using 1920x1080 canvas
*Impossible to convert between the formats supported by the filter 'graph 0
input from stream 0:0' and the filter 'auto_scaler_0'*Error reinitializing
filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
On Thu, 17 Sep 2020 at 07:14, Ted Park <kumowoon1025 at gmail.com> wrote:
> Hi,
>
> > i'm trying to use the OVERLAY_CUDA function to burn PGS titles over a
> video
> >
>
> Try ffmpeg -I input.mkv -filter_complex ‘[0:v][0:s]overlay_cuda’ <output>
>
> (Not completely sure it works with overlay cuda but that’s how you would do
> it with overlay.
>
>
> Regards,
>
> Ted Park
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list