I use ffmpeg to decode RTSP video.It likes that: When it's on the end of file,it block in the av_read_frame() for a long time,why?
相关问题
- Improving accuracy of Google Cloud Speech API
- MP4 codec support in Chromium
- Streaming video (C# using FFmpeg AutoGen) sends mu
- How do I decode opus file to pcm file using libavc
- ffmpeg for Android: neon build has text relocation
相关文章
- Handling ffmpeg library interface change when upgr
- How to use a framework build of Python with Anacon
- c++ mp3 library [closed]
- Passing a native fd int to FFMPEG from openable UR
- FFmpeg - What does non monotonically increasing dt
- ffmpeg run from shell runs properly, but does not
- Issues in executing FFmpeg command in Java code in
- Terminal text becomes invisible after terminating
This problem come because av_read_frame() stuck in network infinite loop I got the same problem then I have used interrupt call back please refer the sample code
First initialize your context and set interrupt call back
now handle the interrupt in your callback
Various reasons can cause long blocking. But you can control the processing time for a I/O layer.
Use the structure
AVFormatContext::interrupt_callback
to set the interrupt handler.