vlc streaming and stats
Posted: 21 Apr 2017 17:18
Hi,
We are trying to use vlc in a test and we are trying to gather stats.
using the following 2 commands we are able to get vlc stats with the stats command after running:
vlc -vvv hobbit2-trailer.mp4 --sout udp:[dest-ip]
vlc -vvv udp://[src-ip] --vout dummy
We are hoping to get latency and PDV (or at least min/max latency) stats. Using wireshark I saw some PES "headers?' with timestamps and what looked like a 4-bit "order" (seq #?). But it looked like decoding these packets with libpcap would be a non-trivial task. I wondered whether it might be easier to decode the seq # and timestamp from RTP / RTCP. I naively just changed the commands to:
vlc -vvv hobbit2-trailer.mp4 --sout rtp:[dest-ip]
vlc -vvv rtp:// --vout dummy
This sort of worked, but the receiving instance of vlc reported:
"A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (96)."
I'm a networker and a programmer, not video experienced, so I am out of my depth here. But is it just telling me my input video file needs to be in a different format?
If so, what format (mpeg-2?) and where can I get a suitable short input file to test vlc=RTP with?
Thanks,
Don
We are trying to use vlc in a test and we are trying to gather stats.
using the following 2 commands we are able to get vlc stats with the stats command after running:
vlc -vvv hobbit2-trailer.mp4 --sout udp:[dest-ip]
vlc -vvv udp://[src-ip] --vout dummy
We are hoping to get latency and PDV (or at least min/max latency) stats. Using wireshark I saw some PES "headers?' with timestamps and what looked like a 4-bit "order" (seq #?). But it looked like decoding these packets with libpcap would be a non-trivial task. I wondered whether it might be easier to decode the seq # and timestamp from RTP / RTCP. I naively just changed the commands to:
vlc -vvv hobbit2-trailer.mp4 --sout rtp:[dest-ip]
vlc -vvv rtp:// --vout dummy
This sort of worked, but the receiving instance of vlc reported:
"A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (96)."
I'm a networker and a programmer, not video experienced, so I am out of my depth here. But is it just telling me my input video file needs to be in a different format?
If so, what format (mpeg-2?) and where can I get a suitable short input file to test vlc=RTP with?
Thanks,
Don