[Live-devel] Can live555 read RTP data from ffmpeg?
Ross Finlayson
finlayson at live555.com
Fri Jan 11 22:08:59 PST 2013
> I am sending MPEG TS data over RTP by ffmpeg, like "ffmpeg -i file.ts -c copy -f mpegts rtp://localhost:1234". I want live555 can get these RTP data.
If your only source of MPEG TS data is from files, then you don't need to use "ffmpeg" at all. Instead, you can stream your "file.ts" directly from our server. (If you are using "testOnDemandRTSPServer", then you rename "file.ts" as "test.ts". If you are using "live555MediaServer", then you don't need to rename your file, as long as its name ends with ".ts".)
> I modified the testOnDemandRTSPServer.cpp to use unicast address for the mpeg2TransportStreamFromUDPSourceTest item.
By this I presume that you changed the definition of "inputAddressStr" to:
char const* inputAddressStr = NULL;
> I then run testOnDemandRTSPServer. But it seems that my video player(VLC player) got nothing from testOnDemandRTSPServer while playing URL like "rtsp://192.168.133.195:8554/mpeg2TransportStreamFromUDPSourceTest".
I suggest first using "testRTSPClient" as your RTSP client application, instead of VLC.
> Is there anything more need to be done to make this thing work?
No, I don't think so, assuming that your "ffmpeg" command generates RTP-encapsulated MPEG Transport Stream packets (with the correct RTP payload format code: 33). However, I don't know enough about "ffmpeg" to say for sure whether it's doing what you intend.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130111/bd4e9453/attachment.html>
More information about the live-devel
mailing list