[FFmpeg-user] Audio/video capture out of synchronisation. Is my fix right?

MrNice wxcvbn2006 at iol.ie
Sun Aug 30 20:11:34 CEST 2015


Hello

I use the following command:
./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -i alsa_input.pci-0000_00_14.2.analog-stereo -f
v4l2 -ts mono2abs -channel 1 -video_size 720x576 -pix_fmt yuyv422
-thread_queue_size 512 -i /dev/video0 -vf
drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max
-c:v ffv1 -level 3 -aspect 4:3 -pix_fmt yuv422p -c:a pcm_s16le
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv -aspect 4:3 -f sdl "Dazzle output"
See 1st output below

However even with -ts mon2abs option, I have a de-sync late audio of
around 150ms when I play the file with ffplay
I found a fix adding
-itsoffset -0.15
before
-i alsa_input.pci-0000_00_14.2.analog-stereo
See 2nd output below

This seems to work, remove the de-sinc but I have some very short
freezes in the sdl window. I checked the number of input and output
frames and packets, there are equal. Maybe this is only a display
freeze. Average CPU usage with System Monitor shows around 25-30%.

I want to know if this fix is OK.

BTW if I add -itsoffset -0.15 and I remove -ts mono2abs all is sync even
if start: of audio and start: of video are widely different:
  Duration: N/A, start: 1440954817.205196, bitrate: 1411 kb/s
  Duration: N/A, start: 34816.905351, bitrate: 165888 kb/s


Many thanks

1st output
 ./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -i alsa_input.pci-0000_00_14.2.analog-stereo -f
v4l2 -ts mono2abs -channel 1 -video_size 720x576 -pix_fmt yuyv422
-thread_queue_size 512 -i /dev/video0 -vf
drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max
-c:v ffv1 -level 3 -aspect 4:3 -pix_fmt yuv422p -c:a pcm_s16le
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv -aspect 4:3 -f sdl "Dazzle output"
ffmpeg version N-74714-g47b41fe Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
  configuration: --enable-libpulse --enable-gpl --enable-libx264
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 59.100 / 56. 59.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.100 /  5. 40.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
 matched as AVOption 'debug' with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'pulse'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '44100'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-channel_layout' ... matched as option 'channel_layout'
(set channel layout) with argument 'stereo'.
Reading option '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-i' ... matched as input file with argument
'alsa_input.pci-0000_00_14.2.analog-stereo'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'v4l2'.
Reading option '-ts' ... matched as AVOption 'ts' with argument 'mono2abs'.
Reading option '-channel' ... matched as AVOption 'channel' with
argument '1'.
Reading option '-video_size' ... matched as AVOption 'video_size' with
argument '720x576'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuyv422'.
Reading option '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument
'drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max'.
Reading option '-c:v' ... matched as option 'c' (codec name) with
argument 'ffv1'.
Reading option '-level' ... matched as AVOption 'level' with argument '3'.
Reading option '-aspect' ... matched as option 'aspect' (set aspect
ratio (4:3, 16:9 or 1.3333, 1.7777)) with argument '4:3'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuv422p'.
Reading option '-c:a' ... matched as option 'c' (codec name) with
argument 'pcm_s16le'.
Reading option '/Store3/Test/t_20150830_1901.mkv' ... matched as output
file.
Reading option '-aspect' ... matched as option 'aspect' (set aspect
ratio (4:3, 16:9 or 1.3333, 1.7777)) with argument '4:3'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'sdl'.
Reading option 'Dazzle output' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input file
alsa_input.pci-0000_00_14.2.analog-stereo.
Applying option f (force format) with argument pulse.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option ac (set number of audio channels) with argument 2.
Applying option channel_layout (set channel layout) with argument stereo.
Applying option thread_queue_size (set the maximum number of queued
packets from the demuxer) with argument 512.
Successfully parsed a group of options.
Opening an input file: alsa_input.pci-0000_00_14.2.analog-stereo.
[pulse @ 0x31ced00] All info found
Input #0, pulse, from 'alsa_input.pci-0000_00_14.2.analog-stereo':
  Duration: N/A, start: 1440957681.346176, bitrate: 1411 kb/s
    Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 44100 Hz, stereo, s16,
1411 kb/s
Successfully opened the file.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument v4l2.
Applying option pix_fmt (set pixel format) with argument yuyv422.
Applying option thread_queue_size (set the maximum number of queued
packets from the demuxer) with argument 512.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x31d83e0] fd:6 capabilities:85220001
[video4linux2,v4l2 @ 0x31d83e0] Selecting input_channel: 1
[video4linux2,v4l2 @ 0x31d83e0] Current input_channel: 1, input_name:
S-Video, input_std: ffffff
[video4linux2,v4l2 @ 0x31d83e0] The V4L2 driver is using the interlaced mode
[video4linux2,v4l2 @ 0x31d83e0] Current standard: PAL, id: ff,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x31d83e0] Detected monotonic timestamps, converting
[video4linux2,v4l2 @ 0x31d83e0] All info found
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1440957682.493914, bitrate: 165888 kb/s
    Stream #1:0, 1, 1/1000000: Video: rawvideo, 1 reference frame (YUY2
