Hi
Im an trying to open a multicast udp video stream using the
av_open_input_file function.
**int main(int argc, char *argv)
{
av_register_all();
AVFormatContext *pFormatCtx;
if(av_open_input_file
<http://dranger.com/ffmpeg/functions.html#av_open_input_file>(&pFormatCtx,
argv[1], NULL, 0, NULL)!=0)
{
printf("Stream open failed\n");
return -1; // Couldn't open file
}
printf("Stream open success\n");
}
I open a multicast udp stream with link udp://224.5.5.5:1234 and a unicast
stream udp://192.168.1.2:1234 using vlc and both are viewable using vlc. But
when i run (cmdline)# ./a.out udp://192.168.1.2:1234 after compiling the
above code, it hangs without any error messages. None of the printfs that i
have given has come up. Am I using the function in a wrong way? I had gone
through the archives and this is supposed to be the way to open a network
stream as per my understanding. Kindly guide me through the process.
Thanks
Regards
Basil
--
The end is only the beginning
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user