[FFmpeg-user] how to capture live stream nvenc help

Daniel 5960761 at gmail.com
Wed Jun 21 19:30:57 EEST 2017


Hello everyone

i am trying to capture live stream with ffmpeg my video card is nvidia 
gtx 960 and here is the command i am using:

/usr/local/bin/ffmpeg  -i http://192.168.98.197:4242/bysid/1002 -s 
640x320 -acodec libfdk_aac   -c:v h264_nvenc  -r 25 -b:v 800k -preset 
llhq -f mpegts output1.mp4

unfortunately this command fails after 1min  with following error :

[mpeg2video @ 0x2a0d620] Invalid mb type in B-frame at 2 11
[mpeg2video @ 0x2a0d620] 00 motion_type at 9 18
[mpeg2video @ 0x2a0d620] 00 motion_type at 0 19
[mpeg2video @ 0x2a0d620] skip with previntra
[mpeg2video @ 0x2a0d620] 00 motion_type at 0 21
[mpeg2video @ 0x2a0d620] skip with previntra
[mpeg2video @ 0x2a0d620] ac-tex damaged at 35 20
[mpeg2video @ 0x2a0d620] 00 motion_type at 0 17
[mpeg2video @ 0x2a0d620] skip with previntra
[mpeg2video @ 0x2a0d620] 00 motion_type at 0 19
[mpeg2video @ 0x2a0d620] 00 motion_type at 4 26
[mpeg2video @ 0x2a0d620] 00 motion_type at 2 27
[mpeg2video @ 0x2a0d620] Invalid mb type in B-frame at 21 28
[mpeg2video @ 0x2a0d620] skip with previntra
[mpeg2video @ 0x2a0d620] Invalid mb type in B-frame at 3 4
[mpeg2video @ 0x2a0d620] 00 motion_type at 6 7
[mpeg2video @ 0x2a0d620] mb incr damaged
[mpeg2video @ 0x2a0d620] Warning MVs not available
[mpeg2video @ 0x2a0d620] concealing 360 DC, 360 AC, 360 MV errors in B frame
[mp2 @ 0x2a15b40] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
http://192.168.98.197:4242/bysid/1002: Input/output error

Please let me know if you have any idea of what i am doing wrong. Also 
if you have any tip on how to capture live stream with h264_nvenc share it .


ffmpeg compile flags:


/usr/local/bin/ffmpeg
ffmpeg version N-86054-g2171dfa Copyright (c) 2000-2017 the FFmpeg 
developers
   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


-- 
Best regards,
Daniel



More information about the ffmpeg-user mailing list