Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg video filter issue in docker container #104

Open
debiprasad23Onepgr opened this issue Aug 12, 2021 · 2 comments
Open

ffmpeg video filter issue in docker container #104

debiprasad23Onepgr opened this issue Aug 12, 2021 · 2 comments
Labels

Comments

@debiprasad23Onepgr
Copy link

debiprasad23Onepgr commented Aug 12, 2021

I am using ffmpeg video filter to add text in my video for that I am using
this code

`const outputFilePath = `${__dirname}/../transcription_files/video.mp4`;
  ffmpeg(req.body.url)
  .outputOption("-vf",'drawtext=text="Hellow world":x=(w-text_w)/2:y=(h-text_h)/2:fontsize=44:fontcolor=white')
    .on("start", function () {
      console.log("ffmpeg:start");
    })
    .on("progress", function () {
      console.log("ffmpeg:progress");
    })
    .on("error", function (err) {
      console.log("an error happened: " + err);
 })
    .on("end", () => {
    })
    .save(outputFilePath);`
------------------------------------------
In my local setup it is working fine
but after deployment in docker I am getting error
-----------------------------------------------------------------------
ffmpeg:start

an error happened: Error: ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

I have also installed fffmpeg in my docker container using this command :
RUN apk add --no-cache ffmpeg
Can anyone please help

@h2non
Copy link
Owner

h2non commented Aug 14, 2021

This typically happens when you are passing invalid filters or values to ffmpeg. You can try passing the same arguments to ffmpeg from the command line without using videoshow in order to test things out.

@h2non h2non added the question label Aug 14, 2021
@debiprasad23Onepgr
Copy link
Author

But if the issue happening due to invalid filters or values ,
how it is working in localhost before pushing into docker container
Should I install any other ffmpeg module to my docker container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants