advice requested: getting buffer overruns on decklink input with multiple outputs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

advice requested: getting buffer overruns on decklink input with multiple outputs

Dave Rice-3
Hi all,

I’m seeking some advice on this command as on some computers it produces a buffer overrun. This example is with prores/mov but I’ve gotten similar results with ffv1/mkv and v210/mov. In general the goal of this command is to:

- use the decklink input
- filter the input streams to add metadata and adjust the audio arrangement
- save the streams to an ffv1/pcm/mkv file
- save a second output: a framemd5 of the video
- pipe out a copy of the a/v streams to mpv for display

Command:

ffmpeg -loglevel debug -f decklink -draw_bars 0 -audio_input analog -video_input s_video -format_code ntsc -channels 8 -audio_depth 32 -raw_format yuv422p10 -i "Intensity Shuttle" -color_primaries smpte170m -color_trc bt709 -colorspace smpte170m -color_range mpeg -metadata creation_time=now -movflags write_colr -c:v prores_ks -flags +ilme+ildct -c:a pcm_s24le -filter_complex "[0:v:0]setfield=bff,setsar=40/27,setdar=4/3; [0:a:0]pan=stereo| c0=c0 | c1=c1[stereo1];[0:a:0]pan=stereo| c0=c2 | c1=c3[stereo2]" -map "[stereo1]" -map "[stereo2]" -f mov TEST_2_prores.mov -an -f framemd5 TEST_2_prores.framemd5 -c copy -map 0 -f nut -syncpoints none -f_strict experimental -write_index 0 - | mpv -

