Wednesday, January 15, 2014

ffmpeg in avformat_find_stream_info execution time is too long!

When I call ffmpeg to play real-time video streaming, get connected before the needle avformat_find_stream_info function when treated with spam is too long (generally have about 12 seconds).
Would that be possible let this short time point.
There is always a [rtsp @ 0xdb2a000] UDP timeout, retrying with TCP message alert.
Reply:
Come to understand help! !

Reply:
Brother, I have encountered this problem, you solve it?
Reply:
Is not set some parameters AVFormatContext structure manually yourself, make it a little faster analysis ah?
Reply:
Yes, change max_analyze_duration = 1000 and probesize = 2048, the effect is very obvious
Reply:

LZ environment links within the video source using UDP, TCP mode can be specified directly using the link to the video source, so you try to process a UDP less, you can save time, see
specific code
http://blog.csdn.net/hslinux/article/details/9232389
Reply:
Halo ah I call this an excuse to seek guidance on the crash ah Editor's Note

No comments:

Post a Comment