Re: [Libav-user] RTSP Connection timeout

2015-06-17 Thread yari mattei
Hi, this is the piece of code responsable of open the stream : const char *filename = "rtsp://hostname/live.sdp"; av_register_all(); avformat_network_init(); AVFormatContext *pFormatCtx = NULL; // Open video file if (avformat_open_input(&pFormatCtx, filename, NULL, NUL

Re: [Libav-user] RTSP Connection timeout

2015-06-17 Thread Taha Ansari
> this is the piece of code responsable of open the stream : > > const char *filename = "rtsp://hostname/live.sdp"; > > av_register_all(); > avformat_network_init(); > > AVFormatContext *pFormatCtx = NULL; > > // Open video file > if (avformat_open_input(&pFormatCtx, filenam

Re: [Libav-user] RTSP Connection timeout

2015-06-17 Thread yari mattei
Thank you so much that's perfect :) Il 17.06.2015 11:10, Taha Ansari ha scritto: AVIOInterruptCB int_cb; ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] FFmpeg transcoding example with h264 preset error

2015-06-17 Thread Sethuraman V
Hi, I am using transcoding example provided with FFmpeg to apply a filter to a h264 codec file. I have set the preset before opening the codec as given below if (dec_ctx->codec_id == AV_CODEC_ID_H264) { av_opt_set(dec_ctx->priv_data, "preset", "slow", 0); } But still avcodec_open2 returns "

Re: [Libav-user] avcodec_open2 returns -22

2015-06-17 Thread Kevin J. Brooks
I am setting the AudioCodec to MP3, I am using the pre-built libraries the code I have the causes the issue is from the code for the QtMEL library. What I am posting here is the Audio Codec setup for the QtMel object. I hope it helps. BTW I am using H264 for the Video Codec. If I record vi

Re: [Libav-user] avcodec_open2 returns -22

2015-06-17 Thread Kevin J. Brooks
I changed the Audio codec to WMAV2, and left the rest of the AudioCodec settings the same Now the program crashes at this line in the QtMel code: int outSize = avcodec_encode_audio(m_audioStream->codec, m_audioOutputBuffer, m_audioOutputBufferSize, (short *)samples.data()); In debug the error

Re: [Libav-user] Transcoding with H264

2015-06-17 Thread Carl Eugen Hoyos
Mohamed Moanis writes: > The problem is that avcodec_encode_video2 produce > delayed frames. I am expecting to give it a frame > and take a frame back as a result > So my question is basically, is there a way to to > turn around the flushing and the delay. The delay is unavoidable with the de