/ 0x32595559), yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr,
1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output file /Store3/Test/t_20150830_1901.mkv.
Applying option vf (set video filters) with argument
drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max.
Applying option c:v (codec name) with argument ffv1.
Applying option aspect (set aspect ratio (4:3, 16:9 or 1.3333, 1.7777))
with argument 4:3.
Applying option pix_fmt (set pixel format) with argument yuv422p.
Applying option c:a (codec name) with argument pcm_s16le.
Successfully parsed a group of options.
Opening an output file: /Store3/Test/t_20150830_1901.mkv.
Successfully opened the file.
Parsing a group of options: output file Dazzle output.
Applying option aspect (set aspect ratio (4:3, 16:9 or 1.3333, 1.7777))
with argument 4:3.
Applying option f (force format) with argument sdl.
Successfully parsed a group of options.
Opening an output file: Dazzle output.
Successfully opened the file.
detected 8 logical cores
[Parsed_drawbox_0 @ 0x3202240] Setting 'x' to value '0'
[Parsed_drawbox_0 @ 0x3202240] Setting 'y' to value '0'
[Parsed_drawbox_0 @ 0x3202240] Setting 'width' to value '3'
[Parsed_drawbox_0 @ 0x3202240] Setting 'height' to value '576'
[Parsed_drawbox_0 @ 0x3202240] Setting 'color' to value 'black at 1'
[Parsed_drawbox_0 @ 0x3202240] Setting 't' to value 'max'
[Parsed_drawbox_1 @ 0x3202d40] Setting 'x' to value '718'
[Parsed_drawbox_1 @ 0x3202d40] Setting 'y' to value '0'
[Parsed_drawbox_1 @ 0x3202d40] Setting 'width' to value '3'
[Parsed_drawbox_1 @ 0x3202d40] Setting 'height' to value '576'
[Parsed_drawbox_1 @ 0x3202d40] Setting 'color' to value 'black at 1'
[Parsed_drawbox_1 @ 0x3202d40] Setting 't' to value 'max'
[Parsed_drawbox_2 @ 0x3203780] Setting 'x' to value '0'
[Parsed_drawbox_2 @ 0x3203780] Setting 'y' to value '0'
[Parsed_drawbox_2 @ 0x3203780] Setting 'width' to value '720'
[Parsed_drawbox_2 @ 0x3203780] Setting 'height' to value '3'
[Parsed_drawbox_2 @ 0x3203780] Setting 'color' to value 'black at 1'
[Parsed_drawbox_2 @ 0x3203780] Setting 't' to value 'max'
[Parsed_drawbox_3 @ 0x3204240] Setting 'x' to value '0'
[Parsed_drawbox_3 @ 0x3204240] Setting 'y' to value '565'
[Parsed_drawbox_3 @ 0x3204240] Setting 'width' to value '720'
[Parsed_drawbox_3 @ 0x3204240] Setting 'height' to value '11'
[Parsed_drawbox_3 @ 0x3204240] Setting 'color' to value 'black at 1'
[Parsed_drawbox_3 @ 0x3204240] Setting 't' to value 'max'
[graph 0 input from stream 1:0 @ 0x32006c0] Setting 'video_size' to
value '720x576'
[graph 0 input from stream 1:0 @ 0x32006c0] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 1:0 @ 0x32006c0] Setting 'time_base' to value
'1/1000000'
[graph 0 input from stream 1:0 @ 0x32006c0] Setting 'pixel_aspect' to
value '0/1'
[graph 0 input from stream 1:0 @ 0x32006c0] Setting 'sws_param' to value
'flags=2'
[graph 0 input from stream 1:0 @ 0x32006c0] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 1:0 @ 0x32006c0] w:720 h:576 pixfmt:yuyv422
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[format @ 0x32030e0] compat: called with args=[yuv422p]
[format @ 0x32030e0] Setting 'pix_fmts' to value 'yuv422p'
[auto-inserted scaler 0 @ 0x3204800] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x3204800] w:iw h:ih flags:'bicubic' interl:0
[Parsed_drawbox_0 @ 0x3202240] auto-inserting filter 'auto-inserted
scaler 0' between the filter 'graph 0 input from stream 1:0' and the
filter 'Parsed_drawbox_0'
[AVFilterGraph @ 0x32005e0] query_formats: 7 queried, 5 merged, 1
already done, 0 delayed
[auto-inserted scaler 0 @ 0x3204800] w:720 h:576 fmt:yuyv422 sar:0/1 ->
w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
[Parsed_drawbox_0 @ 0x3202240] x:0 y:0 w:3 h:576 color:0x108080FF
[Parsed_drawbox_1 @ 0x3202d40] x:718 y:0 w:3 h:576 color:0x108080FF
[Parsed_drawbox_2 @ 0x3203780] x:0 y:0 w:720 h:3 color:0x108080FF
[Parsed_drawbox_3 @ 0x3204240] x:0 y:565 w:720 h:11 color:0x108080FF
[graph 1 input from stream 0:0 @ 0x3204ae0] Setting 'time_base' to value
'1/44100'
[graph 1 input from stream 0:0 @ 0x3204ae0] Setting 'sample_rate' to
value '44100'
[graph 1 input from stream 0:0 @ 0x3204ae0] Setting 'sample_fmt' to
value 's16'
[graph 1 input from stream 0:0 @ 0x3204ae0] Setting 'channel_layout' to
value '0x3'
[graph 1 input from stream 0:0 @ 0x3204ae0] tb:1/44100 samplefmt:s16
samplerate:44100 chlayout:0x3
[audio format for output stream 0:1 @ 0x3223320] Setting 'sample_fmts'
to value 's16'
[AVFilterGraph @ 0x3224440] query_formats: 4 queried, 9 merged, 0
already done, 0 delayed
[graph 2 input from stream 1:0 @ 0x3223560] Setting 'video_size' to
value '720x576'
[graph 2 input from stream 1:0 @ 0x3223560] Setting 'pix_fmt' to value '1'
[graph 2 input from stream 1:0 @ 0x3223560] Setting 'time_base' to value
'1/1000000'
[graph 2 input from stream 1:0 @ 0x3223560] Setting 'pixel_aspect' to
value '0/1'
[graph 2 input from stream 1:0 @ 0x3223560] Setting 'sws_param' to value
'flags=2'
[graph 2 input from stream 1:0 @ 0x3223560] Setting 'frame_rate' to
value '25/1'
[graph 2 input from stream 1:0 @ 0x3223560] w:720 h:576 pixfmt:yuyv422
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[AVFilterGraph @ 0x32185c0] query_formats: 3 queried, 2 merged, 0
already done, 0 delayed
[sdl @ 0x31feee0] w:720 h:576 fmt:yuyv422 -> w:720 h:540
Output #0, matroska, to '/Store3/Test/t_20150830_1901.mkv':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0, 0, 1/1000: Video: ffv1, 1 reference frame (FFV1 /
0x31564646), yuv422p, 720x576 [SAR 16:15 DAR 4:3], 1/25, q=2-31, 200
kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.59.100 ffv1
    Stream #0:1, 0, 1/1000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc56.59.100 pcm_s16le
