
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A FFmpeg module which could provide a class for encoding, decoding, or streaming a video in any format.
This is a mpegCoder adapted from FFmpeg & Python-c-api. Using it you could get access to processing video easily. Just use it as a common module in python like this.
import mpegCoder
Branch | Description |
---|---|
master | The source project of mpegCoder , Windows version. |
master-linux | The source project of mpegCoder , Linux version. |
example-client-check | A testing project of the online video stream demuxing. |
example-client-player | A testing project of the simple online video stream player. |
The documentation could be reviewed here:
https://cainmagi.github.io/FFmpeg-Encoder-Decoder-for-Python
This project is also named as "FFmpeg-Encoder-Decoder-for-Python". It is implemented based on FFMpeg, Python-C-API and C++11. It is under GPL v3 License, and recommended for researching purposes. The project could be used for processing or streaming videos.
With this package, users could:
np.ndarray
. In other words, our project enables users to combine numpy and FFMpeg directly.np.ndarray
..so
or .dll
), they do not need to compile the package by themself.However, users could not work with this project in such cases:
4.4
, and 5.0
. Users need to download the dependent dynamic libraries to make the package work. The pip
version is able to download the libraries automatically. The legacy versions of this project supports FFMpeg 3.3
, 3.4.2
and 4.0
. However, the legacy built packages are not technically supported now.v4
), we may support the audio frame analysis.avfilter
and postproc
), our implementation drops these modules. Instead, we suggest that users should process the frames with pillow or openCV. On the other hand, our implementation still supports frame scaling and re-sampling (supported by swscale
and swresample
).Here we show an example of transcoding a video with our decoder and encoder. To learn more details, please review the documentation.
import mpegCoder
d = mpegCoder.MpegDecoder()
d.setParameter(nthread=4)
opened = d.FFmpegSetup('test-video.mp4') # Setup the decoder
e = mpegCoder.MpegEncoder()
e.setParameter(decoder=d, codecName='libx265', videoPath='test-video-x265.mp4', nthread=8) # inherit most of parameters from the decoder.
opened = opened and e.FFmpegSetup() # Setup the encoder.
if opened: # If either the decoder or the encoder is not loaded successfully, do not continue.
p = True
while p is not None:
p = d.ExtractGOP() # Extract current GOP.
if p is not None:
for i in p: # Iterate every frame.
e.EncodeFrame(i) # Encode current frame.
e.FFmpegClose() # End encoding, and flush all frames in cache.
e.clear() # Clean configs of the encoder.
d.clear() # Close configs of the decoder.
FAQs
A FFmpeg module which could provide a class for encoding, decoding, or streaming a video in any format.
We found that mpegCoder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.