[FFmpeg-user] Lost audio stream

Tung Tran tung.tran at v247.com
Tue Jun 13 18:43:47 EEST 2017


Dear all

I am seeking for helps with my issue of losing audio streams when receiving
signal from Decklink SDI input, on rtmp outout, the audio stream was
missing after couple seconds, but I check on SDI then audio was normal.

Below is my command :

 ffmpeg -format_code Hi59 -video_input sdi -audio_input embedded -channels
2 -f decklink -i DeckLink SDI 4K -filter_complex
[0:v]split=2[in1][in2];[in1]scale=1280:-1,format=yuv420p[
out1];[in2]thumbnail,scale=480:270,fps=1/2[out2] -map [out1] -map 0:a
-framerate 30 -c:v libx264 -tune zerolatency -crf 20 -preset veryfast
-profile:v high422 -aspect 16:9 -r 29.97 -g 60 -vb 2000k -c:a aac -ab 128k
-ar 48000 -f flv rtmp://x.x.x.x:1935/live/hou-std1-ff -map [out2] -y -f
image2 -update 1 /tmp/thumb/58e8032c9db24f9b35c4bbed.jpg


Log:

ffmpeg version N-85600-g9ef21a8 Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
  configuration: --prefix=/opt/ffmpeg --extra-cflags='-I$/opt/ffmpeg/include'
--extra-ldflags='-L/opt/ffmpeg/lib -ldl' --bindir=/opt/ffmpeg/bin --pkg
-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk_aac
--enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libx265 --enable-decklink
--extra-cflags=-I/root/ffmpeg_source/Blackmagic_DeckLink_
SDK_10.8.6/Linux/includ
e --extra-ldflags=-L/root/ffmpeg_source/Blackmagic_
DeckLink_SDK_10.8.6/Linux/include
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 93.100 / 57. 93.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 85.100 /  6. 85.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100

[decklink @ 0x3d28d80] Found Decklink mode 1920 x 1080 with rate 29.97(i)

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink SDI 4K':
  Duration: N/A, start: 0.000000, bitrate: 995869 kb/s

    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080,
994333 kb/s, 29.97 tbr, 1000k tbn, 1000k tbc

Stream mapping:
  Stream #0:1 (rawvideo) -> split (graph 0)
  format (graph 0) -> Stream #0:0 (libx264)
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
  fps (graph 0) -> Stream #1:0 (mjpeg)
Press [q] to stop, [?] for help

[swscaler @ 0x3e403a0] deprecated pixel format used, make sure you did set
range correctly

[libx264 @ 0x3d43fc0] using SAR=1/1