Output #1, sdl, to 'Dazzle output':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #1:0, 0, 1/25: Video: rawvideo, 1 reference frame (YUY2 /
0x32595559), yuyv422, 720x576 [SAR 16:15 DAR 4:3], 1/25, q=2-31, 200
kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.59.100 rawvideo
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
  Stream #1:0 -> #1:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Cliping frame in rate conversion by 0.000008
[matroska @ 0x31e9f80] Writing block at offset 965, size 206971, pts 0,
dts 0, duration 40, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 207944, size 65472, pts
0, dts 0, duration 371, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 273424, size 149754, pts
40, dts 40, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 423186, size 147959, pts
80, dts 80, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 571153, size 150389, pts
120, dts 120, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000313
[matroska @ 0x31e9f80] Writing block at offset 721550, size 155183, pts
160, dts 160, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 876741, size 158628, pts
200, dts 200, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 1035377, size 162838, pts
240, dts 240, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000511
[matroska @ 0x31e9f80] Writing block at offset 1198223, size 165820, pts
280, dts 280, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000725
[matroska @ 0x31e9f80] Writing block at offset 1364051, size 168597, pts
320, dts 320, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000420
[matroska @ 0x31e9f80] Writing block at offset 1532656, size 171482, pts
360, dts 360, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 1704146, size 46500, pts
371, dts 371, duration 264, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 1750654, size 174059, pts
400, dts 400, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001045
[matroska @ 0x31e9f80] Writing block at offset 1924721, size 177598, pts
440, dts 440, duration 40, keyframe 0
[matroska @ 0x31e9f80] Starting new cluster at offset 2102327 bytes, pts
480dts 480
[matroska @ 0x31e9f80] Writing block at offset 2102343, size 182750, pts
480, dts 480, duration 40, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 2285101, size 184866, pts
520, dts 520, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 2469975, size 188731, pts
560, dts 560, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001167596kB time=00:00:01.00
bitrate=21142.9kbits/s
[matroska @ 0x31e9f80] Writing block at offset 2658714, size 193718, pts
600, dts 600, duration 40, keyframe 0
[matroska @ 0x31e9f80] Writing block at offset 2852440, size 65472, pts
635, dts 635, duration 371, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 2917920, size 196930, pts
640, dts 640, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000099
[matroska @ 0x31e9f80] Writing block at offset 3114858, size 127598, pts
680, dts 680, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000267
[matroska @ 0x31e9f80] Writing block at offset 3242464, size 127313, pts
720, dts 720, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000298
[matroska @ 0x31e9f80] Writing block at offset 3369785, size 128233, pts
760, dts 760, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000221
[matroska @ 0x31e9f80] Writing block at offset 3498026, size 128108, pts
800, dts 800, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000618
[matroska @ 0x31e9f80] Writing block at offset 3626142, size 130229, pts
840, dts 840, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000648
[matroska @ 0x31e9f80] Writing block at offset 3756379, size 132518, pts
880, dts 880, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002739
[matroska @ 0x31e9f80] Writing block at offset 3888905, size 133647, pts
920, dts 920, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000923
[matroska @ 0x31e9f80] Starting new cluster at offset 4022560 bytes, pts
960dts 960
[matroska @ 0x31e9f80] Writing block at offset 4022576, size 138264, pts
960, dts 960, duration 40, keyframe 1
Cliping frame in rate conversion by 0.001274
[matroska @ 0x31e9f80] Writing block at offset 4160848, size 139104, pts
1000, dts 1000, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003212
[matroska @ 0x31e9f80] Writing block at offset 4299960, size 36984, pts
1006, dts 1006, duration 210, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 4336952, size 141753, pts
1040, dts 1040, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001442374kB time=00:00:01.58
bitrate=22591.2kbits/s
[matroska @ 0x31e9f80] Writing block at offset 4478713, size 144910, pts
1080, dts 1080, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002098
[matroska @ 0x31e9f80] Writing block at offset 4623631, size 149171, pts
1120, dts 1120, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003593
[matroska @ 0x31e9f80] Writing block at offset 4772810, size 153421, pts
1160, dts 1160, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001793
[matroska @ 0x31e9f80] Writing block at offset 4926239, size 157536, pts
1200, dts 1200, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003288
[matroska @ 0x31e9f80] Writing block at offset 5083783, size 65472, pts
1215, dts 1215, duration 371, keyframe 1
[matroska @ 0x31e9f80] Writing block at offset 5149263, size 162208, pts
1240, dts 1240, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002220
[matroska @ 0x31e9f80] Writing block at offset 5311479, size 165233, pts
1280, dts 1280, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002098
[matroska @ 0x31e9f80] Writing block at offset 5476720, size 168548, pts
1320, dts 1320, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003548
[matroska @ 0x31e9f80] Writing block at offset 5645276, size 171455, pts
1360, dts 1360, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002388
[matroska @ 0x31e9f80] Writing block at offset 5816739, size 173621, pts
1400, dts 1400, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002617
[matroska @ 0x31e9f80] Starting new cluster at offset 5990368 bytes, pts
1440dts 1440
[matroska @ 0x31e9f80] Writing block at offset 5990384, size 179667, pts
1440, dts 1440, duration 40, keyframe 1
Cliping frame in rate conversion by 0.002586
[matroska @ 0x31e9f80] Writing block at offset 6170059, size 180361, pts
1480, dts 1480, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004616
[matroska @ 0x31e9f80] Writing block at offset 6350428, size 184653, pts
1520, dts 1520, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004768
[matroska @ 0x31e9f80] Writing block at offset 6535089, size 188954, pts
1560, dts 1560, duration 40, keyframe 0
av_interleaved_write_frame(): Input/output error
No more output streams to write to, finishing.
[matroska @ 0x31e9f80] Writing block at offset 6724051, size 65472, pts
1586, dts 1586, duration 371, keyframe 1
[matroska @ 0x31e9f80] end duration = 1957
[matroska @ 0x31e9f80] stream 0 end duration = 1600
[matroska @ 0x31e9f80] stream 1 end duration = 1957
frame=   40 fps= 20 q=-0.0 Lq=-0.0 size=    6630kB time=00:00:01.95
bitrate=27755.2kbits/s
video:38692kB audio:337kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
Input file #0 (alsa_input.pci-0000_00_14.2.analog-stereo):
  Input stream #0:0 (audio): 6 packets read (345372 bytes); 6 frames
