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 Rendering giving error #75

Closed
Hadi-Raja opened this issue Dec 12, 2021 · 8 comments
Closed

ffmpeg Rendering giving error #75

Hadi-Raja opened this issue Dec 12, 2021 · 8 comments

Comments

@Hadi-Raja
Copy link

Hadi-Raja commented Dec 12, 2021

Hi,
I got the script to work for a couple of recordings but after that it is giving me continuous error for any recording I am running it for. Here is the error

`[Error] Failed rendering downloable video for BBB presentation {

args: Namespace(input='/var/bigbluebutton/published/presentation/ID', output='/var/bigbluebutton/published/presentation/ID/video.mp4'),
format: 'mp4',
docker: true,
workdir: './tmp/dataMoEDif'
}

Error: Command failed: ffmpeg -hide_banner -loglevel error -f concat -i ./tmp/dataMoEDif/slides.txt -threads 1 -y -filter_complex "[0:v]fps=24, scale=800:-2[out]" -map '[out]' -strict -2 -crf 22 -pix_fmt yuv420p ./tmp/dataMoEDif/slides.mp4
at checkExecSyncError (child_process.js:635:11)
at Object.execSync (child_process.js:671:15)
at renderVideo (/home/bigbluebutton/modules/slides.js:317:18)
at module.exports.renderSlides (/home/bigbluebutton/modules/slides.js:13:15)
at async module.exports.createPresentationVideo (/home/bigbluebutton/modules/presentation.js:10:20)
at async module.exports.createVideo (/home/bigbluebutton/modules/processor.js:20:26)
at async run (/home/bigbluebutton/index.js:10:9) {
status: null,
signal: 'SIGKILL',
output: [ null, , ],
pid: 117,
stdout: ,
stderr:
}
`
Can anyone help me out with it ?

Thanks

@clement850
Copy link

Hello, exactly the same issue here. Thanks

@embutidox
Copy link

Same error here.

@Hadi-Raja
Copy link
Author

@tilmanmoser .. Please can you leave a comment regarding it or some guidance in helping fix this issue is highly appreciated.

Thank you.

@christmart
Copy link

christmart commented Jan 5, 2022

What is your environment, where you run it?
I see the same problems with bbb-video-download on ubuntu 18 on a BBB 2.4.0 host.
If I process the videos with bbb-video-download on ubuntu 18 on a BBB 2.3.16 host, the processing succeeds.

ffmpeg gets killed from oom-killer:

Jan  5 05:52:53 bbb-27-29 kernel: [72337.405981] [20806]   997 20806 14432304 13469022 115712000   905227             0 ffmpeg
Jan  5 05:52:53 bbb-27-29 kernel: [72337.405982] Out of memory: Kill process 20806 (ffmpeg) score 904 or sacrifice child
Jan  5 05:52:53 bbb-27-29 kernel: [72337.406179] Killed process 20806 (ffmpeg) total-vm:57729216kB, anon-rss:53876088kB, file-rss:0kB, shmem-rss:0kB
Jan  5 05:52:54 bbb-27-29 kernel: [72338.557187] oom_reaper: reaped process 20806 (ffmpeg), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

working container has

alpine 3.11.12
node v12.22.7
ffmpeg 4.2.4 (gcc 9.2.0)

not working container has

alpine 3.14.3
node v12.22.8
ffmpeg 4.4.1 (gcc 10.3.1)

@christmart
Copy link

christmart commented Jan 6, 2022

I have now changed the following to make it working again until a real fix is availlable:

--- a/src/Dockerfile
+++ b/src/Dockerfile
@@ -1,8 +1,8 @@
-FROM node:12-alpine
+FROM node:12-alpine3.11

Why does the newer ffmpeg get all this memory until OOM hits?

@vahid75
Copy link

vahid75 commented Feb 5, 2022

I faced same error and oom killer killed the ffmpeg process . thanks to @christmart for his suggestions.
I think it is because of ubuntu version. I had two containers with this base image FROM node:12-alpine on both ubuntu 16 and ubuntu 18. old version works correctly but on ubuntu 18 it has error.

@lonesomewalker
Copy link
Contributor

Should be re-opened and merged :-|

@jarrodjay
Copy link

jarrodjay commented Apr 28, 2022

I have now changed the following to make it working again until a real fix is availlable:

--- a/src/Dockerfile
+++ b/src/Dockerfile
@@ -1,8 +1,8 @@
-FROM node:12-alpine
+FROM node:12-alpine3.11

Why does the newer ffmpeg get all this memory until OOM hits?

Can confirm- this worked perfectly. Before patch, it was using upwards of 20GB of RAM and still dying with OOM. ~1G now for the same video.

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

8 participants