Ask Your Question
0

How do i export RTP-UDP(UNICAST and MULTICAST Stream to a VLC Playable-file

asked 2018-01-19 16:03:39 +0000

Simson94 gravatar image

We setup a IP Camera what is able to stream via unicast and Multicast but weather in unicastmode nor multicastmode im not able to decode or export to a playable file to play with VLC player. I found a old wireshark forum post i refer to whats from 2015

https://osqa-ask.wireshark.org/questi...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-19 16:56:01 +0000

sindy gravatar image

updated 2018-01-23 19:07:40 +0000

The complexity depends on requirements of the codec used for the transport format. Some codecs can be treated as unstructured octet streams as they either do not need to structure their data in a more complex way or they organize the information into chunks using their own means, while others use the means provided by a file format (like ogg) or by a transport protocol (like RTP) to carry the information about the structure.

Codecs from the first group are simpler to handle as you can use just tshark -r file_name -Y "rtp.ssrc == your_ssrc_value" -T fields -e rtp.payload to export the payload as lines of colon-separated hex values which you can then convert to a binary byte stream using a simple script. Unless the playback software supports processing of raw data (where you provide the information about codec and its settings manually), the script has to provide some header before the actual data so that the playing application knows what codec with what settings to use to interpret the contents.

There used to be a direct export of binary octet stream from RTP in Wireshark 1.x but as of current, it is not available in Wireshark 2.x

Codecs from the second group need that the script or application packs the same hex lines output from tshark into some file format which supports the information about data chunk borders, providing other metadata where necessary. Different codecs are supported in conjuction with different file formats.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-19 16:03:39 +0000

Seen: 398 times

Last updated: Jan 23