I solved the issue: http://stackoverflow.com/questions/10666242/detecting-a-timeout-in-ffmpeg Thanks for everyone
2014-08-16 21:53 GMT+04:00 Dmitry Adjiev <[email protected]>: > Hello. > > Here my code: > > void RtpStream::run() > { > QMutexLocker guard(&mutex_); > > if (!ip_.isEmpty()) { > AVInputFormat* fmt = av_find_input_format(ip_.scheme().toLatin1()); > > if (!fmt) { > qDebug() << "RtpStream: can't finfd format"; > return; > } > > AVFormatContext *ctx = avformat_alloc_context(); > > if (!ctx) > qDebug() << "RtpStream: can't alloc context"; > > int ret = avformat_open_input(&ctx, > ip_.toString().toLatin1().constData(), fmt, NULL); > qDebug() << "RtpStream: ret " << ret; > > > av_free(fmt); > avformat_free_context(ctx); > } > > else > qDebug() << "RtpStream: ip number is empty!"; > } > > avformat_open_input hangs. > What I do wrong? > > -- > Regards, > Dmitry > -- Regards, Dmitry
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