decoded (86343 samples);
  Total: 6 packets (345372 bytes) demuxed
Input file #1 (/dev/video0):
  Input stream #1:0 (video): 40 packets read (33177600 bytes); 40 frames
decoded;
  Total: 40 packets (33177600 bytes) demuxed
Output file #0 (/Store3/Test/t_20150830_1901.mkv):
  Output stream #0:0 (video): 40 frames encoded; 40 packets muxed
(6442778 bytes);
  Output stream #0:1 (audio): 6 frames encoded (86343 samples); 6
packets muxed (345372 bytes);
  Total: 46 packets (6788150 bytes) muxed
Output file #1 (Dazzle output):
  Output stream #1:0 (video): 40 frames encoded; 40 packets muxed
(33177600 bytes);
  Total: 40 packets (33177600 bytes) muxed
46 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x31fedc0] Statistics: 44 seeks, 258 writeouts
Conversion failed!

********************************************************************************************************

2nd output
./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -itsoffset -0.15 -i
alsa_input.pci-0000_00_14.2.analog-stereo -f v4l2 -ts mono2abs -channel
1 -video_size 720x576 -pix_fmt yuyv422 -thread_queue_size 512 -i
/dev/video0 -vf
drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max
-c:v ffv1 -level 3 -aspect 4:3 -pix_fmt yuv422p -c:a pcm_s16le
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv -aspect 4:3 -f sdl "Dazzle output"
ffmpeg version N-74714-g47b41fe Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
  configuration: --enable-libpulse --enable-gpl --enable-libx264
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 59.100 / 56. 59.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.100 /  5. 40.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
 matched as AVOption 'debug' with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'pulse'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '44100'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-channel_layout' ... matched as option 'channel_layout'
