
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@eyevinn/ffmpeg-s3
Advanced tools
CLI and library for running ffmpeg with support for reading source from an S3 bucket and write the result to an S3 bucket.
ffmpeg executable must be available in path under the name ffmpeg. When using S3 for output the AWS CLI must be installed and configured,.
Repackage the content from HLS to a MP4 container.
% export OSC_ACCESS_TOKEN=<personal-access-token>
% npx -y @osaas/cli create eyevinn-ffmpeg-s3 demo \
-o awsAccessKeyId="{{secrets.accesskeyid}}" \
-o awsSecretAccessKey="{{secrets.secretaccesskey}}" \
-o s3EndpointUrl="https://eyevinnlab-birme.minio-minio.auto.prod.osaas.io" \
-o cmdLineArgs="-i https://maitv-vod.lab.eyevinn.technology/VINN.mp4/master.m3u8 -c:v copy -c:a copy s3://output/demo/VINN.mp4"
Repackage content from MP4 to a MOV container where the source is on S3.
% npx -y @osaas/cli create eyevinn-ffmpeg-s3 demo \
-o awsAccessKeyId="{{secrets.accesskeyid}}" \
-o awsSecretAccessKey="{{secrets.secretaccesskey}}" \
-o s3EndpointUrl="https://eyevinnlab-birme.minio-minio.auto.prod.osaas.io" \
-o cmdLineArgs="-i s3://input/VINN.mp4 -c:v copy -c:a copy s3://output/demo/trailer.mov"
Extract first 30 seconds of a video.
% npx -y @osaas/cli create eyevinn-ffmpeg-s3 demo \
-o awsAccessKeyId="{{secrets.awsaccesskeyid}}" \
-o awsSecretAccessKey="{{secrets.awssecretaccesskey}}" \
-o s3EndpointUrl="https://eyevinnlab-birme.minio-minio.auto.prod.osaas.io" \
-o cmdLineArgs="-i s3://input/VINN.mp4 -ss 0 -t 30 -c:v copy -c:a copy s3://output/demo/trailer-30sec.mov"
% npm install -g ffmpeg-s3
Repackage the content from MP4 to a MOV container
% export AWS_ACCESS_KEY_ID=<aws-access-key-id>
% export AWS_SECRET_ACCESS_KEY=<aws-secret-access-key>
% ffmpeg-s3 -i s3://lab-testcontent-input.s3/NO_TIME_TO_DIE_short_Trailer_2021.mp4 -c:v copy -c:a copy s3://lab-testcontent-output/demo/trailer.mov
import { doFFmpeg } from '@eyevinn/ffmpeg-s3';
doFFMpeg({
cmdString:
'-i s3://lab-testcontent-input/NO_TIME_TO_DIE_short_Trailer_2021.mp4 -c:v copy -c:a copy s3://lab-testcontent-output/demo/trailer.mov'
})
.then(() => {
console.log('done and uploaded');
})
.catch((err) => {
console.error(err);
});
docker build -t ffmpeg-s3:local .
docker run --rm \
-e AWS_ACCESS_KEY_ID=<aws-access-key-id> \
-e AWS_SECRET_ACCESS_KEY=<aws-secret-access-key> \
ffmpeg-s3:local -i s3://lab-testcontent-input/NO_TIME_TO_DIE_short_Trailer_2021.mp4 c:v copy c:a copy s3://lab-testcontent-output/demo/trailer.mov
Prerequisites:
Run script locally
% npm run build
% node dist/cli.js -h
See CONTRIBUTING
This project is licensed under the MIT License, see LICENSE.
Join our community on Slack where you can post any questions regarding any of our open source projects. Eyevinn's consulting business can also offer you:
Contact sales@eyevinn.se if you are interested.
Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor. As our way to innovate and push the industry forward we develop proof-of-concepts and tools. The things we learn and the code we write we share with the industry in blogs and by open sourcing the code we have written.
Want to know more about Eyevinn and how it is to work here. Contact us at work@eyevinn.se!
FAQs
Run ffmpeg with output to S3
We found that @eyevinn/ffmpeg-s3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.