You need to enable JavaScript to run this app. FFmpeg管道推流HLS至TVHeadend时报错找不到mpegts输出格式
优惠活动
大模型
产品
解决方案
定价
更多

FFmpeg管道推流HLS至TVHeadend时报错找不到mpegts输出格式

基于FFmpeg管道的TVHeadend推流配置
  • 配置目的:通过FFmpeg的传输容错能力,处理流传输过程中的卡顿、抖动问题,规避TVHeadend直接对接源流时出现的播放冻结故障
  • 实际使用的推送命令:
pipe:///usr/bin/ffmpeg -i *视频流地址* -c copy -metadata service_provider="My Provider" -metadata service_name="My Service" -f mpegts pipe:1
故障现象
  • 同一套命令模板覆盖绝大多数视频流时,均可正常完成推流,仅少数流会触发执行报错
  • 触发报错的源视频流本身可通过常规播放器正常访问,不存在源端不可用、地址失效的问题
  • 前期检索到的同类问题解决方案均针对转码场景设计,与当前采用-c copy实现无转码流复制的运行模式不匹配,无法直接复用
完整报错日志
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.0 (Alpine 9.3.0)
configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libssh --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-libaom --disable-debug
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100
[hls @ 0x7f7c03b0c5c0] Skip ('#EXT-X-VERSION:3')
[hls @ 0x7f7c03b0c5c0] Opening '****' for reading
[hls @ 0x7f7c03b0c5c0] Opening '****' for reading
Input #0, hls, from '****':
  Duration: N/A, start: 3116.333433, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
[NULL @ 0x55f1a0fcec80] Unable to find a suitable output format for 'mpegts'
mpegts: Invalid argument
排查需求
  • 定位上述无转码运行场景下的报错根本原因,形成可落地的排查方案

内容的提问来源于stack exchange,提问作者Chris

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.24 04:24:02