Below is a debug log of this command running. Shortly into the recording these warnings will start to appear:

        [nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
        [mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10003625 > 10000000: forcing output

Later on decklink buffer overrun errors will appear regularly:
        [decklink @ 0x7fa231803000] Decklink input buffer overrun!

Output (with some trimming to reduce redundancy and line count).

ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
  configuration: --prefix=/usr/local/Cellar/ffmpegdecklink/4.0.1 --disable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-ffplay --enable-libfreetype --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-nonfree --enable-decklink --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/include
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'decklink'.
Reading option '-draw_bars' ... matched as AVOption 'draw_bars' with argument '0'.
Reading option '-audio_input' ... matched as AVOption 'audio_input' with argument 'analog'.
Reading option '-video_input' ... matched as AVOption 'video_input' with argument 's_video'.
Reading option '-format_code' ... matched as AVOption 'format_code' with argument 'ntsc'.
Reading option '-channels' ... matched as AVOption 'channels' with argument '8'.
Reading option '-audio_depth' ... matched as AVOption 'audio_depth' with argument '32'.
Reading option '-raw_format' ... matched as AVOption 'raw_format' with argument 'yuv422p10'.
Reading option '-i' ... matched as input url with argument 'Intensity Shuttle'.
Reading option '-color_primaries' ... matched as AVOption 'color_primaries' with argument 'smpte170m'.
Reading option '-color_trc' ... matched as AVOption 'color_trc' with argument 'bt709'.
Reading option '-colorspace' ... matched as AVOption 'colorspace' with argument 'smpte170m'.
Reading option '-color_range' ... matched as AVOption 'color_range' with argument 'mpeg'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'creation_time=now'.
Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'write_colr'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'prores_ks'.
Reading option '-flags' ... matched as AVOption 'flags' with argument '+ilme+ildct'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_s24le'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument '[0:v:0]setfield=bff,setsar=40/27,setdar=4/3; [0:a:0]pan=stereo| c0=c0 | c1=c1[stereo1];[0:a:0]pan=stereo| c0=c2 | c1=c3[stereo2]'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '[stereo1]'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '[stereo2]'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mov'.
Reading option 'TEST_2_prores.mov' ... matched as output url.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'framemd5'.
Reading option 'TEST_2_prores.framemd5' ... matched as output url.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'nut'.
Reading option '-syncpoints' ... matched as AVOption 'syncpoints' with argument 'none'.
Reading option '-f_strict' ... matched as AVOption 'f_strict' with argument 'experimental'.
Reading option '-write_index' ... matched as AVOption 'write_index' with argument '0'.
Reading option '-' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option filter_complex (create a complex filtergraph) with argument [0:v:0]setfield=bff,setsar=40/27,setdar=4/3; [0:a:0]pan=stereo| c0=c0 | c1=c1[stereo1];[0:a:0]pan=stereo| c0=c2 | c1=c3[stereo2].
Successfully parsed a group of options.
Parsing a group of options: input url Intensity Shuttle.
Applying option f (force format) with argument decklink.
Successfully parsed a group of options.
Opening an input file: Intensity Shuttle.
[decklink @ 0x7fa231803000] Trying to find mode for frame size 0x0, frame timing 0/0, field order 0, direction 0, mode number 0, format code ntsc
[decklink @ 0x7fa231803000] Found Decklink mode 720 x 486 with rate 29.97(i)
[decklink @ 0x7fa231803000] Using 8 input audio channels
[decklink @ 0x7fa231803000] Frame received (#1) - No input signal detected - Frames dropped 1
[decklink @ 0x7fa231803000] Non-increasing DTS in stream 0: packet 2 with DTS 0, packet 3 with DTS 0
[decklink @ 0x7fa231803000] Non-increasing DTS in stream 0: packet 3 with DTS 0, packet 4 with DTS 0
[decklink @ 0x7fa231803000] Non-increasing DTS in stream 0: packet 4 with DTS 0, packet 5 with DTS 0
[decklink @ 0x7fa231803000] Non-increasing DTS in stream 0: packet 5 with DTS 0, packet 6 with DTS 0
[decklink @ 0x7fa231803000] Frame received (#9) - Input returned - Frames dropped 2
[decklink @ 0x7fa231803000] Non-increasing DTS in stream 0: packet 6 with DTS 0, packet 7 with DTS 0
[decklink @ 0x7fa231803000] Non-increasing DTS in stream 0: packet 7 with DTS 0, packet 8 with DTS 0
[decklink @ 0x7fa231803000] Probe buffer size limit of 5000000 bytes reached
Guessed Channel Layout for Input Stream #0.0 : 7.1
Input #0, decklink, from 'Intensity Shuttle':
  Duration: N/A, start: 0.000000, bitrate: 236013 kb/s
    Stream #0:0, 9, 1/1000000: Audio: pcm_s32le, 48000 Hz, 7.1, s32, 12288 kb/s
    Stream #0:1, 6, 1/1000000: Video: v210, 1 reference frame (V210 / 0x30313256), yuv422p10le(bottom first), 720x486, 0/1, 223725 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
[Parsed_setfield_0 @ 0x7fa231602d00] Setting 'mode' to value 'bff'
[Parsed_setsar_1 @ 0x7fa231603040] Setting 'sar' to value '40/27'
[Parsed_setdar_2 @ 0x7fa231603440] Setting 'dar' to value '4/3'
[Parsed_pan_3 @ 0x7fa231603980] Setting 'args' to value 'stereo| c0=c0 | c1=c1'
[Parsed_pan_4 @ 0x7fa231603f40] Setting 'args' to value 'stereo| c0=c2 | c1=c3'
Parsing a group of options: output url TEST_2_prores.mov.
Applying option metadata (add metadata) with argument creation_time=now.
Applying option c:v (codec name) with argument prores_ks.
Applying option c:a (codec name) with argument pcm_s24le.
Applying option map (set input stream mapping) with argument [stereo1].
Applying option map (set input stream mapping) with argument [stereo2].
Applying option f (force format) with argument mov.
Successfully parsed a group of options.
Opening an output file: TEST_2_prores.mov.
[file @ 0x7fa2315025c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Parsing a group of options: output url TEST_2_prores.framemd5.
Applying option an (disable audio) with argument 1.
Applying option f (force format) with argument framemd5.
Successfully parsed a group of options.
Opening an output file: TEST_2_prores.framemd5.
[file @ 0x7fa231414740] Setting default whitelist 'file,crypto'
Successfully opened the file.
Parsing a group of options: output url -.
Applying option c (codec name) with argument copy.
Applying option map (set input stream mapping) with argument 0.
Applying option f (force format) with argument nut.
Successfully parsed a group of options.
Opening an output file: -.
[pipe @ 0x7fa231707e00] Setting default whitelist 'crypto'
Successfully opened the file.
Output #2, nut, to 'pipe:':
  Metadata:
    encoder         : Lavf58.12.100
    Stream #2:0, 0, 1/48000: Audio: pcm_s32le (PSD  / 0x20445350), 48000 Hz, 7.1, s32, 12288 kb/s
    Stream #2:1, 0, 1/1000000: Video: v210, 1 reference frame (V210 / 0x30313256), yuv422p10le(bottom first), 720x486 (0x0), 0/1, q=2-31, 223725 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 (pcm_s32le) -> pan (graph 0)
  Stream #0:0 (pcm_s32le) -> pan (graph 0)
  Stream #0:1 (v210) -> setfield (graph 0)
  setdar (graph 0) -> Stream #0:0 (prores_ks)
  pan (graph 0) -> Stream #0:1 (pcm_s24le)
  pan (graph 0) -> Stream #0:2 (pcm_s24le)
  Stream #0:1 -> #1:0 (v210 (native) -> rawvideo (native))
  Stream #0:0 -> #2:0 (copy)
  Stream #0:1 -> #2:1 (copy)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
detected 4 logical cores
[graph 1 input from stream 0:1 @ 0x7fa231602d40] Setting 'video_size' to value '720x486'
[graph 1 input from stream 0:1 @ 0x7fa231602d40] Setting 'pix_fmt' to value '66'
[graph 1 input from stream 0:1 @ 0x7fa231602d40] Setting 'time_base' to value '1/1000000'
[graph 1 input from stream 0:1 @ 0x7fa231602d40] Setting 'pixel_aspect' to value '0/1'
[graph 1 input from stream 0:1 @ 0x7fa231602d40] Setting 'sws_param' to value 'flags=2'
[graph 1 input from stream 0:1 @ 0x7fa231602d40] Setting 'frame_rate' to value '30000/1001'
[graph 1 input from stream 0:1 @ 0x7fa231602d40] w:720 h:486 pixfmt:yuv422p10le tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2
[AVFilterGraph @ 0x7fa231603500] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
Output #1, framemd5, to 'TEST_2_prores.framemd5':
  Metadata:
    encoder         : Lavf58.12.100
    Stream #1:0, 0, 1001/30000: Video: rawvideo, 1 reference frame (Y3[10][10] / 0xA0A3359), yuv422p10le, 720x486, 0/1, q=2-31, 209742 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc58.18.100 rawvideo
Clipping frame in rate conversion by 0.000008
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_setfield_0 @ 0x7fa231709f80] Setting 'mode' to value 'bff'
[Parsed_setsar_1 @ 0x7fa231709b80] Setting 'sar' to value '40/27'
[Parsed_setdar_2 @ 0x7fa23170a640] Setting 'dar' to value '4/3'
[Parsed_pan_3 @ 0x7fa23170aa80] Setting 'args' to value 'stereo| c0=c0 | c1=c1'
[Parsed_pan_4 @ 0x7fa23170ae00] Setting 'args' to value 'stereo| c0=c2 | c1=c3'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] Setting 'video_size' to value '720x486'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] Setting 'pix_fmt' to value '66'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] Setting 'time_base' to value '1/1000000'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] Setting 'frame_rate' to value '30000/1001'
[graph 0 input from stream 0:1 @ 0x7fa23170b140] w:720 h:486 pixfmt:yuv422p10le tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2
[graph_0_in_0_0 @ 0x7fa231504000] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 0x7fa231504000] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 0x7fa231504000] Setting 'sample_fmt' to value 's32'
[graph_0_in_0_0 @ 0x7fa231504000] Setting 'channel_layout' to value '0x63f'
[graph_0_in_0_0 @ 0x7fa231504000] tb:1/48000 samplefmt:s32 samplerate:48000 chlayout:0x63f
[graph_0_in_0_0 @ 0x7fa231504440] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 0x7fa231504440] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 0x7fa231504440] Setting 'sample_fmt' to value 's32'
[graph_0_in_0_0 @ 0x7fa231504440] Setting 'channel_layout' to value '0x63f'
[graph_0_in_0_0 @ 0x7fa231504440] tb:1/48000 samplefmt:s32 samplerate:48000 chlayout:0x63f
[format_out_0_2 @ 0x7fa231504a80] Setting 'sample_fmts' to value 's32'
[format_out_0_1 @ 0x7fa2315052c0] Setting 'sample_fmts' to value 's32'
[format @ 0x7fa231505b40] Setting 'pix_fmts' to value 'yuv422p10le|yuv444p10le|yuva444p10le'
[AVFilterGraph @ 0x7fa231709680] query_formats: 14 queried, 23 merged, 0 already done, 0 delayed
[Parsed_pan_4 @ 0x7fa23170ae00] [SWR @ 0x7fa23300e200] Using s32p internally between filters
[Parsed_pan_4 @ 0x7fa23170ae00] o0 = 0 i0 + 0 i1 + 1 i2 + 0 i3 + 0 i4 + 0 i5 + 0 i6 + 0 i7
[Parsed_pan_4 @ 0x7fa23170ae00] o1 = 0 i0 + 0 i1 + 0 i2 + 1 i3 + 0 i4 + 0 i5 + 0 i6 + 0 i7
[Parsed_pan_4 @ 0x7fa23170ae00] Pure channel mapping detected: 2 3
[Parsed_pan_3 @ 0x7fa23170aa80] [SWR @ 0x7fa233023200] Using s32p internally between filters
[Parsed_pan_3 @ 0x7fa23170aa80] o0 = 1 i0 + 0 i1 + 0 i2 + 0 i3 + 0 i4 + 0 i5 + 0 i6 + 0 i7
[Parsed_pan_3 @ 0x7fa23170aa80] o1 = 0 i0 + 1 i1 + 0 i2 + 0 i3 + 0 i4 + 0 i5 + 0 i6 + 0 i7
[Parsed_pan_3 @ 0x7fa23170aa80] Pure channel mapping detected: 0 1
[Parsed_setsar_1 @ 0x7fa231709b80] w:720 h:486 sar:0/1 dar:40/27 -> sar:40/27 dar:1600/729
[Parsed_setdar_2 @ 0x7fa23170a640] w:720 h:486 dar:1600/729 sar:40/27 -> dar:4/3 sar:9/10
[prores_ks @ 0x7fa23300dc00] Autoselected HQ profile to keep best quality. It can be overridden through -profile option.
[prores_ks @ 0x7fa23300dc00] profile 3, 224 slices, interlacing: yes, 1566 bits per MB
[prores_ks @ 0x7fa23300dc00] frame size upper bound: 354350
[prores_ks @ 0x7fa23305d600] Autoselected HQ profile to keep best quality. It can be overridden through -profile option.
[prores_ks @ 0x7fa23305d600] profile 3, 224 slices, interlacing: yes, 1566 bits per MB
[prores_ks @ 0x7fa23305d600] frame size upper bound: 354350
[prores_ks @ 0x7fa233067400] Autoselected HQ profile to keep best quality. It can be overridden through -profile option.
[prores_ks @ 0x7fa233067400] profile 3, 224 slices, interlacing: yes, 1566 bits per MB
[prores_ks @ 0x7fa233067400] frame size upper bound: 354350
[prores_ks @ 0x7fa233071200] Autoselected HQ profile to keep best quality. It can be overridden through -profile option.
[prores_ks @ 0x7fa233071200] profile 3, 224 slices, interlacing: yes, 1566 bits per MB
[prores_ks @ 0x7fa233071200] frame size upper bound: 354350
[prores_ks @ 0x7fa231801000] Autoselected HQ profile to keep best quality. It can be overridden through -profile option.
[prores_ks @ 0x7fa231801000] profile 3, 224 slices, interlacing: yes, 1566 bits per MB
[prores_ks @ 0x7fa231801000] frame size upper bound: 354350
Clipping frame in rate conversion by 0.000008
Output #0, mov, to 'TEST_2_prores.mov':
  Metadata:
    creation_time   : now
    encoder         : Lavf58.12.100
    Stream #0:0, 0, 1/30000: Video: prores (prores_ks), 1 reference frame (apch / 0x68637061), yuv422p10le(tv, smpte170m/smpte170m/bt709, bottom coded first (swapped)), 720x486 [SAR 9:10 DAR 4:3], 0/1, q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default)
    Metadata:
      encoder         : Apple ProRes 422
    Stream #0:1, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s
    Metadata:
      encoder         : Lavc58.18.100 pcm_s24le
    Stream #0:2, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s
    Metadata:
      encoder         : Lavc58.18.100 pcm_s24le
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Clipping frame in rate conversion by 0.000023
    Last message repeated 1 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)