(set channel layout) with argument 'stereo'.
Reading option '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-itsoffset' ... matched as option 'itsoffset' (set the
input ts offset) with argument '-0.15'.
Reading option '-i' ... matched as input file with argument
'alsa_input.pci-0000_00_14.2.analog-stereo'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'v4l2'.
Reading option '-ts' ... matched as AVOption 'ts' with argument 'mono2abs'.
Reading option '-channel' ... matched as AVOption 'channel' with
argument '1'.
Reading option '-video_size' ... matched as AVOption 'video_size' with
argument '720x576'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuyv422'.
Reading option '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument
'drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max'.
Reading option '-c:v' ... matched as option 'c' (codec name) with
argument 'ffv1'.
Reading option '-level' ... matched as AVOption 'level' with argument '3'.
Reading option '-aspect' ... matched as option 'aspect' (set aspect
ratio (4:3, 16:9 or 1.3333, 1.7777)) with argument '4:3'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuv422p'.
Reading option '-c:a' ... matched as option 'c' (codec name) with
argument 'pcm_s16le'.
Reading option '/Store3/Test/t_20150830_1902.mkv' ... matched as output
file.
Reading option '-aspect' ... matched as option 'aspect' (set aspect
ratio (4:3, 16:9 or 1.3333, 1.7777)) with argument '4:3'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'sdl'.
Reading option 'Dazzle output' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input file
alsa_input.pci-0000_00_14.2.analog-stereo.
Applying option f (force format) with argument pulse.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option ac (set number of audio channels) with argument 2.
Applying option channel_layout (set channel layout) with argument stereo.
Applying option thread_queue_size (set the maximum number of queued
packets from the demuxer) with argument 512.
Applying option itsoffset (set the input ts offset) with argument -0.15.
Successfully parsed a group of options.
Opening an input file: alsa_input.pci-0000_00_14.2.analog-stereo.
[pulse @ 0x329cd20] All info found
Input #0, pulse, from 'alsa_input.pci-0000_00_14.2.analog-stereo':
  Duration: N/A, start: 1440957754.690526, bitrate: 1411 kb/s
    Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 44100 Hz, stereo, s16,
1411 kb/s
Successfully opened the file.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument v4l2.
Applying option pix_fmt (set pixel format) with argument yuyv422.
Applying option thread_queue_size (set the maximum number of queued
packets from the demuxer) with argument 512.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x32a6400] fd:6 capabilities:85220001
[video4linux2,v4l2 @ 0x32a6400] Selecting input_channel: 1
[video4linux2,v4l2 @ 0x32a6400] Current input_channel: 1, input_name:
S-Video, input_std: ffffff
[video4linux2,v4l2 @ 0x32a6400] The V4L2 driver is using the interlaced mode
[video4linux2,v4l2 @ 0x32a6400] Current standard: PAL, id: ff,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x32a6400] Detected monotonic timestamps, converting
[video4linux2,v4l2 @ 0x32a6400] All info found
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1440957755.854032, bitrate: 165888 kb/s
    Stream #1:0, 1, 1/1000000: Video: rawvideo, 1 reference frame (YUY2
