<div dir="ltr"><div>I solved the issue: <a href="http://stackoverflow.com/questions/10666242/detecting-a-timeout-in-ffmpeg">http://stackoverflow.com/questions/10666242/detecting-a-timeout-in-ffmpeg</a><br></div>Thanks for everyone<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-16 21:53 GMT+04:00 Dmitry Adjiev <span dir="ltr"><<a href="mailto:adjiev.dmitry@gmail.com" target="_blank">adjiev.dmitry@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello.<br clear="all"><div><br></div><div>Here my code:<br><br>void RtpStream::run()<br>{<br>    QMutexLocker guard(&mutex_);<br>
<br>    if (!ip_.isEmpty()) {<br>        AVInputFormat* fmt = av_find_input_format(ip_.scheme().toLatin1());<br>
<br>        if (!fmt) {<br>            qDebug() << "RtpStream: can't finfd format";<br>            return;<br>        }<br><br>        AVFormatContext *ctx = avformat_alloc_context();<br><br>        if (!ctx)<br>

            qDebug() << "RtpStream: can't alloc context";<br><br>        int ret = avformat_open_input(&ctx,  ip_.toString().toLatin1().constData(), fmt, NULL);<br>        qDebug() << "RtpStream: ret " << ret;<br>

<br><br>        av_free(fmt);<br>        avformat_free_context(ctx);<br>    }<br><br>    else<br>        qDebug() << "RtpStream: ip number is empty!";<br>}<br><br>avformat_open_input hangs.<br></div><div>
What I do wrong?<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br>Regards,<br>Dmitry
</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Dmitry
</div>