OqeeRewind
Oqee TV Live Downloader
Français | English
Legal Warning
This application is not endorsed by or affiliated with Oqee. This application enables you to download videos for offline viewing which may be forbidden by law in your country. The usage of this application may also cause a violation of the Terms of Service between you and the stream provider. This tool is not responsible for your actions; please make an informed decision before using this application.
Installation
Prerequisites
- Python 3.9+
- uv
- Go (Installation Guide)
- ffmpeg
- mp4ff-decrypt
go install github.com/Eyevinn/mp4ff/cmd/mp4ff-decrypt@latest
Steps
Clone the repository and install dependencies:
git clone https://github.com/NohamR/OqeeRewind && cd OqeeRewind
uv sync
Configuration
Create a .env file in the root directory and add your Oqee credentials (otherwise the script will try to use IP login first):
OQEE_USERNAME=your_username
OQEE_PASSWORD=your_password
Optionally, you can set the following environment variables in the .env file:
OUTPUT_DIR=./downloads
API_KEY=your_api_key_here
API_URL=https://example.com/get-cached-keys
Usage
Interactive Mode
If you run the script without arguments, it will guide you through channel selection and date picking.
uv run main.py
https://github.com/user-attachments/assets/54a50828-c0e9-4a29-81c7-e188c238a998
CLI Mode
You can automate the download by providing arguments.
usage: main.py [-h] [--start-date START_DATE] [--end-date END_DATE] [--duration DURATION]
[--channel-id CHANNEL_ID] [--video VIDEO] [--audio AUDIO] [--title TITLE]
[--username USERNAME] [--password PASSWORD] [--key KEY]
[--output-dir OUTPUT_DIR] [--widevine-device WIDEVINE_DEVICE]
[--bruteforce-batch-size BRUTEFORCE_BATCH_SIZE]
[--segment-batch-size SEGMENT_BATCH_SIZE]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
options:
-h, --help show this help message and exit
--start-date START_DATE
Start date and time in YYYY-MM-DD HH:MM:SS format
--end-date END_DATE End date and time in YYYY-MM-DD HH:MM:SS format
--duration DURATION Duration in HH:MM:SS format (alternative to --end-date)
--channel-id CHANNEL_ID
Channel ID to download from
--video VIDEO Video quality selection (e.g., 'best', '1080p', '720p', '1080p+best', '720p+worst')
--audio AUDIO Audio track selection (e.g., 'best', 'fra_main')
--title TITLE Title for the download (default: channel_id_start_date)
--username USERNAME Oqee username for authentication
--password PASSWORD Oqee password for authentication
--key KEY DRM key for decryption (can be specified multiple times)
--output-dir OUTPUT_DIR
Output directory for downloaded files (default: ./downloads)
--widevine-device WIDEVINE_DEVICE
Path to Widevine device file (default: ./widevine/device.wvd)
--bruteforce-batch-size BRUTEFORCE_BATCH_SIZE
Batch size for bruteforce (default: 20000)
--segment-batch-size SEGMENT_BATCH_SIZE
Batch size for segment downloads (default: 64)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set the logging level (default: INFO)
https://github.com/user-attachments/assets/cc76990a-3d13-4be1-bb3c-ba8d87e6eaba
Examples
Download a specific program with duration:
uv run main.py --channel-id 536 --start-date "2025-12-19 12:00:00" --duration "01:30:00" --video "1080p+best" --audio "best" --title "Record"
Download with manual DRM keys:
uv run main.py --channel-id 536 --start-date "2025-12-19 12:00:00" --duration "00:05:00" --key "KID:KEY" --key "KID2:KEY2"
DRM Decryption
Instructions (Widevine)
In order to decrypt DRM content, you will need to have a dumped CDM, after that you will need to place the CDM files into the ./widevine/ directory. For legal reasons we do not include the CDM with the software, and you will have to source one yourself.
Todo
Completed
- Bruteforce implementation
- EPG info support
- License
- Lint code
- Oqee Widevine license implementation (.wvd)
- Full implementation
- Verify mp4ff installation
- CLI arguments implementation + documentation
- French/English full translation
- Add more comments in the code
- Logging system
- README improvements:
- Libraries used
- Usage instructions
- Installation requirements (pip + mp4ff + ffmpeg)
- Demo GIF
In Progress
- Better output system
- Live direct restream support
Libraries Used
- aiohttp - Async HTTP client/server framework
- InquirerPy - Interactive command line prompts
- python-dotenv - Environment variable management
- pywidevine - Widevine CDM implementation
- Requests - HTTP library