[FFmpeg-user] ffmpeg ussing tee

Javier Fuentes jfuentes at flumotion.com
Tue Apr 2 20:00:58 EEST 2019


Hello

I'm trying to re-publish the same flow twice but I could not get it
This is my pipeline:

ffmpeg -i http://app.opentest.es/test/index.m3u8 -vcodec copy -acodec
libfdk_aac  -ac 2 -ar 48000 -f tee -map 0:v -map 0:a \
"[f=flv]rtmp://
xxxxx:xxxxx at p.epxxxxx.i.akamaientrypoint.net/EntryPoint/streamtv_1_400 at xxxxx
flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true |[f=flv]rtmp://
xxxx:xxxx at b.ep.i.akamaientrypoint.net/EntryPoint/streamtv_1_400 at xxxxxx
flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true"

what i doing wrong?
Thanks in advance
Best regards

My output:
ffmpeg version n3.0 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/root/ffmpeg_build
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/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-libtheora --enable-filters --disable-shared
--enable-static --disable-outdev=xv --disable-indev=x11grab_xcb
--disable-libxcb --disable-xlib
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 0x33c1500] Increasing reorder buffer to 2
[mpegts @ 0x33bfc80] Could not find codec parameters for stream 4 (Unknown:
none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[hls,applehttp @ 0x33b9460] Could not find codec parameters for stream 4
(Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, hls,applehttp, from 'http://app.openchannel.es/tdphd/index.m3u8':
  Duration: N/A, start: 56478.645267, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 3706000
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv,
bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 3706000
    Stream #0:1: Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo,
fltp, 256 kb/s
    Metadata:
      variant_bitrate : 3706000
    Stream #0:2: Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo,
fltp, 192 kb/s
    Metadata:
      variant_bitrate : 3706000
    Stream #0:3: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Metadata:
      variant_bitrate : 3706000
    Stream #0:4: Unknown: none ([5][0][0][0] / 0x0005)
    Metadata:
      variant_bitrate : 3706000
[rtmp @ 0x36c6aa0] Detected librtmp style URL parameters, these aren't
supported by the libavformat internal RTMP handler currently enabled. See
the documentation for the correct way to pass parameters.
[rtmp @ 0x36c6aa0] Ignoring unsupported var reason
[flv @ 0x35cbf60] Tag [27][0][0][0]/0x0000001b incompatible with output
codec id '28' ([7][0][0][0])
[tee @ 0x33d95e0] Slave '[f=flv]rtmp://
xxxxxx:xxxx at p.epxxxxx.i.akamaientrypoint.net/EntryPoint/streamtv at xxxxxxx
flashver=FMLE/3.020(compatible;20FMSc/1.0) live=true': error writing
header: Invalid data found when processing input
Output #0, tee, to '[f=flv]rtmp://
xxxxx:xxxxx at p.epxxxxx.i.akamaientrypoint.net/EntryPoint/streamtv at xxxxxx
flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true |[f=flv]rtmp://
xxxx:xxxxx at b.epxxxxx.i.akamaientrypoint.net/EntryPoint/streamtv at xxxxxxxx
flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true':
  Metadata:
    encoder         : Lavf57.25.100
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 25 tbn, 25 tbc
    Metadata:
      variant_bitrate : 3706000
    Stream #0:1: Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 139 kb/s
    Metadata:
      variant_bitrate : 3706000
      encoder         : Lavc57.24.102 libfdk_aac
    Stream #0:2: Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 139 kb/s
    Metadata:
      variant_bitrate : 3706000
      encoder         : Lavc57.24.102 libfdk_aac
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))
  Stream #0:2 -> #0:2 (eac3 (native) -> aac (libfdk_aac))
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid data found when processing input


More information about the ffmpeg-user mailing list