Stream Manipulator
The Stream Manipulator is a powerful tool for modifying video files, such as .m3u8 files. It allows you to filter video qualities, create custom playlists, and easily manage your streaming content.
How It Works
The Stream Manipulator works by downloading a video file and modifying it based on your preferences. Here's what it can do:
Include specific qualities: Keep only the video qualities you choose (e.g., 360p, 720p).
Keep qualities above a certain resolution: Retain only video qualities at or above a specified resolution (e.g., 480p and higher).
Keep qualities below a certain resolution: Retain only video qualities at or below a specified resolution (e.g., 480p and lower).
Once the file is manipulated, the service saves it to a temporary location and provides the path to the updated file.
Manipulate a File
This feature allows you to adjust a video file according to your desired preferences.
How to use it?
- To manipulate a file, follow these steps:
- Provide the
projectId
: This is your project’s unique identifier. - Provide the
videoId
: This is the unique ID of the video you’re working with. - Choose the type of manipulation:
- SpecificQualities: Keep only the qualities you specify.
- Above: Keep qualities that are at or above a specific resolution.
- Below: Keep qualities that are at or below a specific resolution.
Examples
1. Keeping Specific Qualities
- Let’s say you only want qualities like 360 and 720, you can specify them in the request.
- After providing the necessary parameters,the resulting file path will look like this:
https://stream.vpplayer.net/projectId/encode/videoId/hls/master_file_transformed
.m3u8?qualities=360,720
2. Keeping Qualities Above
- If you want to keep qualities above 480p, you can define this in the request.
- After providing the necessary parameters, the resulting file path will look like this
https://stream.vpplayer.net/projectId/encode/videoId/hls/master_file_transformed
.m3u8?above=720
3. Keeping Qualities Below
- If you want to keep qualities below 720p, you can define this in the request.
- After providing the necessary parameters, the resulting file path will look like this
https://stream.vpplayer.net/projectId/encode/videoId/hls/master_file_transformed
.m3u8?below=720