[FFmpeg-trac] #596(undetermined:new): ffmpeg killed while encoding

FFmpeg trac at avcodec.org
Wed Nov 2 20:26:36 CET 2011

#596: ffmpeg killed while encoding
             Reporter:               |                    Owner:
  benoit_friry                       |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  0.8.5        |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

Comment (by benoit_friry):

 There was no limit on memory... But on cpu time!
 $ ulimit -a
 -t: cpu time (seconds)         3600
 -f: file size (blocks)         unlimited
 -d: data seg size (kbytes)     unlimited
 -s: stack size (kbytes)        8192
 -c: core file size (blocks)    0
 -m: resident set size (kbytes) 1024000
 -u: processes                  1024
 -n: file descriptors           1024
 -l: locked-in-memory size (kb) 64
 -v: address space (kb)         unlimited
 -x: file locks                 unlimited
 -i: pending signals            16083
 -q: bytes in POSIX msg queues  819200
 -e: max nice                   0
 -r: max rt priority            0
 -N 15:                         unlimited

 Setting the cpu time to "unlimited" makes it possible to encode correctly
 the full video.

 The flaw was between the keyboard and the seat.

 Unfortunately, the kill is not verbose when set hard.

 $ ulimit -S -t 1
 $ bash
 $ while true; do foo=$(( foo + 1 )); done
 zsh: cpu limit exceeded  bash
 $ ulimit -H -t 1
 $ bash
 $ while true; do foo=$(( foo + 1 )); done
 zsh: killed     bash

 Sorry for the noise, and many thanks for your help.

 This ticket can be closed. (I cannot close it myself.)

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/596#comment:12>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list