-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The DASH MPD Checker is a Python script that allows you to check DASH (Dynamic Adaptive Streaming over HTTP) media presentation description (MPD) files and their corresponding chunk URLs. The script provides various functionalities to validate DASH content and retrieve essential information about audio and video chunks.
- Python 3.x
- XML ElementTree module
- Clone the repository to your local machine.
- Install the required Python packages:
pip install xml.etree.ElementTree
- Navigate to the project directory and run the script:
python dash_checker.py
The script will display a menu with the following options:
- Check URL Chunk: Check if a specific URL is a valid chunk URL.
- Total Number of Chunks and Range: Display the total number of audio and video chunks, along with their start and end times.
- Print Chunk URLs (saves the file in the same directory as the manifest): Generate an HTML file with all the chunk URLs.
Follow the on-screen instructions and provide the required inputs as prompted.
-
check_url_chunk(url, manifest_path)
This function checks whether a given URL is a valid chunk URL by parsing the DASH MPD file and comparing the URL against the segment timeline. -
total_chunks(manifest_path)
This function calculates and returns the total number of audio and video chunks, along with their start and end times. -
print_chunk_urls(manifest_path)
This function generates an HTML file containing all the audio and video chunk URLs based on the given DASH MPD file.
The script uses the XML ElementTree module to parse the DASH MPD files and extract the required information about the audio and video chunks. Please ensure that the XML files are well-formed and follow the DASH schema.
Feel free to contribute to this project by submitting pull requests or reporting issues on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.
This DASH MPD Checker script was created by Johny Nixon. You can contact me via [email protected] or find more projects on Your GitHub Profile.
We hope this script helps you validate DASH content and manage your multimedia streaming efficiently! If you have any questions or need assistance, feel free to reach out. Happy streaming!