[libx264 @ 0x3d43fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2

[libx264 @ 0x3d43fc0] profile High, level 3.1

[libx264 @ 0x3d43fc0] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft
2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblo
ck=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11
fast_psk
ip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1
slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0
bfra
mes=0 weightp=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc=crf
mbtree=0 crf=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1
.00

Output #1, image2, to '/tmp/thumb/58e8032c9db24f9b35c4bbed.jpg':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #1:0: Video: mjpeg, yuvj444p(pc), 480x270, q=2-31, 200 kb/s,
0.50 fps, 0.50 tbn, 0.50 tbc

    Metadata:
      encoder         : Lavc57.93.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1

Output #0, flv, to 'rtmp://x.x.x.x:1935/live/hou-std1-ff':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007),
yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s,
29.97 fps, 1k
tbn, 29.97 tbc
    Metadata:
      encoder         :
Lavc57.93.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz,
stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc57.93.100 aac

frame=    3 fps=0.0 q=24.0 q=0.0 size=     119kB time=00:00:00.06
bitrate=14334.2kbits/s speed=0.125x
frame=   12 fps= 11 q=23.0 q=0.0 size=     236kB time=00:00:00.36
bitrate=5261.7kbits/s speed=0.346x
frame=   21 fps= 13 q=23.0 q=0.0 size=     359kB time=00:00:00.66
bitrate=4397.1kbits/s speed=0.423x
frame=   30 fps= 14 q=23.0 q=0.0 size=     482kB time=00:00:00.96
bitrate=4071.3kbits/s speed=0.463x
frame=   39 fps= 15 q=23.0 q=0.0 size=     606kB time=00:00:01.26
bitrate=3910.9kbits/s speed=0.486x
frame=   48 fps= 15 q=23.0 q=0.0 size=     746kB time=00:00:01.56
bitrate=3893.9kbits/s speed=0.503x
frame=   57 fps= 16 q=23.0 q=0.0 size=     873kB time=00:00:01.87
bitrate=3823.7kbits/s speed=0.515x
frame=   65 fps= 16 q=23.0 q=0.0 size=    1035kB time=00:00:02.13
bitrate=3969.0kbits/s speed=0.515x
frame=   74 fps= 16 q=23.0 q=0.0 size=    1164kB time=00:00:02.43
bitrate=3913.1kbits/s speed=0.523x
frame=   83 fps= 16 q=23.0 q=0.0 size=    1297kB time=00:00:02.73
bitrate=3881.8kbits/s speed=0.529x
frame=   92 fps= 16 q=23.0 q=0.0 size=    1423kB time=00:00:03.03
bitrate=3838.6kbits/s speed=0.534x
[Parsed_thumbnail_3 @ 0x3d4fa20] frame id #64 (pts_time=2.135466) selected
from a set of 100 images

frame=  101 fps= 16 q=23.0 q=0.0 size=    1547kB time=00:00:03.33
bitrate=3795.7kbits/s speed=0.537x
frame=  111 fps= 17 q=23.0 q=0.0 size=    1687kB time=00:00:03.67
bitrate=3765.5kbits/s speed=0.547x
frame=  120 fps= 17 q=23.0 q=0.0 size=    1817kB time=00:00:03.97
bitrate=3747.9kbits/s speed=0.548x
frame=  129 fps= 17 q=23.0 q=0.0 size=    2007kB time=00:00:04.27
bitrate=3848.1kbits/s speed=0.548x
frame=  139 fps= 17 q=23.0 q=0.0 size=    2149kB time=00:00:04.60
bitrate=3821.4kbits/s speed=0.552x
frame=  149 fps= 17 q=23.0 q=0.0 size=    2273kB time=00:00:04.93
bitrate=3770.0kbits/s speed=0.558x
frame=  158 fps= 17 q=23.0 q=0.0 size=    2426kB time=00:00:05.24
bitrate=3792.0kbits/s speed=0.558x
frame=  168 fps= 17 q=23.0 q=0.0 size=    2541kB time=00:00:05.57
bitrate=3734.5kbits/s speed=0.564x
frame=  177 fps= 17 q=23.0 q=0.0 size=    2683kB time=00:00:05.87
bitrate=3741.5kbits/s speed=0.563x
frame=  186 fps= 17 q=23.0 q=0.0 size=    2872kB time=00:00:06.17
bitrate=3810.5kbits/s speed=0.565x
frame=  196 fps= 17 q=23.0 q=0.0 size=    3011kB time=00:00:06.50
bitrate=3789.9kbits/s speed=0.567x
[Parsed_thumbnail_3 @ 0x3d4fa20] frame id #56 (pts_time=5.205200) selected
from a set of 100 images

frame=  205 fps= 17 q=23.0 q=1.6 size=    3133kB time=00:00:06.80
bitrate=3770.0kbits/s dup=1 drop=0 speed=0.568x
frame=  215 fps= 17 q=23.0 q=1.6 size=    3273kB time=00:00:07.14
bitrate=3754.2kbits/s dup=1 drop=0 speed=0.57x
frame=  225 fps= 17 q=23.0 q=1.6 size=    3414kB time=00:00:07.47
bitrate=3741.0kbits/s dup=1 drop=0 speed=0.572x
frame=  235 fps= 17 q=23.0 q=1.6 size=    3554kB time=00:00:07.80
bitrate=3728.2kbits/s dup=1 drop=0 speed=0.575x
frame=  245 fps= 17 q=23.0 q=1.6 size=    3762kB time=00:00:08.14
bitrate=3785.0kbits/s dup=1 drop=0 speed=0.576x
frame=  255 fps= 17 q=23.0 q=1.6 size=    3900kB time=00:00:08.47
bitrate=3769.4kbits/s dup=1 drop=0 speed=0.578x
frame=  265 fps= 17 q=23.0 q=1.6 size=    4037kB time=00:00:08.81
bitrate=3753.4kbits/s dup=1 drop=0 speed=0.58x
frame=  275 fps= 18 q=23.0 q=1.6 size=    4193kB time=00:00:09.14
bitrate=3757.1kbits/s dup=1 drop=0 speed=0.582x
frame=  285 fps= 18 q=23.0 q=1.6 size=    4316kB time=00:00:09.47
bitrate=3730.9kbits/s dup=1 drop=0 speed=0.584x
frame=  295 fps= 18 q=23.0 q=1.6 size=    4453kB time=00:00:09.81
bitrate=3718.5kbits/s dup=1 drop=0 speed=0.585x
[Parsed_thumbnail_3 @ 0x3d4fa20] frame id #52 (pts_time=8.408400) selected
from a set of 100 images

frame=  305 fps= 18 q=23.0 q=1.6 size=    4649kB time=00:00:10.14
bitrate=3754.7kbits/s dup=1 drop=0 speed=0.587x
frame=  314 fps= 18 q=23.0 q=1.6 size=    4801kB time=00:00:10.44
bitrate=3765.4kbits/s dup=1 drop=0 speed=0.587x
frame=  324 fps= 18 q=23.0 q=1.6 size=    4930kB time=00:00:10.77
bitrate=3746.9kbits/s dup=1 drop=0 speed=0.588x
frame=  334 fps= 18 q=23.0 q=1.6 size=    5071kB time=00:00:11.11
bitrate=3738.3kbits/s dup=1 drop=0 speed=0.59x
frame=  344 fps= 18 q=23.0 q=1.6 size=    5226kB time=00:00:11.44
bitrate=3740.3kbits/s dup=1 drop=0 speed=0.591x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 8 times
frame=  354 fps= 18 q=23.0 q=1.6 size=    5356kB time=00:00:11.77
bitrate=3724.8kbits/s dup=1 drop=0 speed=0.592x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  364 fps= 18 q=23.0 q=1.6 size=    5566kB time=00:00:12.11
bitrate=3764.2kbits/s dup=1 drop=0 speed=0.594x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  374 fps= 18 q=23.0 q=1.6 size=    5707kB time=00:00:12.44
bitrate=3755.9kbits/s dup=1 drop=0 speed=0.596x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  384 fps= 18 q=23.0 q=1.6 size=    5851kB time=00:00:12.78
bitrate=3750.2kbits/s dup=1 drop=0 speed=0.597x
[decklink @ 0x3d28d80] Decklink input buffer overrun!
  Last message repeated 4 times
[Parsed_thumbnail_3 @ 0x3d4fa20] frame id #45 (pts_time=14.848166) selected
from a set of 100 images

[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 16 times
frame=  507 fps= 18 q=23.0 q=1.6 size=    7812kB time=00:00:16.88
bitrate=3789.9kbits/s dup=1 drop=0 speed=0.611x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  517 fps= 18 q=23.0 q=1.6 size=    7960kB time=00:00:17.21
bitrate=3787.1kbits/s dup=1 drop=0 speed=0.612x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  527 fps= 18 q=23.0 q=1.6 size=    8105kB time=00:00:17.55
bitrate=3782.9kbits/s dup=1 drop=0 speed=0.613x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  537 fps= 18 q=23.0 q=1.6 size=    8256kB time=00:00:17.88
bitrate=3781.3kbits/s dup=1 drop=0 speed=0.614x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  547 fps= 18 q=23.0 q=1.6 size=    8469kB time=00:00:18.21
bitrate=3808.0kbits/s dup=1 drop=0 speed=0.615x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 21 times
frame=  557 fps= 18 q=23.0 q=1.6 size=    8617kB time=00:00:18.55
bitrate=3805.0kbits/s dup=1 drop=0 speed=0.615x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
frame=  567 fps= 18 q=23.0 q=1.6 size=    8768kB time=00:00:18.88
bitrate=3802.9kbits/s dup=1 drop=0 speed=0.616x
[decklink @ 0x3d28d80] Decklink input buffer overrun!

    Last message repeated 19 times
...


---
Best regards,

*Tung Tran*


More information about the ffmpeg-user mailing list