ffmpeg - H.264 decoding error log from RTSP stream -


i getting following h264 error log. log comes while decoding rtsp video stream of ffmpeg. picture displayed blurred after 5/6 seconds. picture recover time time. however, remains blurred of time.

edit: ffmpeg discussion forums suggested upgrade ffmpeg version avoid these logs. have updated latest ffmpeg build of june 19, 2015.still log remains there , picture still blurred.

edit 2: rtsp stream coming ganz camera. camera connected through lan connection.

[h264 @ 0abb2aa0] cannot use next picture in error concealment [h264 @ 0abb2aa0] concealing 1933 dc, 1933 ac, 1933 mv errors in p frame [h264 @ 098e5c80] rtp: missed 131 packets [h264 @ 0abb3300] error while decoding mb 66 25, bytestream (-9) [h264 @ 0abb3300] cannot use next picture in error concealment [h264 @ 0abb3300] concealing 1583 dc, 1583 ac, 1583 mv errors in p frame [h264 @ 098e5c80] rtp: missed 8 packets [h264 @ 0b113e40] error while decoding mb 54 30, bytestream (-11) [h264 @ 0b113e40] cannot use next picture in error concealment [h264 @ 0b113e40] concealing 1195 dc, 1195 ac, 1195 mv errors in p frame [h264 @ 098e5c80] rtp: missed 118 packets [h264 @ 0ac79960] error while decoding mb 13 20, bytestream (-13) [h264 @ 0ac79960] cannot use next picture in error concealment [h264 @ 0ac79960] concealing 2036 dc, 2036 ac, 2036 mv errors in p frame [h264 @ 098e5c80] rtp: missed 198 packets [h264 @ 0ad4f500] error while decoding mb 21 9, bytestream (-5) [h264 @ 0ad4f500] cannot use next picture in error concealment [h264 @ 0ad4f500] concealing 2908 dc, 2908 ac, 2908 mv errors in p frame [h264 @ 098e5c80] rtp: missed 108 packets [h264 @ 0abb3300] error while decoding mb 1 14, bytestream (-5) [h264 @ 0abb3300] cannot use next picture in error concealment [h264 @ 0abb3300] concealing 2528 dc, 2528 ac, 2528 mv errors in p frame [h264 @ 098e5c80] rtp: missed 106 packets [h264 @ 0b1149c0] error while decoding mb 12 5, bytestream (-7) [h264 @ 0b1149c0] cannot use next picture in error concealment [h264 @ 0b1149c0] concealing 3237 dc, 3237 ac, 3237 mv errors in p frame [h264 @ 098e5c80] rtp: missed -65402 packets [h264 @ 0b1155a0] error while decoding mb 50 38, bytestream (-7) [h264 @ 0b1155a0] cannot use next picture in error concealment [h264 @ 0b1155a0] concealing 559 dc, 559 ac, 559 mv errors in p frame [h264 @ 098e5c80] rtp: missed 150 packets [h264 @ 0af65740] error while decoding mb 48 31, bytestream (-15) [h264 @ 0af65740] cannot use next picture in error concealment [h264 @ 0af65740] concealing 1121 dc, 1121 ac, 1121 mv errors in p frame [h264 @ 098e5c80] rtp: missed 4 packets [h264 @ 0ac79960] error while decoding mb 35 38, bytestream (-41) [h264 @ 0ac79960] cannot use next picture in error concealment [h264 @ 0ac79960] concealing 574 dc, 574 ac, 574 mv errors in p frame 

i dumped rtsp stream avi file using ffmpeg , there no errors. c:\users\matlab>ffmpeg -i rtsp://192.168.1.67/gnz_media/main 123.avi

there no h.264 decoding errors. can above decoding errors using ffmpeg api.

if you're using udp, can expect frames dropped - that's part of udp design, favours speed on reliability. missing packets serious problem h264 format given packet may read packets ahead or behind it. so, using udp produce lot of errors starting "rtp: missed xxx packets".

switch more reliable slower tcp passing rtsp_transport="tcp" option av_open_input. example:

avdictionary * opts = null; av_dict_set(&opts, "rtsp_transport", "tcp", 0); int error = avformat_open_input(&rtsp_format_context, "rtsp://your url here", null, &opts)); if (error < 0)     ; // connection error. add error handling here. 

this stop packets being dropped, remove corruption of video.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -