ffmpeg was killed with signal SIGSEGV at ChildProcess
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?
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
@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 }
);
Unfortunately not.
On Tue, 21 Sep 2021, 8:11 am Paulo, @.***> wrote:
@galipmedia https://github.com/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 } );— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/serverlesspub/ffmpeg-aws-lambda-layer/issues/22#issuecomment-923406926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAORBIAFOBTTKUMMKFN2XETUC6Z75ANCNFSM5CWKGCCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@galipmedia My solution, for now, was to pass through ffmpeg twice. Once to concat. And a second time to add the audio.
Thanks, I'll try that. But my problem is then the 500mb storage limit. Because I need to make the video twice.
On Tue, 21 Sep 2021, 1:08 pm Paulo, @.***> wrote:
@galipmedia https://github.com/galipmedia My solution, for now, was to pass through ffmpeg twice. Once to concat. And a second time to add the audio.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/serverlesspub/ffmpeg-aws-lambda-layer/issues/22#issuecomment-923594650, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAORBIE3MITUKMWDJ6X2DLDUC745FANCNFSM5CWKGCCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.