Opened 3 years ago

Closed 3 years ago

#4273 closed defect (invalid)

ffmpeg crashes with Invalid argument error

Reported by: illumilore Owned by:
Priority: important Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

After about 5 minutes of running ffmpeg, it will crash.

$ ffmpeg -f alsa -itsoffset 0.1 -ar 24000 -i plughw:1 -f video4linux2 -input_format mjpeg -s 960x720 -r 5 -i /dev/video0 -map 0:a -map 1:v http://127.0.0.1:8090/cam.ffm -f segment -segment_time 3600 -segment_atclocktime 1 -r 5 -s 640x480 -reset_timestamps 1 -segment_list_flags live -vf "drawtext='fontfile=/usr/share/fonts/truetype/DejaVuSans.ttf:fontcolor=white:fontsize=30:x=1:y=2:shadowx=1:shadowy=1:text=%{localtime\:%Y-%m-%d %H

\:%M

\:%S}'" -segment_start_number 1242 /media/cam/test_%03d.avi
ffmpeg version 2.3.5 Copyright (c) 2000-2014 the FFmpeg developers

built on Jan 2 2015 09:03:59 with gcc 4.8 (SUSE Linux)
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'plughw:1':

Duration: N/A, start: 1421603878.960656, bitrate: 768 kb/s

Stream #0:0: Audio: pcm_s16le, 24000 Hz, 2 channels, s16, 768 kb/s

Input #1, video4linux2,v4l2, from '/dev/video0':

Duration: N/A, start: 45026.406885, bitrate: N/A

Stream #1:0: Video: mjpeg, yuvj422p(pc, bt470bg), 960x720, 0 kb/s, 5 fps, 5 tbr, 1000k tbn, 1000k tbc

[swscaler @ 0x11a7680] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x11f7000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x121f420] deprecated pixel format used, make sure you did set range correctly
[avi @ 0x1538220] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.

Last message repeated 1 times

Output #0, ffm, to 'http://127.0.0.1:8090/cam.ffm':

Metadata:

creation_time : now
encoder : Lavf55.48.100
Stream #0:0: Video: flv1 (flv), yuv420p, 960x720, q=5-15, 4000 kb/s, 5 fps, 1000k tbn, 5 tbc
Metadata:

encoder : Lavc55.69.100 flv

Stream #0:1: Video: mjpeg, yuvj422p, 960x720, q=1-5, 128 kb/s, 5 fps, 1000k tbn, 5 tbc
Metadata:

encoder : Lavc55.69.100 mjpeg

Stream #0:2: Video: mjpeg, yuvj422p, 480x320, q=10-20, 128 kb/s, 5 fps, 1000k tbn, 5 tbc
Metadata:

encoder : Lavc55.69.100 mjpeg

Output #1, segment, to '/media/cam/test_%03d.avi':

Metadata:

encoder : Lavf55.48.100
Stream #1:0: Video: mpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 5 fps, 5 tbn, 5 tbc
Metadata:

encoder : Lavc55.69.100 mpeg4

Stream #1:1: Audio: mp3 (libmp3lame), 24000 Hz, stereo, s16p
Metadata:

encoder : Lavc55.69.100 libmp3lame

Stream mapping:

Stream #1:0 -> #0:0 (mjpeg (native) -> flv1 (flv))
Stream #1:0 -> #0:1 (mjpeg (native) -> mjpeg (native))
Stream #1:0 -> #0:2 (mjpeg (native) -> mjpeg (native))
Stream #1:0 -> #1:0 (mjpeg (native) -> mpeg4 (native))
Stream #0:0 -> #1:1 (pcm_s16le (native) -> mp3 (libmp3lame))

Press [q] to stop, ? for help
[mjpeg @ 0x11e60e0] rc buffer underflow

...
...

[mjpeg @ 0xaf70c0] rc buffer underflow
[mjpeg @ 0xaf60e0] rc buffer underflow
[mjpeg @ 0xaf70c0] rc buffer underflow
[mjpeg @ 0xaf60e0] rc buffer underflow
[mjpeg @ 0xaf70c0] rc buffer underflow
[mjpeg @ 0xaf60e0] rc buffer underflow
[mjpeg @ 0xaf70c0] rc buffer underflow
[mjpeg @ 0xaf60e0] rc buffer underflow
[mjpeg @ 0xaf70c0] rc buffer underflow
[avi @ 0xe43b00] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 14444 >= 14444
av_interleaved_write_frame(): Invalid argument
frame= 6280 fps= 18 q=2.0 Lq=31.4 q=31.4 q=10.8 size= 732240kB time=00:20:56.00 bitrate=4775.9kbits/s
video:760566kB audio:2708kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

Change History (1)

comment:1 Changed 3 years ago by illumilore

  • Resolution set to invalid
  • Status changed from new to closed

forgot ./

Note: See TracTickets for help on using tickets.