[..]

[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 302, current: 0; changing to 303. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 302, current: 0; changing to 303. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 302, current: 0; changing to 303. This may result in incorrect timestamps in the output file.
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
Clipping frame in rate conversion by 0.000023
    Last message repeated 1 times
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 303, current: 0; changing to 304. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 303, current: 0; changing to 304. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 303, current: 0; changing to 304. This may result in incorrect timestamps in the output file.
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 304, current: 0; changing to 305. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 304, current: 0; changing to 305. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 304, current: 0; changing to 305. This may result in incorrect timestamps in the output file.
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 305, current: 0; changing to 306. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 305, current: 0; changing to 306. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 305, current: 0; changing to 306. This may result in incorrect timestamps in the output file.
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
Clipping frame in rate conversion by 0.000023
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10003625 > 10000000: forcing output
Clipping frame in rate conversion by 0.000023
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 306, current: 0; changing to 307. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 306, current: 0; changing to 307. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10003604 > 10000000: forcing output
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 306, current: 0; changing to 307. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10003604 > 10000000: forcing output
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 307, current: 0; changing to 308. This may result in incorrect timestamps in the output file.

[...]

[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 47584358 > 10000000: forcing output
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 1433, current: 0; changing to 1434. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 47584358 > 10000000: forcing output
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
[decklink @ 0x7fa231803000] Decklink input buffer overrun!
    Last message repeated 2 times
Clipping frame in rate conversion by 0.000023
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
Clipping frame in rate conversion by 0.000023
[decklink @ 0x7fa231803000] Decklink input buffer overrun!
    Last message repeated 1 times
[nut @ 0x7fa232873400] Non-monotonous DTS in output stream 2:0; previous: 1434, current: 0; changing to 1435. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:1; previous: 1434, current: 0; changing to 1435. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 47617704 > 10000000: forcing output
[mov @ 0x7fa232003c00] Non-monotonous DTS in output stream 0:2; previous: 1434, current: 0; changing to 1435. This may result in incorrect timestamps in the output file.
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 47617704 > 10000000: forcing output
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
[decklink @ 0x7fa231803000] Decklink input buffer overrun!

[...]

[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 80696770 > 10000000: forcing output
[nut @ 0x7fa232873400] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
[decklink @ 0x7fa231803000] Decklink input buffer overrun!
    Last message repeated 5 times
av_interleaved_write_frame(): Broken pipe
No more output streams to write to, finishing.
[mov @ 0x7fa232003c00] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output
    Last message repeated 3 times
[decklink @ 0x7fa231803000] Decklink input buffer overrun!
    Last message repeated 11 times
Error writing trailer of pipe:: Broken pipe
frame= 2425 fps= 16 q=-0.0 Lq=-0.0 q=-1.0 size=  704241kB time=00:01:20.91 bitrate=71299.5kbits/s dup=1 drop=0 speed=0.537x    
video:6181729kB audio:166883kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (Intensity Shuttle):
  Input stream #0:0 (audio): 2428 packets read (124281984 bytes); 2428 frames decoded (3883812 samples);
  Input stream #0:1 (video): 2425 packets read (2262816000 bytes); 2425 frames decoded;
  Total: 4853 packets (2387097984 bytes) demuxed
Output file #0 (TEST_2_prores.mov):
  Output stream #0:0 (video): 2425 frames encoded; 2425 packets muxed (674449918 bytes);
  Output stream #0:1 (audio): 2428 frames encoded (3883812 samples); 2428 packets muxed (23302872 bytes);
  Output stream #0:2 (audio): 2428 frames encoded (3883812 samples); 2428 packets muxed (23302872 bytes);
  Total: 7281 packets (721055662 bytes) muxed
Output file #1 (TEST_2_prores.framemd5):
  Output stream #1:0 (video): 2424 frames encoded; 2424 packets muxed (3392824320 bytes);
  Total: 2424 packets (3392824320 bytes) muxed
Output file #2 (pipe:):
  Output stream #2:0 (audio): 2428 packets muxed (124281984 bytes);
  Output stream #2:1 (video): 2425 packets muxed (2262816000 bytes);
  Total: 4853 packets (2387097984 bytes) muxed
4853 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x7fa231604000] Statistics: 2 seeks, 9706 writeouts
[AVIOContext @ 0x7fa231706440] Statistics: 0 seeks, 2425 writeouts
[AVIOContext @ 0x7fa231707f80] Statistics: 0 seeks, 66505 writeouts
[decklink @ 0x7fa231803000] Decklink input buffer overrun!
    Last message repeated 3 times
Conversion failed!

In the output files, the quicktime file will be missing audio and video frames corresponding with the buffer overrun errors. Also the framemd5 will be missing frames, so the reported timestamps within the framemd5 will not follow an incremental pattern as expected with a CFR input, but some frames will be missing.

I’m interested in any recommendations for fine-tuning this command to produce the same results (simultaneous a/v file output + framemd5 output + pipe to a separate playback application).

Best Regards,
Dave Rice


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: advice requested: getting buffer overruns on decklink input with multiple outputs

Carl Eugen Hoyos-2
2018-07-30 20:28 GMT+02:00 Dave Rice <[hidden email]>:

> frame= 2425 fps= 16 q=-0.0 Lq=-0.0 q=-1.0 size=  704241kB time=00:01:20.91 bitrate=71299.5kbits/s dup=1 drop=0 speed=0.537x

This means your system is not fast enough to encode the input stream
in real-time.

Please test the other prores encoder, tests to port the missing features exist.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".