Ask Your Question
1

How to fix H264 decoding?

asked 2013-07-17 10:23:49 -0600

SergioBasurco gravatar image

updated 2013-07-17 10:28:41 -0600

Hi I'm using version 246 of openCV. My application plays multiple IPCamera streams via RTSP. I understand it uses ffmpeg to load the rtsp url I provide. I have two IP cameras, one of them works well, with some h.264 errors but the live video feed is playing. The other one, avigilon model 2.0-H3-B1 gives the following error:

[h264 @ --------] non-existing PPS referenced
[h264 @ --------] non-existing PPS 0 referenced
[h264 @ --------] no frame!

After researching this is due problems with ffmpeg decoders, or x264 decoders (I don't know if there is any difference). I've read that there are some patches around but I have no idea how to apply them. Should I rebuild ffmpeg again? If so, how do I make my openCV version use the new ffmpeg build?

I've also found gstreamer can solve this issue, I'm not sure if openCV uses gstreamer or not. If so, how do I make it use the gstreamer libs instead of ffmpeg?

I'm working under Windows VS2010.

Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-07-13 10:00:56 -0600

joecmama gravatar image

Not sure if you still need help. I think I struggled with similar issues and have solved some of the problems using libVLC with OpenCV. I use MS Visual Studio on Windows 7 and 8.1. Details are given here: http://answers.opencv.org/question/65932

edit flag offensive delete link more
0

answered 2015-07-06 09:26:09 -0600

bdm77 gravatar image

I have the same problem! There is the answer?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-07-17 10:23:49 -0600

Seen: 6,988 times

Last updated: Jul 13 '15