Connect to your Technisat receiver, download and convert your recordings with a simple object oriented python api.
- Technisat Digicorder HD S2+: Fully functional
- Python 3+
- ffmpeg-python from pip:
pip install ffmpeg-python
- ffmpeg
Manages the connection to the receiver and has methods for the available commands.
socket
: connection to the receiverfiles
: read files from the serveridle
: thread to manage idle-connections (sends ACK every second)is_connected
: wether a connection to the receiver is established
connect(ip, port)
: connects to the receiver at ip:portok()
: weather the receiver is ready to accept commandsinfo()
: returns the flags, language and name of the receiverls(paht = "/")
: gets the files under path from the receiver and returns a TechnisatFile objectdownload(file: TechnisatFile, destination, output_format="mp4", resolution="")
: downloads and converts the file in the TechnisatFile object to the folder in destination. You can also specify an output format and a resolution which is supported by ffmpegdisconnect()
: disconnects from the receiverresolve_id()
: returns the TechnisatFile object corresponding to the recording id
An instance of a remote file on the receiver.
recording_id
: unique recording id on the receivertitle
: file namefile_type
: file type in (directionary = 0, binary = 1, radio = 3, sd video = 4, hd video = 7, usb = 9). Feel free to open an issue if you find another typesize
: file size in bytesdate
: recording date as unix timestampdescription
: file description, if one exists
__str__
: converts the file into a human readable string.