In production, drop this: -hwaccel cuvid -c:v mpeg2_cuvid There's a reason mpv devs do not recommend cuvid, in particular. https://github.com/mpv-player/mpv/commit/dbef5b737e2f994f02923c8214cba368b663a655
On 5 June 2018 at 11:55, Mitja Pirih <[email protected]> wrote: > Hi, > > I am transcoding a live channel from live source. Everything works as > expected until SAR/DAR changes then ffmpeg crashes out. It happens only > when I use HW transcoding. Have you seen this behavior before? Any ideas > how to solve this issue? > > /usr/bin/ffmpeg -hwaccel cuvid -c:v mpeg2_cuvid -i > udp://239.213.0.6:1234 -c:a libfdk_aac -profile:a aac_he -ac 2 -b:a 64k > -ar 48000 -c:v h264_nvenc -preset llhq -profile:v high -maxrate 2500k > -bufsize 5000k -f flv rtmp://127.0.0.1/live/test > > ffmpeg version N-90591-g4b736bc Copyright (c) 2000-2018 the FFmpeg > developers > built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609 > configuration: --prefix=/home/mp/ffmpeg_build > --pkg-config-flags=--static > --extra-cflags=-I/home/mp/ffmpeg_build/include > --extra-ldflags=-L/home/mp/ffmpeg_build/lib --extra-libs=-lpthread > --bindir=/home/mp/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 56. 12.100 / 56. 12.100 > libavcodec 58. 17.100 / 58. 17.100 > libavformat 58. 10.100 / 58. 10.100 > libavdevice 58. 2.100 / 58. 2.100 > libavfilter 7. 14.100 / 7. 14.100 > libswscale 5. 0.102 / 5. 0.102 > libswresample 3. 0.101 / 3. 0.101 > libpostproc 55. 0.100 / 55. 0.100 > Hyper fast Audio and Video encoder > usage: ffmpeg [options] [[infile options] -i infile]... {[outfile > options] outfile}... > > Use -h to get full help or, even better, run 'man ffmpeg' > > > ===== Log ===== > Starting ffmpeg... > [mpeg2video @ 0x2a65000] Invalid frame dimensions 0x0. > Last message repeated 15 times > Impossible to convert between the formats supported by the filter > 'Parsed_null_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 @ 0x2b24340] 3 frames left in the queue on closing > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