/ 0x32595559), yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr,
1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output file /Store3/Test/t_20150830_1902.mkv.
Applying option vf (set video filters) with argument
drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:565:720:11:black at 1:t=max.
Applying option c:v (codec name) with argument ffv1.
Applying option aspect (set aspect ratio (4:3, 16:9 or 1.3333, 1.7777))
with argument 4:3.
Applying option pix_fmt (set pixel format) with argument yuv422p.
Applying option c:a (codec name) with argument pcm_s16le.
Successfully parsed a group of options.
Opening an output file: /Store3/Test/t_20150830_1902.mkv.
Successfully opened the file.
Parsing a group of options: output file Dazzle output.
Applying option aspect (set aspect ratio (4:3, 16:9 or 1.3333, 1.7777))
with argument 4:3.
Applying option f (force format) with argument sdl.
Successfully parsed a group of options.
Opening an output file: Dazzle output.
Successfully opened the file.
detected 8 logical cores
[Parsed_drawbox_0 @ 0x32d01c0] Setting 'x' to value '0'
[Parsed_drawbox_0 @ 0x32d01c0] Setting 'y' to value '0'
[Parsed_drawbox_0 @ 0x32d01c0] Setting 'width' to value '3'
[Parsed_drawbox_0 @ 0x32d01c0] Setting 'height' to value '576'
[Parsed_drawbox_0 @ 0x32d01c0] Setting 'color' to value 'black at 1'
[Parsed_drawbox_0 @ 0x32d01c0] Setting 't' to value 'max'
[Parsed_drawbox_1 @ 0x32d0cc0] Setting 'x' to value '718'
[Parsed_drawbox_1 @ 0x32d0cc0] Setting 'y' to value '0'
[Parsed_drawbox_1 @ 0x32d0cc0] Setting 'width' to value '3'
[Parsed_drawbox_1 @ 0x32d0cc0] Setting 'height' to value '576'
[Parsed_drawbox_1 @ 0x32d0cc0] Setting 'color' to value 'black at 1'
[Parsed_drawbox_1 @ 0x32d0cc0] Setting 't' to value 'max'
[Parsed_drawbox_2 @ 0x32d17c0] Setting 'x' to value '0'
[Parsed_drawbox_2 @ 0x32d17c0] Setting 'y' to value '0'
[Parsed_drawbox_2 @ 0x32d17c0] Setting 'width' to value '720'
[Parsed_drawbox_2 @ 0x32d17c0] Setting 'height' to value '3'
[Parsed_drawbox_2 @ 0x32d17c0] Setting 'color' to value 'black at 1'
[Parsed_drawbox_2 @ 0x32d17c0] Setting 't' to value 'max'
[Parsed_drawbox_3 @ 0x32d2280] Setting 'x' to value '0'
[Parsed_drawbox_3 @ 0x32d2280] Setting 'y' to value '565'
[Parsed_drawbox_3 @ 0x32d2280] Setting 'width' to value '720'
[Parsed_drawbox_3 @ 0x32d2280] Setting 'height' to value '11'
[Parsed_drawbox_3 @ 0x32d2280] Setting 'color' to value 'black at 1'
[Parsed_drawbox_3 @ 0x32d2280] Setting 't' to value 'max'
[graph 0 input from stream 1:0 @ 0x32d2100] Setting 'video_size' to
value '720x576'
[graph 0 input from stream 1:0 @ 0x32d2100] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 1:0 @ 0x32d2100] Setting 'time_base' to value
'1/1000000'
[graph 0 input from stream 1:0 @ 0x32d2100] Setting 'pixel_aspect' to
value '0/1'
[graph 0 input from stream 1:0 @ 0x32d2100] Setting 'sws_param' to value
'flags=2'
[graph 0 input from stream 1:0 @ 0x32d2100] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 1:0 @ 0x32d2100] w:720 h:576 pixfmt:yuyv422
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[format @ 0x32d07c0] compat: called with args=[yuv422p]
[format @ 0x32d07c0] Setting 'pix_fmts' to value 'yuv422p'
[auto-inserted scaler 0 @ 0x32d2740] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x32d2740] w:iw h:ih flags:'bicubic' interl:0
[Parsed_drawbox_0 @ 0x32d01c0] auto-inserting filter 'auto-inserted
scaler 0' between the filter 'graph 0 input from stream 1:0' and the
filter 'Parsed_drawbox_0'
[AVFilterGraph @ 0x32ce560] query_formats: 7 queried, 5 merged, 1
already done, 0 delayed
[auto-inserted scaler 0 @ 0x32d2740] w:720 h:576 fmt:yuyv422 sar:0/1 ->
w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
[Parsed_drawbox_0 @ 0x32d01c0] x:0 y:0 w:3 h:576 color:0x108080FF
[Parsed_drawbox_1 @ 0x32d0cc0] x:718 y:0 w:3 h:576 color:0x108080FF
[Parsed_drawbox_2 @ 0x32d17c0] x:0 y:0 w:720 h:3 color:0x108080FF
[Parsed_drawbox_3 @ 0x32d2280] x:0 y:565 w:720 h:11 color:0x108080FF
[graph 1 input from stream 0:0 @ 0x32d2b20] Setting 'time_base' to value
'1/44100'
[graph 1 input from stream 0:0 @ 0x32d2b20] Setting 'sample_rate' to
value '44100'
[graph 1 input from stream 0:0 @ 0x32d2b20] Setting 'sample_fmt' to
value 's16'
[graph 1 input from stream 0:0 @ 0x32d2b20] Setting 'channel_layout' to
value '0x3'
[graph 1 input from stream 0:0 @ 0x32d2b20] tb:1/44100 samplefmt:s16
samplerate:44100 chlayout:0x3
[audio format for output stream 0:1 @ 0x32f1ce0] Setting 'sample_fmts'
to value 's16'
[AVFilterGraph @ 0x32f24a0] query_formats: 4 queried, 9 merged, 0
already done, 0 delayed
[graph 2 input from stream 1:0 @ 0x32e15a0] Setting 'video_size' to
value '720x576'
[graph 2 input from stream 1:0 @ 0x32e15a0] Setting 'pix_fmt' to value '1'
[graph 2 input from stream 1:0 @ 0x32e15a0] Setting 'time_base' to value
'1/1000000'
[graph 2 input from stream 1:0 @ 0x32e15a0] Setting 'pixel_aspect' to
value '0/1'
[graph 2 input from stream 1:0 @ 0x32e15a0] Setting 'sws_param' to value
'flags=2'
[graph 2 input from stream 1:0 @ 0x32e15a0] Setting 'frame_rate' to
value '25/1'
[graph 2 input from stream 1:0 @ 0x32e15a0] w:720 h:576 pixfmt:yuyv422
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[AVFilterGraph @ 0x32e61e0] query_formats: 3 queried, 2 merged, 0
already done, 0 delayed
[sdl @ 0x32ccf00] w:720 h:576 fmt:yuyv422 -> w:720 h:540
Output #0, matroska, to '/Store3/Test/t_20150830_1902.mkv':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0, 0, 1/1000: Video: ffv1, 1 reference frame (FFV1 /
0x31564646), yuv422p, 720x576 [SAR 16:15 DAR 4:3], 1/25, q=2-31, 200
kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.59.100 ffv1
    Stream #0:1, 0, 1/1000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc56.59.100 pcm_s16le
Output #1, sdl, to 'Dazzle output':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #1:0, 0, 1/25: Video: rawvideo, 1 reference frame (YUY2 /
0x32595559), yuyv422, 720x576 [SAR 16:15 DAR 4:3], 1/25, q=2-31, 200
kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.59.100 rawvideo
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
  Stream #1:0 -> #1:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Cliping frame in rate conversion by 0.000008
