[FFmpeg-user] RTMP send error 104 after 97hours
florian.hesse at rbb-online.de
florian.hesse at rbb-online.de
Tue Feb 2 09:28:50 CET 2016
Hello everyone,
i have a nice working centos 7.2 with a Blackmagic DeckLink Duo. ffmpeg
should capture a 720p50 SDI signal and send it with rtmp to a local
running Wowza Server.
This is working realy well but only 97 hours. I've tested it three times
now, it always stops after the same time. Wowza says there are no errors
before stopping.
Start-Command:
#!/bin/bash
echo $(date +"%a %d. %b %T %Z %Y") --- START test_stream.sh ---
>>logs/test_stream.log
FFREPORT=file=logs/test_stream_$(date +%Y-%m-%d).log:level=24 \
ffmpeg \
-f decklink \
-i 'DeckLink SDI (1)@12' \
-s 1280x720 \
-r 25 \
-pix_fmt yuv420p \
-profile:v high \
-c:v libx264 \
-b:v 3584k \
-preset slow \
-x264opts keyint=75:scenecut=-1 \
-c:a libfdk_aac \
-b:a 192k \
-bufsize 3000k \
-f flv rtmp://127.0.0.1:1935/live/source
echo $(date +"%a %d. %b %T %Z %Y") --- STOP test_stream.sh ---
>>logs/test_stream.log
echo
Output:
ffmpeg started on 2016-02-02 at 08:56:22
Report written to "logs/test_stream_2016-02-02.log"
ffmpeg version git-2015-11-17-bf6d41d Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
configuration: --prefix=home/user/ffmpeg_build
--extra-cflags=-I/home/user/ffmpeg_build/include
--extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin
--pkg-config-flags=--static --enable-gpl --enable-nonfree
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
--enable-openssl --enable-librtmp --enable-version3 --enable-libzvbi
--enable-libass --enable-decklink
--extra-cflags=-I/home/user/Downloads/Blackmagic_DeckLink_SDK_10.5/Linux/include
--extra-ldflags=-L/home/user/Downloads/Blackmagic_Decklink_SDk.10.5/Linux/include
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[decklink @ 0x3f4efc0] Found Decklink mode 1280 x 720 with rate 50.00
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink SDI (1)@12':
Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1280x720,
-8 kb/s, 50 tbr, 1000k tbn, 50 tbc
[decklink @ 0x3f4efc0] Frame received (#9) - No input signal detected -
Frames dropped 1
[libx264 @ 0x3f57320] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x3f57320] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x3f57320] profile High, level 3.1
[libx264 @ 0x3f57320] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft
2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=5
deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=22
lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=75 keyint_min=7
scenecut=0 intra_refresh=0 rc_lookahead=50 rc=cbr mbtree=1 bitrate=3584
ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3584
vbv_bufsize=3000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://127.0.0.1:1935/live/source':
Metadata:
encoder : Lavf57.14.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
1280x720, q=-1--1, 3584 kb/s, 25 fps, 1k tbn, 25 tbc
Metadata:
encoder : Lavc57.15.100 libx264
Stream #0:1: Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A), 48000
Hz, stereo, s16, 192 kb/s
Metadata:
encoder : Lavc57.15.100 libfdk_aac
Stream mapping:
Stream #0:1 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[decklink @ 0x3f4efc0] Frame received (#10) - Input returned - Frames
dropped 2
frame=20913 fps= 25 q=30.0 size= 335136kB time=00:13:56.41
bitrate=3282.4kbits/s dup=0 drop=20910
Then everything is doing fine, and after 97h just this is added:
WriteN, RTMP send error 104 (129 bytes)
More information about the ffmpeg-user
mailing list