[FFmpeg-user] nvenc burn subtitles while transcoding
Mitja Pirih
mitja at alternet.si
Sat Oct 21 00:14:25 EEST 2017
Hi,
I would like to burn subtitles while transcoding with cuvid. If I do not
use a HW decoder it works:
/usr/bin/ffmpeg -i udp://239.255.6.2:1234 -filter_complex
[i:0x4b1][i:0x4ba]overlay[v] -map [v] -map i:0x4b2 -c:a libfdk_aac
-profile:a aac_he -ac 2 -b:a 64k -ar 48000 -c:v h264_nvenc -preset llhq
-rc vbr_hq -qmin:v 19 -qmax:v 21 -b:v 2500k -maxrate:v 5000k -profile:v
high -f flv rtmp://127.0.0.1/live/test
ffmpeg version N-87875-gf685bbc Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609
configuration: --prefix=/home/mitja/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/mitja/ffmpeg_build/include
--extra-ldflags=-L/home/mitja/ffmpeg_build/lib --extra-libs=-lpthread
--bindir=/home/mitja/bin --enable-cuda --enable-cuvid --enable-libnpp
--extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64 --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libspeex --enable-nonfree
--enable-nvenc
libavutil 55. 79.100 / 55. 79.100
libavcodec 57.108.100 / 57.108.100
libavformat 57. 84.100 / 57. 84.100
libavdevice 57. 11.100 / 57. 11.100
libavfilter 6.108.100 / 6.108.100
libswscale 4. 9.100 / 4. 9.100
libswresample 2. 10.100 / 2. 10.100
libpostproc 54. 8.100 / 54. 8.100
When I add hw acceleration for decoding I stops. Any ideas what can I try?
/usr/bin/ffmpeg -hwaccel cuvid -c:v h264_cuvid -i
udp://239.255.6.2:1234 -filter_complex [i:0x4b1][i:0x4ba]overlay[v] -map
[v] -map i:0x4b2 -c:a libfdk_aac -profile:a aac_he -ac 2 -b:a 64k -ar
48000 -c:v h264_nvenc -preset llhq -rc vbr_hq -qmin:v 19 -qmax:v 21 -b:v
2500k -maxrate:v 5000k -profile:v high -f flv rtmp://127.0.0.1/live/test
ffmpeg version N-87875-gf685bbc Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609
configuration: --prefix=/home/mitja/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/mitja/ffmpeg_build/include
--extra-ldflags=-L/home/mitja/ffmpeg_build/lib --extra-libs=-lpthread
--bindir=/home/mitja/bin --enable-cuda --enable-cuvid --enable-libnpp
--extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64 --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libspeex --enable-nonfree
--enable-nvenc
libavutil 55. 79.100 / 55. 79.100
libavcodec 57.108.100 / 57.108.100
libavformat 57. 84.100 / 57. 84.100
libavdevice 57. 11.100 / 57. 11.100
libavfilter 6.108.100 / 6.108.100
libswscale 4. 9.100 / 4. 9.100
libswresample 2. 10.100 / 2. 10.100
libpostproc 54. 8.100 / 54. 8.100
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] SPS unavailable in decode_picture_timing
[h264 @ 0x3f73d20] non-existing PPS 0 referenced
[h264 @ 0x3f73d20] decode_slice_header error
[h264 @ 0x3f73d20] no frame!
Input #0, mpegts, from 'udp://239.255.6.2:1234':
Duration: N/A, start: 7449.459100, bitrate: N/A
Program 13002
Stream #0:0[0x4b1]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k
tbn, 50 tbc
Stream #0:1[0x4b2](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:2[0x4ba](slv): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
Stream #0:0 (h264_cuvid) -> overlay:main (graph 0)
Stream #0:2 (dvbsub) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (h264_nvenc)
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[mpegts @ 0x3f4edc0] 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
[libfdk_aac @ 0x4001220] 3 frames left in the queue on closing
Conversion failed!
Thanks,
Mitja
More information about the ffmpeg-user
mailing list