1. VideoTester
— Base package¶
-
class
VideoTester.
VTBase
(conf=None)¶ Superclass that gathers several common functionalities shared by the client and the server.
-
parseConf
(file, section)¶ Extract a section from a configuration file.
Parameters: Returns: A list of
(name, value)
pairs for each option in the given section.Return type: list of tuples
-
run
()¶ Do nothing.
Note
This method MUST be overwritten by the subclasses.
-
-
class
VideoTester.
VTServer
(conf=None)¶ Bases:
VideoTester.core.VTBase
,SimpleXMLRPCServer.SimpleXMLRPCServer
VT Server class.
-
run
(bitrate, framerate)¶ Run a subprocess for an RTSP server with a given bitrate and framerate (if not running) or add a client (if running).
Parameters: Returns: The RTSP server port.
Return type:
-
-
class
VideoTester.
VTClient
(conf=None)¶ Bases:
VideoTester.core.VTBase
VT Client class.
-
run
()¶ - Run the client and perform all the operations:
- Connect to the server.
- Receive video while sniffing packets.
- Close connection.
- Process data and extract information.
- Run measures.
Returns: A dictionary of video files received (see VideoTester.gstreamer.RTSPClient.files
), a dictionary of caps (seeVideoTester.gstreamer.RTSPClient.caps
) and a list of resultsReturn type: list
-
-
class
VideoTester.
RTSPServer
(port)¶ GStreamer RTSP server.
-
addMedia
(videos, bitrate, framerate, path)¶ Add videos to the server.
Parameters:
-
run
()¶ Attach server and run the loop.
-
-
class
VideoTester.
RTSPClient
(path, codec, bitrate, framerate)¶ GStreamer RTSP client.
-
class
VideoTester.
VTApp
(conf)¶ Bases:
wx._core.App
WxPython application class.
-
class
VideoTester.
PcapIter
(cap, filter='')¶ Bases:
pcap.pcapObject
Iterable PCAP Object.
-
class
VideoTester.
Sniffer
(iface, ip, cap)¶ Network sniffer and packet parser.
-
parsePkts
(proto, caps)¶ Parse packets and extract
lengths
,times
,sequences
,timestamps
andrtt
.Parameters: caps (dict) – Caps recolected from the GStreamer pipeline (see VideoTester.gstreamer.RTSPClient.caps
).Returns: lengths
,times
,sequences
,timestamps
andrtt
.Return type: tuple
-
run
()¶ Start packet sniffing and save a capture file.
-
-
VideoTester.
multiSort
(*args)¶ Efficient sort of multiple lists as the first one passed.
-
class
VideoTester.
YUVVideo
(file, (width, height, fmt))¶ YUV parser.
-
class
VideoTester.
CodedVideo
(file, codec)¶ Coded video parser.