Hi,
I am trying to read Multicast MPEG-2 TS data from the URI udp://
225.1.1.14:5014. I can display the video from this URI using VLC. Also, I've
tested the UDP connection with command line ffmpeg, I get
ffmpeg -i udp://225.1.1.14:5014
FFmpeg version SVN-r19215, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-libgsm --enable-shared
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.31. 2 / 52.31. 2
libavformat 52.34. 0 / 52.34. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Jun 17 2009 16:48:01, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Input #0, mpegts, from 'udp://225.1.1.14:5014':
Duration: N/A, start: 22037.155256, bitrate: 15128 kb/s
Program 1
Stream #0.0[0x1e1]: Video: mpeg2video, yuv420p, 528x480 [PAR 40:33 DAR
4:3], 15000 kb/s, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x1e2](eng): Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s
At least one output file must be specified
However, when I try to open the same URI from my program,
av_open_input_file() hangs with no error messages. Here's what I have:
av_register_all();
printf("Input name: %s\n", input_filename);
if( av_open_input_file(&pFormatCtx, input_filename, NULL, 0, NULL) != 0
) {
fprintf(stderr, "could not open input: %s!\n", input_filename);
return -1;
}
I can't see what can be wrong with the code. Should I be using
av_open_input_stream() instead?
Please help!
Thanks,
C
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user