[FFmpeg-trac] #4988(undetermined:new): Dequeued v4l2 buffer contains corrupted data (0 bytes).
FFmpeg
trac at avcodec.org
Wed Nov 4 12:42:14 CET 2015
#4988: Dequeued v4l2 buffer contains corrupted data (0 bytes).
-------------------------------------+-------------------------------------
Reporter: neik | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
Capture from Magewell xi100dusb-hdmi
{{{
$ ffmpeg -y -report -ts mono2abs -thread_queue_size 512 -video_size
1280x720 -framerate 60 -i /dev/video0 -pix_fmt yuv420p out.mkv
ffmpeg started on 2015-11-04 at 11:36:36
Report written to "ffmpeg-20151104-113636.log"
ffmpeg version N-76448-g9ae73d0 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
configuration:
libavutil 55. 5.100 / 55. 5.100
libavcodec 57. 13.102 / 57. 13.102
libavformat 57. 13.100 / 57. 13.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 14.101 / 6. 14.101
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
[video4linux2,v4l2 @ 0x3113140] Dequeued v4l2 buffer contains corrupted
data (0 bytes).
[video4linux2,v4l2 @ 0x3113140] Detected monotonic timestamps, converting
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1446636130.558504, bitrate: 884736 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720,
884736 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
Output #0, matroska, to 'out.mkv':
Metadata:
encoder : Lavf57.13.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720,
q=2-31, 200 kb/s, 60 fps, 1k tbn, 60 tbc
Metadata:
encoder : Lavc57.13.102 mpeg4
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0x3113140] Dequeued v4l2 buffer contains corrupted
data (0 bytes).
Last message repeated 30 times
frame= 975 fps= 60 q=2.0 Lsize= 1223kB time=00:14:42.63 bitrate=
11.4kbits/s
video:1213kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.850584%
}}}
Adding audio causes the framerate to drop to <1fps
{{{
$ ffmpeg -y -report -ts mono2abs -thread_queue_size 512 -video_size
1280x720 -framerate 60 -i /dev/video0 -thread_queue_size 512 -ac 2
-channel_layout stereo -f alsa -i hw:1 -pix_fmt yuv420p out.mkv
ffmpeg started on 2015-11-04 at 11:40:34
Report written to "ffmpeg-20151104-114034.log"
ffmpeg version N-76448-g9ae73d0 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
configuration:
libavutil 55. 5.100 / 55. 5.100
libavcodec 57. 13.102 / 57. 13.102
libavformat 57. 13.100 / 57. 13.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 14.101 / 6. 14.101
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
[video4linux2,v4l2 @ 0x2337320] Dequeued v4l2 buffer contains corrupted
data (0 bytes).
[video4linux2,v4l2 @ 0x2337320] Detected monotonic timestamps, converting
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1446636130.558504, bitrate: 884736 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720,
884736 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
Input #1, alsa, from 'hw:1':
Duration: N/A, start: 1446637235.116087, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Output #0, matroska, to 'out.mkv':
Metadata:
encoder : Lavf57.13.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720,
q=2-31, 200 kb/s, 60 fps, 1k tbn, 60 tbc
Metadata:
encoder : Lavc57.13.102 mpeg4
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp,
192 kb/s
Metadata:
encoder : Lavc57.13.102 ac3
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> ac3 (native))
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0x2337320] Dequeued v4l2 buffer contains corrupted
data (0 bytes).
Last message repeated 30 times
[matroska @ 0x234d0a0] Starting new cluster due to timestampitrate=
1.2kbits/s
frame= 1 fps=0.1 q=1.6 Lsize= 179kB time=00:18:24.60 bitrate=
1.3kbits/s
video:10kB audio:166kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.412143%
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4988>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list