[FFmpeg-trac] #6258(undetermined:new): tee muxer fails on stream copy
FFmpeg
trac at avcodec.org
Wed May 6 15:12:47 EEST 2020
#6258: tee muxer fails on stream copy
-------------------------------------+-------------------------------------
Reporter: araeos | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: muxer tee | Blocked By:
copy |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by pszemus):
I wanted ffmpeg to reconnect on output RTMP connection drop (e.g. due to
RTMP server restart) and came across a similar error:
{{{
$ ffmpeg -re -i /usr/local/WowzaStreamingEngine/content/sample.mp4 -c copy
-f fifo -fifo_format flv -map 0 -drop_pkts_on_overflow 1 -attempt_recovery
1 -max_recovery_attempts 12 -recovery_wait_time 5
rtmp://localhost/wptv/test
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
--arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-
protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-
hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-
protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' '
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-
amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-
fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa
--enable-libaom --enable-libdav1d --enable-libass --enable-libbluray
--enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype
--enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc
--enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis
--enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
--enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc
--enable-pthreads --disable-static --enable-shared --enable-gpl --disable-
debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-
runtime-cpudetect
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/usr/local/WowzaStreamingEngine/content/sample.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Big Buck Bunny, Sunflower version
artist : Blender Foundation 2008, Janus Bager Kristensen 2013
composer : Sacha Goedegebure
encoder : Lavf56.26.101
comment : Creative Commons Attribution 3.0 -
http://bbb3d.renderfarming.net
genre : Animation
Duration: 00:10:34.63, start: 0.000000, bitrate: 743 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 512x288 [SAR 1:1 DAR 16:9], 640 kb/s, 30 fps, 30
tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 96 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, fifo, to 'rtmp://localhost/wptv/test':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Big Buck Bunny, Sunflower version
artist : Blender Foundation 2008, Janus Bager Kristensen 2013
composer : Sacha Goedegebure
genre : Animation
comment : Creative Commons Attribution 3.0 -
http://bbb3d.renderfarming.net
encoder : Lavf58.29.100
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 512x288 [SAR 1:1 DAR 16:9], q=2-31, 640 kb/s, 30
fps, 30 tbr, 30 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 96 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 0x7fffc50da480] Tag avc1 incompatible with output codec id '27'
([7][0][0][0])
[rtmp @ 0x7f9f000044c0] Server error: Stream name is already in use: test
[fifo @ 0x7fffc4f86cc0] Error opening rtmp://localhost/wptv/test:
Operation not permitted
[fifo @ 0x7fffc4f86cc0] Recovery failed: Operation not permitted
}}}
After enabling encoding (`-c copy` -> `-c:a aac -c:v libx264`) it starts
to work as expected, but I don't want to transcode the input stream (just
transmux).
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6258#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list