Hi,
On Tue, 2008-12-30 at 12:07 -0800, Cai, Xin wrote:
[...]
> I wrote my own program using avlibrary to grab video from a webcam and
> then send it to an rtp://224.1.1.1:12005. Now I am able to use ffplay to
> view the rtp stream at 224.1.1:12005, but for some reason I couldn't use
> VLC to see the rtp stream. Any suggestions?
You are probably doing something wrong when encoding/packetising the
video, but without more information it is difficult to guess where is
the problem...
The simplest things you can check are:
1) Be sure to use a video codec supported by the RTP muxer (mpeg 1,2,or
4 video or h.264)
2) Be sure that you are using the RTP output format for sending the
video (using a "raw" format is a common error which generates invalid
streams)
3) Be sure to use the correct SDP file, as generated by avf_sdp_create()
(using "rtp://..." urls for input is never a good idea)
4) Try to add the "-vvv" option to vlc, and look at the output for
having some hints about the problem
As an example, the following command is able to generate a video stream
that vlc receives without problems:
./ffmpeg -f video4linux2 -s 352x288 -r 25 -i /dev/video0 -f rtp -vcodec mpeg4
rtp://224.10.20.30:10000 -f oss -ac 2 -i /dev/dsp -acodec mp2 -f rtp
rtp://224.10.20.30:20000
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user