
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@andrewstart/av-encoder
Advanced tools
Encode & compress audio/video specifically for web.
encode-audio
: Takes a list of folders of audio files and converts them to .opus, .caf (opus codec), and .mp3.encode-video
: Takes a list of folders of video files (currently mp4 & mov) and outputs an mp4 for each, and optionally a .wav audio track.npm install @andrewstart/av-encoder
You'll need to create a JSON5 or JSON formatted project config file, with the default name/location being ./ave-config.json5
.
{
// configuration for audio
audio: {
// root folder for all src paths
baseSrc: 'src/audio',
// root folder for all dest paths
baseDest: 'assets/audio',
// default properties for audio encoding, if not specified
default: {
// Target bitrate for .opus & .caf VBR in the form "<number>k". Lower is lower quality.
opusTargetBitrate: '32k',
// Quality for .mp3 VBR, 0-9 with higher being lower quality.
mp3Quality: '9',
},
// list of source folders and destinations. Source folders are not recursive, and destinations can be
// shared.
folders: [
{
src: 'sfx',
dest: 'sfx',
},
{
src: 'sfx/loops',
dest: 'sfx/loops',
// each folder can have specific encoding properties
opusTargetBitrate: '48k',
mp3Quality: '7'
},
{
src: 'vo',
dest: 'vo',
// you can also override settings for individual files if so desired
overrides: {
'intro.wav': {
opusTargetBitrate: '48k',
mp3Quality: '7'
}
}
},
],
},
// configuration for video is exactly the same as for audio, but with different encoding settings
video: {
baseSrc: 'src/video',
baseDest: 'assets/video',
default: {
// MP4 quality: 0 is lossless, 23 is default, and 51 is worst possible. 18-28 is a sane range.
quality: 28,
// Width of the video, to handle resizing. This is required for each video, so you may need to set it
// individually if you have multiple different sized videos
width: 1280,
// If audioOut is set, the video will not have an audio track, which will instead be split out into a
// .wav file to this location (relative to baseSrc from the video configuration)
audioOut: '../audio/vo'
},
// see above for how folders work
folders: []
}
}
Files for audio & video caches to track which files need to be encoded and which don't will be created in your project. .aveaudiocache
and .avevidiocache
will be created when encoding audio and video, respectively. If your output files are tracked with version control, then these cache files should be tracked as well.
FAQs
Encodes and compresses audio/video for widely supported web formats
The npm package @andrewstart/av-encoder receives a total of 2 weekly downloads. As such, @andrewstart/av-encoder popularity was classified as not popular.
We found that @andrewstart/av-encoder demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.