Hi!, I've been using the FFmpeg + Mplayer combo for a college project I'm working on. The idea is to stream an Opengl app's buffer is real-time in order to have thin-clients interact remotely with the app. I've succeed at building an scenario where the buffer is pulled out of the app and injected to a pipe using the following command: cat <fifo> | ppmtoy4m -S 420jpeg | ffmpeg -y -f yuv4mpegpipe -i - -f avi udp:127.0.0.1:1234 Clients then use the following command to view the stream: mplayer -demuxer mpeg4es udp://@127.0.0.1:5000 This has been working all right, but I want to achieve the following: 1) Work in a multicast scenario. ======================== I though it was as easy as to change the address for a multicasting one like the following: cat <fifo> | ppmtoy4m -S 420jpeg | ffmpeg -y -f yuv4mpegpipe -i - -f avi udp:224.0.0.1:5000?ttl=1 Using the ?ttl parameter was something I found by googling, but I'm not sure if that works. At the same time MPLayer clients should work by using: mplayer -demuxer mpeg4es udp://@224.0.0.1:5000 Which works, but I'm wondering why I *have* to add a port (being a multicast address) and why it doesn't work if I open a second client (I believe is still working as unicast) 2) Using VLC ========== I've not been able to make this work with VLC. That "demuxer" parameter seen to be the problem. 3) Use different containers,codecs ================== This seems to be working using mpeg4+yuv420p. I would like to experiment with other codes as well, like h263p or h262. Have any of you have had one of these problems? I appreciate any help --Omar -- Follow me at: Twitter: http://twitter.com/omargomez Buzz: http://www.google.com/profiles/108165850309051561506#buzz Blog: blog.pixagora.com
I'm working on something similar. I can get unicast to work like this: On 192.168.5.16: ffmpeg -f x11grab -s 2560x1600 -r 20 -i :0.0+nomouse -s 1280x800 -f mpegts udp://192.168.4.111:12345 In VLC on 192.168.4.111: Open Network Stream->udp://@:12345 What needs to change to multicast over the network? Netmask is 255.255.248.0. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/UDP-Multicast-streaming-tp2339775p4... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (2)
-
jaykemper -
omar.gomez@gmail.com