You will need gstreamer-1.0
and the gst-rtsp-server
development
files in order to build this program. In Ubuntu 16.04, you can install
these by running:
$ sudo apt install libgstreamer1.0-dev libgstrtspserver-1.0-dev
In order to build, simply run make
:
$ make
Pass an mkv
file containing an H.265 video as the only argument to
ss-sync
:
$ ./ss-sync ~/sample_data/1_cam01.mkv
You can use any video player supporting RTSP. For example, to use the
command-line version of VLC
run:
$ cvlc rtsp://localhost:8554/test
Use tcpdump
or wireshark
to capture the packets while being
played:
$ sudo tcpdump -i lo -w foo.pcap
Then filter for RTP packets containing the header extensions in
wireshark: rtp.ext eq 1
. Under RTP headers, you will see the
extension headers with the type 0xabac
. The first header is the
seconds
portion of the timestamp, while the second header contains
the nanoseconds
.