On 04.06.2018 12:27, Nánási Ferenc wrote: > Hi! > I'm trying to transcode H.264 Stream to HEVC. Everything just working > fine when I'm using the in-built CPU decoder, but when I turn on the > Hardware-accelerated CUVID module, it throws some error with most of my > streams. > * > **FFMPEG CMDLINE: * > /root/bin/ffmpeg -hwaccel cuvid -c:v h264_cuvid -i > 'udp://239.192.26.8:1234' -map 0:0:v -map 0:1:a -c:v hevc_nvenc -f > mpegts test.ts > > [h264_cuvid @ 0x3d2b800] Video height 14 not within range from 16 to 4096 > Error while opening decoder for input stream #0:0 : Invalid argument
Try nvdec instead, cuvid uses nvidias parsers, and if they go wrong, there's nothing to be done about that from the ffmpeg side. > My video height with all of streams is HD or PAL resolution, so probably > within that range. > stream #0:0 is the video stream. > > I've tried to add -analyzeduration 10M -probesize 10M flags, the results > same. > > FFREPORT file: https://1drv.ms/u/s!AlIDARy55xh44F2f_8C1TyKwxA0t > > *It says: * > 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 @ 0x31df240] 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@ffmpeg.org) > > > Sample from input: https://1drv.ms/v/s!AlIDARy55xh44F7_i2Ak_q8bmTTF > The output file is empty. > > My FFMPEG version is the newest: 4.0 > * > **FFMPEG compilation parameters:* > --prefix=/root/ffmpeg_build --pkg-config-flags=--static > --extra-cflags='-I/root/ffmpeg_build/include -I/usr/local/cuda/include' > --extra-ldflags='-L/root/ffmpeg_build/lib -L/usr/local/cuda/lib64' > --extra-libs=-lpthread --bindir=/root/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-cuda > --enable-cuvid --enable-nvenc --enable-libnpp > > CUDA Version: 9.2 (Patch installed) CUDA version is irrelevant, it's not used. > NVIDIA Driver: 390.48 > Card: NVIDIA Quadro P2000 > > Using Ubuntu 17.10 and I've Centos 7 server with the same parameters. > > If using something like this: > /root/bin/ffmpeg -i 'udp://239.192.26.8:1234' -map 0:0:v -map 0:1:a -c:v > hevc_nvenc -f mpegts udp://224.1.1.80:1234/ or file Don't run stuff as root. Specially not streams from the net.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel