[FFmpeg-user] Could not write header for output file #0 (incorrect codec parameters ?)

MrNice wxcvbn2006 at iol.ie
Sun Jul 26 14:09:51 CEST 2015



On 26/07/15 11:27, Carl Eugen Hoyos wrote:
> MrNice <wxcvbn2006 <at> iol.ie> writes:
> 
>> I tried -ts abs then -ts mono2abs, (wallclock is the same as abs)
>>
>> Duration: N/A, start: 1437900701.356327
>> Duration: N/A, start: 1437900702.504357
> 
> This looks correct to me...
> 
> Carl Eugen
> 

But the error messages are still here:
Past duration 0.802895 too large
*** dropping frame 10 from stream 0 at ts 8
Cliping frame in rate conversion by


./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 -pix_fmt yuyv422 -thread_queue_size 512 -i
/dev/video0 -c:v ffv1 -pix_fmt yuv422p -c:a pcm_s16le
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv
ffmpeg version N-73832-g736a386 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. 28.100 / 54. 28.100
  libavcodec     56. 49.101 / 56. 49.101
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 25.100 /  5. 25.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 '-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 '-c:v' ... matched as option 'c' (codec name) with
argument 'ffv1'.
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_20150726_0953.mkv' ... 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 @ 0x34d3200] All info found
Input #0, pulse, from 'alsa_input.pci-0000_00_14.2.analog-stereo':
  Duration: N/A, start: 1437900797.180740, 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 @ 0x34ebfc0] fd:6 capabilities:85220001
[video4linux2,v4l2 @ 0x34ebfc0] Selecting input_channel: 1
[video4linux2,v4l2 @ 0x34ebfc0] Current input_channel: 1, input_name:
S-Video, input_std: ffffff
[video4linux2,v4l2 @ 0x34ebfc0] Querying the device for the current
frame size
[video4linux2,v4l2 @ 0x34ebfc0] Setting frame size to 720x576
[video4linux2,v4l2 @ 0x34ebfc0] The V4L2 driver is using the interlaced mode
[video4linux2,v4l2 @ 0x34ebfc0] Current standard: PAL, id: ff,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x34ebfc0] Detected monotonic timestamps, converting
[video4linux2,v4l2 @ 0x34ebfc0] All info found
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1437900798.315291, 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_20150726_0953.mkv.
Applying option c:v (codec name) with argument ffv1.
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_20150726_0953.mkv.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 1:0 @ 0x34d2dc0] Setting 'video_size' to
value '720x576'
[graph 0 input from stream 1:0 @ 0x34d2dc0] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 1:0 @ 0x34d2dc0] Setting 'time_base' to value
'1/1000000'
[graph 0 input from stream 1:0 @ 0x34d2dc0] Setting 'pixel_aspect' to
value '0/1'
[graph 0 input from stream 1:0 @ 0x34d2dc0] Setting 'sws_param' to value
'flags=2'
[graph 0 input from stream 1:0 @ 0x34d2dc0] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 1:0 @ 0x34d2dc0] w:720 h:576 pixfmt:yuyv422
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[format @ 0x34c8940] compat: called with args=[yuv422p]
[format @ 0x34c8940] Setting 'pix_fmts' to value 'yuv422p'
[auto-inserted scaler 0 @ 0x34be8c0] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0x34be8c0] w:iw h:ih flags:'0x4' interl:0
[format @ 0x34c8940] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x34b4a40] query_formats: 4 queried, 2 merged, 1
already done, 0 delayed
[auto-inserted scaler 0 @ 0x34be8c0] w:720 h:576 fmt:yuyv422 sar:0/1 ->
w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
[graph 1 input from stream 0:0 @ 0x34cb8a0] Setting 'time_base' to value
'1/44100'
[graph 1 input from stream 0:0 @ 0x34cb8a0] Setting 'sample_rate' to
value '44100'
[graph 1 input from stream 0:0 @ 0x34cb8a0] Setting 'sample_fmt' to
value 's16'
[graph 1 input from stream 0:0 @ 0x34cb8a0] Setting 'channel_layout' to
value '0x3'
[graph 1 input from stream 0:0 @ 0x34cb8a0] tb:1/44100 samplefmt:s16
samplerate:44100 chlayout:0x3
[audio format for output stream 0:1 @ 0x34ce300] Setting 'sample_fmts'
to value 's16'
[AVFilterGraph @ 0x34beae0] query_formats: 4 queried, 9 merged, 0
already done, 0 delayed
Output #0, matroska, to '/Store3/Test/t_20150726_0953.mkv':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0, 0, 1/1000: Video: ffv1, 1 reference frame (FFV1 /
0x31564646), yuv422p, 720x576, 1/25, q=2-31, 200 kb/s, 25 fps, 1k tbn,
25 tbc
    Metadata:
      encoder         : Lavc56.49.101 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.49.101 pcm_s16le
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Cliping frame in rate conversion by 0.000008
Cliping frame in rate conversion by 0.199272
[matroska @ 0x34edb00] Writing block at offset 777, size 82714, pts 0,
dts 0, duration 40, keyframe 1
[matroska @ 0x34edb00] Writing block at offset 83499, size 65472, pts 0,
dts 0, duration 371, keyframe 1
[matroska @ 0x34edb00] Writing block at offset 148979, size 82095, pts
40, dts 40, duration 40, keyframe 0
Cliping frame in rate conversion by 0.399422
[matroska @ 0x34edb00] Writing block at offset 231082, size 82224, pts
80, dts 80, duration 40, keyframe 0
Cliping frame in rate conversion by 0.401085
[matroska @ 0x34edb00] Writing block at offset 313314, size 82039, pts
120, dts 120, duration 40, keyframe 0
Past duration 0.602638 too large
[matroska @ 0x34edb00] Writing block at offset 395361, size 82023, pts
160, dts 160, duration 40, keyframe 0
Past duration 0.800743 too large
[matroska @ 0x34edb00] Writing block at offset 477392, size 82236, pts
200, dts 200, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 559636, size 82390, pts
240, dts 240, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 642034, size 82016, pts
280, dts 280, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 724058, size 82066, pts
320, dts 320, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 806132, size 82267, pts
360, dts 360, duration 40, keyframe 0
Past duration 0.802895 too large
*** dropping frame 10 from stream 0 at ts 8
[matroska @ 0x34edb00] Writing block at offset 888407, size 46484, pts
371, dts 371, duration 264, keyframe 1
[matroska @ 0x34edb00] Writing block at offset 934899, size 82387, pts
400, dts 400, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 1017294, size 82515, pts
440, dts 440, duration 40, keyframe 0
[matroska @ 0x34edb00] Starting new cluster at offset 1099817 bytes, pts
480dts 480
[matroska @ 0x34edb00] Writing block at offset 1099833, size 83036, pts
480, dts 480, duration 40, keyframe 1
[matroska @ 0x34edb00] Writing block at offset 1182877, size 85314, pts
520, dts 520, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 1268199, size 85262, pts
560, dts 560, duration 40, keyframe 0
Past duration 0.801949 too large
*** dropping frame 15 from stream 0 at ts 13
[matroska @ 0x34edb00] Writing block at offset 1353469, size 82347, pts
600, dts 600, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 1435824, size 65472, pts
634, dts 634, duration 371, keyframe 1
[matroska @ 0x34edb00] Writing block at offset 1501304, size 82318, pts
640, dts 640, duration 40, keyframe 0
[matroska @ 0x34edb00] Writing block at offset 1583630, size 82121, pts
680, dts 680,


More information about the ffmpeg-user mailing list