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 was killed with signal SIGSEGV at ChildProcess #22

Open
galipmedia opened this issue Aug 24, 2021 · 5 comments
Open

ffmpeg was killed with signal SIGSEGV at ChildProcess #22

galipmedia opened this issue Aug 24, 2021 · 5 comments

Comments

@galipmedia
Copy link

I am getting this error on a particular ffmpeg command I am calling in lambda. I have various other commands that are working fine. I have copied the exact command I use from ECS where it works fine as well. In this particular function I am using fluent-ffmpeg to concat a series of clips from a txt file. Do you have any idea why I would get this error?

@galipmedia
Copy link
Author

galipmedia commented Aug 24, 2021

ffmpeg -f concat -safe 0 -protocol_whitelist file,https,tcp,tls -i /tmp/1272list.txt -i https://s3.amazonaws.com/xxx/tracks/99.mp3 -y -filter_complex [0:a]volume=1[finalSound];[1:a]volume=0.264, afade=t=in:st=0:d=2, afade=t=out:st=74.20:d=3[finalMusic];[finalSound][finalMusic]amix -acodec libmp3lame -vcodec copy -shortest /tmp/1272_tmp.mp4

@pacarvalho
Copy link

@galipmedia Did you resolve this issue? I am having the same problem when using concat + adding an audio stream.

  await childProcessPromise.spawn(
    "/opt/bin/ffmpeg",
    [
      "-loglevel",
      "verbose",
      "-y",
      "-f",
      "concat",
      "-safe",
      "0",
      "-protocol_whitelist",
      "file,https,tcp,tls",
      "-i",
      videoListFilename,
      "-i",
      `${soundtrack}`,
      "-c",
      "copy",
      "-fflags",
      "+shortest",
      outputFile,
    ],
    { env: process.env, cwd: workdir }
  );

@galipmedia
Copy link
Author

galipmedia commented Sep 21, 2021 via email

@pacarvalho
Copy link

@galipmedia My solution, for now, was to pass through ffmpeg twice. Once to concat. And a second time to add the audio.

@galipmedia
Copy link
Author

galipmedia commented Sep 21, 2021 via email

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

No branches or pull requests

2 participants