[libav-bugs] [Bug 682] New: Error: spawn EMFILE

bugzilla at libav.org bugzilla at libav.org
Tue May 13 04:32:22 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=682

           Summary: Error: spawn EMFILE
           Product: Libav
           Version: 9
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: michael.heuberger at binarykitchen.com


Hello guys

When I run avconv from a node.js process I get plenty of these errors:

UncaughtException:
spawn EMFILE

Error: spawn EMFILE
     at errnoException (child_process.js:980:11)
     at ChildProcess.spawn (child_process.js:927:11)
     at exports.spawn (child_process.js:715:9)
     at avconv
(/var/www/videomail/production/node_modules/avconv/avconv.js:74:18)
     at /var/www/videomail/production/app/lib/video/encoder.js:200:26
     at process._tickCallback (node.js:415:13)

The exception occurs when avconv is opening tons of images for video
encoding!

The running command is:
avconv -f image2 -r 18 -i
/tmp/videomail.io/production/records/948fdad0-da3e-11e3-9f86-253c204fb097/%d.jpg
-an -b:v 256k -loglevel info -pix_fmt yuv420p -c:v libvpx -deadline realtime
-cpu-used 14 -r 18 -y
/tmp/videomail.io/production/records/948fdad0-da3e-11e3-9f86-253c204fb097/video_preview.webm 

I am probably hitting the maximimu inputs avconv can process. Not sure what to
do here. Nodejs is single-threaded.

Any ideas? It could be a bug or a limitation within avconv?

Thanks
Michael

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list