Hi, On Tue, Jun 28, 2011 at 4:06 AM, Luis Díaz Más <[email protected]> wrote: > I have solved the problem related with the order of DATA packets. I forgot > to stablish the pts values in the packets. Now I receive image frames and > medatada in the way desired when I save the MPEG-2 TS in a video file. > However when I send the streams over UDP, the reception doesn't work in my > program using libav neither with ffplay application. But with VLC I can > receive perfectly the video stream ... As I explained in the previous > email, if I remove the data stream my application works perfectly. > > The code in the "receptor" app is very simple ... > > AVFormatContext * _ifc; > // path = "udp://localhost?localport=1234"; > av_open_input_file(&_ifc, path, NULL, 0, NULL); > av_find_stream_info(_ifc); // The application is blocked here ... > > Is there any way to specify what kind of streams are going to be received > in the "receptor" app to avoid to call av_find_stream_info ?
Where is it hanging? You didn't set a remote port in UDP, so that may be a problem i.e. it may not be receiving any data because it doesn't know where to listen. Ronald _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