[matroska @ 0x32b7fa0] Writing block at offset 965, size 65472, pts 0,
dts 0, duration 371, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 66445, size 128042, pts
150, dts 150, duration 40, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 194495, size 126889, pts
190, dts 190, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 321392, size 128851, pts
230, dts 230, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 450251, size 132005, pts
270, dts 270, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000771
[matroska @ 0x32b7fa0] Writing block at offset 582264, size 133325, pts
310, dts 310, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 715597, size 136660, pts
350, dts 350, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 852265, size 46408, pts
371, dts 371, duration 263, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 898681, size 139036, pts
390, dts 390, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 1037725, size 142060, pts
430, dts 430, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000664
[matroska @ 0x32b7fa0] Writing block at offset 1179793, size 145008, pts
470, dts 470, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 1324809, size 149390, pts
510, dts 510, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 1474207, size 153612, pts
550, dts 550, duration 40, keyframe 0
[matroska @ 0x32b7fa0] Writing block at offset 1627827, size 158884, pts
590, dts 590, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000237
[matroska @ 0x32b7fa0] Starting new cluster at offset 1786719 bytes, pts
630dts 630
[matroska @ 0x32b7fa0] Writing block at offset 1786735, size 163984, pts
630, dts 630, duration 40, keyframe 1
Cliping frame in rate conversion by 0.002144
[matroska @ 0x32b7fa0] Writing block at offset 1950727, size 65472, pts
634, dts 634, duration 371, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 2016207, size 166231, pts
670, dts 670, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000343
[matroska @ 0x32b7fa0] Writing block at offset 2182446, size 168455, pts
710, dts 710, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001335296kB time=00:00:01.08
bitrate=17398.0kbits/s
[matroska @ 0x32b7fa0] Writing block at offset 2350909, size 170894, pts
750, dts 750, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000771
[matroska @ 0x32b7fa0] Writing block at offset 2521811, size 174029, pts
790, dts 790, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000740
[matroska @ 0x32b7fa0] Writing block at offset 2695848, size 177265, pts
830, dts 830, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001015
[matroska @ 0x32b7fa0] Writing block at offset 2873121, size 180840, pts
870, dts 870, duration 40, keyframe 0
Cliping frame in rate conversion by 0.000999
[matroska @ 0x32b7fa0] Writing block at offset 3053969, size 184435, pts
910, dts 910, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001274
[matroska @ 0x32b7fa0] Writing block at offset 3238412, size 189115, pts
950, dts 950, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001472
[matroska @ 0x32b7fa0] Writing block at offset 3427535, size 194021, pts
990, dts 990, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003349
[matroska @ 0x32b7fa0] Writing block at offset 3621564, size 39816, pts
1005, dts 1005, duration 226, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 3661388, size 196507, pts
1030, dts 1030, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001793
[matroska @ 0x32b7fa0] Writing block at offset 3857903, size 126646, pts
1070, dts 1070, duration 40, keyframe 0
Cliping frame in rate conversion by 0.001839
[matroska @ 0x32b7fa0] Starting new cluster at offset 3984557 bytes, pts
1110dts 1110
[matroska @ 0x32b7fa0] Writing block at offset 3984573, size 125084, pts
1110, dts 1110, duration 40, keyframe 1
Cliping frame in rate conversion by 0.002922013kB time=00:00:01.45
bitrate=22642.8kbits/s
[matroska @ 0x32b7fa0] Writing block at offset 4109665, size 125610, pts
1150, dts 1150, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002113
[matroska @ 0x32b7fa0] Writing block at offset 4235283, size 127250, pts
1190, dts 1190, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004097
[matroska @ 0x32b7fa0] Writing block at offset 4362541, size 129957, pts
1230, dts 1230, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002190
[matroska @ 0x32b7fa0] Writing block at offset 4492506, size 65472, pts
1231, dts 1231, duration 371, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 4557986, size 130379, pts
1270, dts 1270, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003838
[matroska @ 0x32b7fa0] Writing block at offset 4688373, size 133608, pts
1310, dts 1310, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004097
[matroska @ 0x32b7fa0] Writing block at offset 4821989, size 136303, pts
1350, dts 1350, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002647
[matroska @ 0x32b7fa0] Writing block at offset 4958300, size 138984, pts
1390, dts 1390, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002724
[matroska @ 0x32b7fa0] Writing block at offset 5097292, size 141864, pts
1430, dts 1430, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004448
[matroska @ 0x32b7fa0] Writing block at offset 5239164, size 145708, pts
1470, dts 1470, duration 40, keyframe 0
Cliping frame in rate conversion by 0.002922
[matroska @ 0x32b7fa0] Writing block at offset 5384880, size 149577, pts
1510, dts 1510, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003822
[matroska @ 0x32b7fa0] Writing block at offset 5534465, size 153623, pts
1550, dts 1550, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003273
[matroska @ 0x32b7fa0] Starting new cluster at offset 5688096 bytes, pts
1590dts 1590
[matroska @ 0x32b7fa0] Writing block at offset 5688112, size 160151, pts
1590, dts 1590, duration 40, keyframe 1
Cliping frame in rate conversion by 0.003548
[matroska @ 0x32b7fa0] Writing block at offset 5848271, size 65472, pts
1602, dts 1602, duration 371, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 5913751, size 161834, pts
1630, dts 1630, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003624
[matroska @ 0x32b7fa0] Writing block at offset 6075593, size 164961, pts
1670, dts 1670, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003639
[matroska @ 0x32b7fa0] Writing block at offset 6240562, size 168331, pts
1710, dts 1710, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003868259kB time=00:00:01.85
bitrate=27714.2kbits/s
[matroska @ 0x32b7fa0] Writing block at offset 6408901, size 170610, pts
1750, dts 1750, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004021
[matroska @ 0x32b7fa0] Writing block at offset 6579519, size 173506, pts
1790, dts 1790, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005989
[matroska @ 0x32b7fa0] Writing block at offset 6753033, size 177690, pts
1830, dts 1830, duration 40, keyframe 0
Cliping frame in rate conversion by 0.003914
[matroska @ 0x32b7fa0] Writing block at offset 6930731, size 180165, pts
1870, dts 1870, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004265
[matroska @ 0x32b7fa0] Writing block at offset 7110904, size 183099, pts
1910, dts 1910, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005867
[matroska @ 0x32b7fa0] Writing block at offset 7294011, size 188966, pts
1950, dts 1950, duration 40, keyframe 0
Cliping frame in rate conversion by 0.006645
[matroska @ 0x32b7fa0] Writing block at offset 7482985, size 4656, pts
1973, dts 1973, duration 26, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 7487648, size 193434, pts
1990, dts 1990, duration 40, keyframe 0
Cliping frame in rate conversion by 0.006111
[matroska @ 0x32b7fa0] Writing block at offset 7681090, size 37296, pts
2000, dts 2000, duration 211, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 7718394, size 194359, pts
2030, dts 2030, duration 40, keyframe 0
Cliping frame in rate conversion by 0.004768
[matroska @ 0x32b7fa0] Starting new cluster at offset 7912761 bytes, pts
2070dts 2070
[matroska @ 0x32b7fa0] Writing block at offset 7912777, size 122385, pts
2070, dts 2070, duration 40, keyframe 1
Cliping frame in rate conversion by 0.005089
[matroska @ 0x32b7fa0] Writing block at offset 8035170, size 120487, pts
2110, dts 2110, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005196
[matroska @ 0x32b7fa0] Writing block at offset 8155665, size 120518, pts
2150, dts 2150, duration 40, keyframe 0
Cliping frame in rate conversion by 0.006920
[matroska @ 0x32b7fa0] Writing block at offset 8276191, size 121325, pts
2190, dts 2190, duration 40, keyframe 0
Cliping frame in rate conversion by 0.007393201kB time=00:00:02.43
bitrate=27623.4kbits/s
[matroska @ 0x32b7fa0] Writing block at offset 8397524, size 65472, pts
2211, dts 2211, duration 371, keyframe 1
[matroska @ 0x32b7fa0] Writing block at offset 8463004, size 121187, pts
2230, dts 2230, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005272
[matroska @ 0x32b7fa0] Writing block at offset 8584199, size 121967, pts
2270, dts 2270, duration 40, keyframe 0
Cliping frame in rate conversion by 0.007347
[matroska @ 0x32b7fa0] Writing block at offset 8706174, size 121498, pts
2310, dts 2310, duration 40, keyframe 0
Cliping frame in rate conversion by 0.007668
[matroska @ 0x32b7fa0] Writing block at offset 8827680, size 121812, pts
2350, dts 2350, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005836
[matroska @ 0x32b7fa0] Writing block at offset 8949500, size 122199, pts
2390, dts 2390, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005791
[matroska @ 0x32b7fa0] Writing block at offset 9071707, size 122670, pts
2430, dts 2430, duration 40, keyframe 0
Cliping frame in rate conversion by 0.006111
[matroska @ 0x32b7fa0] Writing block at offset 9194385, size 122492, pts
2470, dts 2470, duration 40, keyframe 0
Cliping frame in rate conversion by 0.005989
[matroska @ 0x32b7fa0] Writing block at offset 9316885, size 123073, pts
2510, dts 2510, duration 40, keyframe 0
Cliping frame in rate conversion by 0.008064
[matroska @ 0x32b7fa0] Starting new cluster at offset 9439966 bytes, pts
2550dts 2550
[matroska @ 0x32b7fa0] Writing block at offset 9439982, size 124606, pts
2550, dts 2550, duration 40, keyframe 1
av_interleaved_write_frame(): Input/output error
No more output streams to write to, finishing.
[matroska @ 0x32b7fa0] Writing block at offset 9564596, size 65472, pts
2582, dts 2582, duration 371, keyframe 1
[matroska @ 0x32b7fa0] end duration = 2953
[matroska @ 0x32b7fa0] stream 0 end duration = 2590
[matroska @ 0x32b7fa0] stream 1 end duration = 2953
frame=   61 fps= 21 q=-0.0 Lq=-0.0 size=    9404kB time=00:00:02.80
bitrate=27475.6kbits/s
video:58304kB audio:509kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
Input file #0 (alsa_input.pci-0000_00_14.2.analog-stereo):
  Input stream #0:0 (audio): 10 packets read (521008 bytes); 10 frames
decoded (130252 samples);
  Total: 10 packets (521008 bytes) demuxed
Input file #1 (/dev/video0):
  Input stream #1:0 (video): 61 packets read (50595840 bytes); 61 frames
decoded;
  Total: 61 packets (50595840 bytes) demuxed
Output file #0 (/Store3/Test/t_20150830_1902.mkv):
  Output stream #0:0 (video): 61 frames encoded; 61 packets muxed
(9107456 bytes);
  Output stream #0:1 (audio): 10 frames encoded (130252 samples); 10
packets muxed (521008 bytes);
  Total: 71 packets (9628464 bytes) muxed
Output file #1 (Dazzle output):
  Output stream #1:0 (video): 61 frames encoded; 61 packets muxed
(50595840 bytes);
  Total: 61 packets (50595840 bytes) muxed
71 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x32ccde0] Statistics: 56 seeks, 362 writeouts
Conversion failed!



More information about the ffmpeg-user mailing list