FFmpeg tee muxer processing audio differently

0

I'm struggling to get the tee muxer to work. When I output to a local file directly it works, but when I replace the output with a tee it fails, so:-

ffmpeg -loglevel trace -f mpegts  -i  udp://192.168.0.200:10001?fifo_size=50000000\&overrun_nonfatal  \
-map 0:v -map 0:a:0 -map 0:a:1 -map 0:a:2 -s 640x360  -c:v libx264 -b:v 600k -vbsf h264_mp4toannexb  -acodec copy   -bsf:a aac_adtstoasc -f flv test.flv

works but

ffmpeg -loglevel trace -f mpegts  -i  udp://192.168.0.200:10001?fifo_size=50000000\&overrun_nonfatal  \
    -map 0:v -map 0:a:0 -map 0:a:1 -map 0:a:2 -s 640x360  -c:v libx264 -b:v 600k -vbsf h264_mp4toannexb  -acodec copy   -bsf:a aac_adtstoasc -f tee  "[select=\'v,a:0\':f=flv:bsfs/a=aac_adtstoasc]test.flv"

doesn't.

The errors are:-

[flv @ 0x55e8ee4c19a0] Tag [15][0][0][0]/0x0000000f incompatible with output codec id '86018' ([10][0][0][0])
[tee @ 0x55e8ed34d6e0] Slave '[select='a:0':f=flv:bsfs/a=aac_adtstoasc]test.flv': error writing header: Invalid data found when processing input

I've tried to research what this means, and I think it is saying AAC-LC is not compatible with AAC. Perhaps I've got the syntax for the tee wrong, but I don't understand why -acodec copy works in one instance and not the other. I believe this is definitely on audio issue as

-tee  [select=\'v\':f=flv:bsfs/a=aac_adtstoasc]test.flv

works.

ffmpeg version 3.2.2-1~16.04.york3 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.1 (Ubuntu 5.4.1-4ubuntu1~16.04.york1) 20161202
  configuration: --prefix=/usr --extra-version='1~16.04.york3' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100

Have also tried on windows ffmpeg version N-78964-g5061579 with the same results.

Help would be most appreciated as this is driving me mad!!

audio
ffmpeg
video-encoding
tee
asked on Super User Jan 26, 2017 by sidney edwards

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0