[FFmpeg-user] missing h264_cuvid
James Girotti
james.girotti at gmail.com
Thu Aug 10 19:50:48 EEST 2017
On Thu, Aug 10, 2017 at 3:43 AM, Alex Molon <alex.molon at vision247.com>
wrote:
> I think the problem is more on the decoder you are using.
> Apparently your ffmpeg is compiled to support cuvid.... but if your stream
> is dvb-s mpeg2 maybe you should use this decoder:
>
> V..... mpeg2_cuvid Nvidia CUVID MPEG2VIDEO decoder (codec
> mpeg2video)
>
It is true that you cannot use the h264_cuvid decoder for mpeg2 streams and
the OP should be using "mpeg2_cuvid", the error the OP is getting is not
the error that you would get if you tried that though (foo.ts is a random
mpeg2/mpegts file on my computer):
ffmpeg -analyzeduration 10000 -c:v h264_cuvid -i ./foo.ts
[h264 @ 0x201b950] non-existing PPS 2 referenced
Last message repeated 1 times
[h264 @ 0x201b950] SEI type 13 size 1304 truncated at 96
[h264 @ 0x201b950] Reducing left cropping to 0 chroma samples to preserve
alignment.
[h264 @ 0x201b950] crop values invalid 0 2 49 2 / 32 192
[h264 @ 0x201b950] sps_id 2 out of range
[h264 @ 0x201b950] non-existing PPS 0 referenced
[h264 @ 0x201b950] missing picture in access unit with size 14493
[h264 @ 0x201b950] non-existing PPS 2 referenced
[h264 @ 0x201b950] Invalid NAL unit 0, skipping.
Last message repeated 5 times
[h264 @ 0x201b950] non-existing PPS 2 referenced
[h264 @ 0x201b950] decode_slice_header error
[h264 @ 0x201b950] data partitioning is not implemented. Update your FFmpeg
version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[h264 @ 0x201b950] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
list. (ffmpeg-devel at ffmpeg.org)
[h264 @ 0x201b950] data partitioning is not implemented. Update your FFmpeg
version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[h264 @ 0x201b950] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
list. (ffmpeg-devel at ffmpeg.org)
[h264 @ 0x201b950] data partitioning is not implemented. Update your FFmpeg
version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[h264 @ 0x201b950] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
list. (ffmpeg-devel at ffmpeg.org)
[h264 @ 0x201b950] no frame!
[h264 @ 0x201b950] A non-intra slice in an IDR NAL unit.
[h264 @ 0x201b950] decode_slice_header error
[h264 @ 0x201b950] no frame!
[h264 @ 0x201b950] SEI type 13 size 1304 truncated at 89
[h264 @ 0x201b950] Reducing left cropping to 0 chroma samples to preserve
alignment.
[h264 @ 0x201b950] crop values invalid 0 2 49 2 / 32 192
[h264 @ 0x201b950] Reducing left cropping to 0 chroma samples to preserve
alignment.
[h264 @ 0x201b950] crop values invalid 0 2 49 2 / 32 192
[h264 @ 0x201b950] Reducing left cropping to 0 chroma samples to preserve
alignment.
[h264 @ 0x201b950] crop values invalid 0 2 49 2 / 32 192
[h264 @ 0x201b950] sps_id 2 out of range
[h264 @ 0x201b950] non-existing PPS 0 referenced
[h264 @ 0x201b950] decode_slice_header error
[h264 @ 0x201b950] no frame!
[h264 @ 0x201b950] data partitioning is not implemented. Update your FFmpeg
version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[h264 @ 0x201b950] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
list. (ffmpeg-devel at ffmpeg.org)
[h264 @ 0x201b950] data partitioning is not implemented. Update your FFmpeg
version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[h264 @ 0x201b950] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
list. (ffmpeg-devel at ffmpeg.org)
[h264 @ 0x201b950] data partitioning is not implemented. Update your FFmpeg
version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[h264 @ 0x201b950] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
list. (ffmpeg-devel at ffmpeg.org)
[h264 @ 0x201b950] no frame!
[h264 @ 0x201b950] non-existing PPS 2 referenced
[h264 @ 0x201b950] decode_slice_header error
[h264 @ 0x201b950] no frame!
[mpegts @ 0x2017330] decoding for stream 0 failed
[mpegts @ 0x2017330] PES packet size mismatch
[mpegts @ 0x2017330] Could not find codec parameters for stream 0 (Video:
h264 ([2][0][0][0] / 0x0002), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x2017330] Could not find codec parameters for stream 2 (Unknown:
none ([151][0][0][0] / 0x0097)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpegts, from 'foo.ts':
Duration: 00:30:00.76, start: 63407.591622, bitrate: 16820 kb/s
Program 1
Stream #0:0[0x800]: Video: h264 ([2][0][0][0] / 0x0002), none, 90k tbr,
90k tbn, 180k tbc
Stream #0:1[0x801]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
5.1(side), fltp, 384 kb/s
Stream #0:2[0x803]: Unknown: none ([151][0][0][0] / 0x0097)
At least one output file must be specified
So clearly, the decoder is trying to decode the mpeg stream as if it were
an h264 and running into errors trying. You do not get the error the OP
states that they get.
>
> Alex
>
> -----Original Message-----
> From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of
> tasos
> Sent: 08 August 2017 19:28
> To: ffmpeg-user at ffmpeg.org
> Subject: Re: [FFmpeg-user] missing h264_cuvid
>
> Hello.
> I'm not sure but you have to compile at least with --enable-cuda
> --enable-cuvid --enable-nvenc.
> Can you try compiling with those enabled?
>
Cuda and CUVID are disabled by default and supposed to be "autodetect"
during configuration, they are supposed to be added if "--enable-nvenc"
./configure --enable-nvenc | grep cuvid
cuvid vaapi xvmc
adpcm_ima_ea_sead cllc h264_cuvid
adpcm_ima_rad cscd hevc_cuvid
atrac3pal evrc mjpeg_cuvid
mpeg1_cuvid pcm_u8 svq3
mpeg2_cuvid pgm targa_y216
mpeg4_cuvid pictor theora
paf_video rpza vc1_cuvid
pcm_s16be_planar shorten vp8_cuvid
pcm_s16le_planar smackaud vp9_cuvid
h263_vaapi mpeg1_vdpau vc1_cuvid
h264_cuvid mpeg1_xvmc vc1_vaapi
h264_vaapi mpeg2_cuvid vc1_vdpau
h264_vdpau mpeg2_vaapi vp8_cuvid
hevc_cuvid mpeg2_vdpau vp9_cuvid
hevc_vdpau mpeg4_cuvid wmv3_vaapi
mjpeg_cuvid mpeg4_vaapi wmv3_vdpau
mpeg1_cuvid mpeg4_vdpau
If you piped to less instead of grep, then you can more easily see that the
above portion is from the "Enabled decoders:" section. You can explicitly
enable cuda and cuvid if you want, it doesn't matter.
>
> Moreover i don't know if you want/need --enable-opencl
>
> On 8/8/2017 8:54 PM, Daniel wrote:
> > Hello everyone,
> >
> > I am trying to decode stream using h264_cuvid decoder but
> > unfortunately i get the following error : "Unrecognized hwaccel:
> > h264_cuvid.
>
I respectfully request your full command-line and output. I have a very
good idea what is wrong, but I need (at least) your full command-line to be
sure.
> > Supported hwaccels: vdpau vaapi cuvid " same time if i request
> > "/usr/local/bin/ffmpeg -decoders |grep -i h264 " i get this result:
> >
> > ffmpeg version N-86054-g2171dfa Copyright (c) 2000-2017 the FFmpeg
> > developers
>
This is a git version, but is this the latest?
> > built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
> > configuration: --prefix=/usr/src/ffmpeg/ffmpeg_build
> > --pkg-config-flags=--static
> > --extra-cflags=-I/usr/src/ffmpeg/ffmpeg_build/include
> > --extra-ldflags=-L/usr/src/ffmpeg/ffmpeg_build/lib
> > --bindir=/usr/src/ffmpeg/bin --enable-gpl --enable-libass
> > --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
> > --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
> > --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc
> > --enable-opencl --enable-librtmp --enable-libv4l2 --enable-libvpx
> > libavutil 55. 62.100 / 55. 62.100
> > libavcodec 57. 95.101 / 57. 95.101
> > libavformat 57. 72.101 / 57. 72.101
> > libavdevice 57. 7.100 / 57. 7.100
> > libavfilter 6. 89.100 / 6. 89.100
> > libswscale 4. 7.101 / 4. 7.101
> > libswresample 2. 8.100 / 2. 8.100
> > libpostproc 54. 6.100 / 54. 6.100
> > VFS..D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
> > V....D h264_vdpau H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
> > (VDPAU acceleration) (codec h264)
> > V..... h264_cuvid Nvidia CUVID H264 decoder (codec h264)
> >
> > can you tell me if ffmpeg is missing h264_cuvid decoder or it could be
> > something else.The stream i am trying to decode is dvb-s mpeg2 that's
> > why i doubt about the decoder i have to use(i would like to use
> > hwaccel decoder).
> >
> > Thank you
>
More information about the ffmpeg-user
mailing list