Opened 4 years ago

Last modified 17 months ago

#3027 new defect

tee muxer do not catch exception when slave fall dow

Reported by: mareka Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: cus@passwd.hu Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: I want to use tee muxer to distribute stream to more servers. When any output is not accessilble the ffmpeg crash down. Is it possible catch crash down of slave output and retry start it without all other slaves stop stream?
How to reproduce: -f tee "Output/720p.mp4|[f=flv]rtmp://some.rtmp.server/live/stream1|[f=flv]rtmp://non.exist.server.or.not.accessible/live/stream1"

% ffmpeg -i input ... output
ffmpeg version: any (latest tedted 1.2)
built on Mar 28 2013 00:34:08

Thank oyu

Change History (3)

comment:1 Changed 4 years ago by cehoyos

Please add your failing (crashing?) command line together with the complete, uncut console output to make this a valid ticket.

comment:2 Changed 4 years ago by mareka

ffmpeg-64b-gb4e1630 -v info -video_size 1280x720 -pixel_format uyvy422 -framer
ate 50 -rtbufsize 2100000000 -f dshow -i video="Decklink Video Capture":audio="Decklink Audio Capture" -vf fp
s=fps=25 -filter:a volume=+9dB -codec:a libvo_aacenc -ac 2 -ar 48000 -b:a 96k -vsync 2 -map 0:v,0:a -map 0:a -
preset medium -vcodec libx264 -sc_threshold 0 -g 50 -vprofile baseline -bufsize 8000k -maxrate 3500k -crf 22 -
pix_fmt yuv420p -s 1280x720 -aspect 16:9 -flags global_header -f tee "720p.mp4|[f=mpegts:bsfs/v=dump_extra]ud
p://224.1.0.1:10001/|[f=flv]rtmp://localhost/ct1/1"
ffmpeg version N-56125-gb4e1630 Copyright (c) 2000-2013 the FFmpeg developers

built on Sep 9 2013 01:47:04 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable

-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca

--enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libope

ncore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
oedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enabl
e-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib

libavutil 52. 43.100 / 52. 43.100
libavcodec 55. 31.101 / 55. 31.101
libavformat 55. 16.101 / 55. 16.101
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 84.100 / 3. 84.100
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100

Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=Decklink Video Capture:audio=Decklink Audio Capture':

Duration: N/A, start: 0.054554, bitrate: 1536 kb/s

Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422(tv), 1280x720, 50 tbr, 10000k tbn, 50 tbc
Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s

[libx264 @ 0000000000390c20] using SAR=1/1
[libx264 @ 0000000000390c20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0000000000390c20] profile Constrained Baseline, level 3.1
[libx264 @ 0000000000390c20] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http
:www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 ps
y_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma
_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 con
strained_intra=0 bframes=0 weightp=0 keyint=50 keyint_min=5 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3500 vbv_bufsize=8000 crf_max=0.0 nal_hrd=n
one ip_ratio=1.40 aq=1:1.00
RTMP_Connect0, failed to connect socket. 10061 (Unknown error)
[tee @ 00000000003b64a0] Slave '[f=flv]rtmp://localhost/ct1/1': error opening: Unknown error occurred
Output #0, tee, to '720p.mp4|[f=mpegts:bsfs/v=dump_extra]udp://224.1.0.1:10001/|[f=flv]rtmp://localhost/ct1/1'
:

Metadata:

encoder : Lavf55.16.101
Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, max. 3500 kb/s, 90k tbn

, 25 tbc

Stream #0:1: Audio: aac (libvo_aacenc), 48000 Hz, stereo, s16, 96 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (rawvideo -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc)

Could not write header for output file #0 (incorrect codec parameters ?): Unknown error occurred

Last edited 4 years ago by mareka (previous) (diff)

comment:3 Changed 17 months ago by cus

  • Cc cus@passwd.hu added
Note: See TracTickets for help on using tickets.