PDA

View Full Version : Capturing TS from a multicast


zambelli
17th February 2007, 03:33
Does anyone know of a tool that will capture an MPEG Transport Stream from a multicast address?

squid_80
17th February 2007, 03:51
Graphedit and the DSNetwork filter from the DirectX SDK?

Pookie
17th February 2007, 04:05
I think VLC should be able to, although I've never tried it.


http://www.videolan.org/doc/streaming-howto/en/ch06.html


vlc -vvv udp:@xxx.xxx.xxx.xxx --sout file/ts:capturefile.ts

squid_80
17th February 2007, 09:31
VLC does work but you have to be lucky about where/when it starts to access the stream, about 25% of the time it fails to synch up properly for me.

zambelli
20th February 2007, 22:23
I think VLC should be able to, although I've never tried it.
http://www.videolan.org/doc/streaming-howto/en/ch06.html
vlc -vvv udp:@xxx.xxx.xxx.xxx --sout file/ts:capturefile.ts
Hmm, no luck for me. I tried that, but didn't get anything. The stream statistics showed zeroes - no bytes received whatsover.

I set up the video encoder myself so I know for sure it's multicasting correctly. Is there anything else I would need to specify in VLC to make it recognize the stream?

Pookie
20th February 2007, 23:23
Hmmm.... To simply your troubleshooting process, you might want to download this tiny sniffer http://www.nirsoft.net/utils/smsniff.zip
just to verify that communication is occuring between your server and capture application.

Mplayer is also supposed to be able to have similar capture functionality.

mplayer -cache 16384 -dumpstream -dumpfile output.ts udp://xxx.xxx.xxx.xxx:1234/

http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html#streaming-save

or perhaps

ffmpeg.exe -i udp://xxx.xxx.xxx.xxx:1234 -f mpeg2ts -vcodec copy -acodec copy -y output.ts

Wish I knew of a public udp multicast streaming site so I could help you with the syntax

Perhaps Squid_80's method is the way to go...

frankio
21st February 2007, 01:13
Does anyone know of a tool that will capture an MPEG Transport Stream from a multicast address?

If it's a RTP stream you can try dumprtp http://sourceforge.net/projects/dvbtools/

If it's a plain UDP stream I have a modified version of the same tool floating around... feel free to ask.

squid_80
21st February 2007, 07:49
VLC defaults to port 1234, so make sure you're multicasting on that port or instead of the command line method use the GUI (file->open network stream->UDP/RTP Multicast) to specify the port.