FFMPEG找不到编解码器ID 8的编码器

时间:2018-09-03 12:11:28

标签: encoding ffmpeg stream raspberry-pi3 mjpeg

我正在使用Raspberry Pi将(https).m3u8流还原为具有FFMPEG的本地MJPEG流。 因为我有一个Nest Cam / Nest Hello,我想将该流导入到我的Fibaro Homecenter(智能家居基站)中,但是Fibaro Homecenter仅使用MJPEG格式。因此,我用FFMPEG制作了Raspberry Pi,以达到目的。

这是我的/etc/ffserver.conf文件:

HTTPPort 8090

HTTPBindAddress 0.0.0.0

MaxHTTPConnections 2000

MaxClients 1000

MaxBandwidth 1000

CustomLog -

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 30M
</Feed>

<Stream test.mjpg>
Feed feed1.ffm
Format mpjpeg
VideoFrameRate 2
VideoIntraOnly
NoAudio
Strict -1
</Stream>

我的命令:

 ffmpeg -i "https://path-to-stream.com/chucklist.m3u8" http://localhost:8090/feed1.ffm

输出:

ffmpeg version N-89723-g2ca65fc7b7 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-gnutls
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  3.100 / 58.  3.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[hls,applehttp @ 0x1d16e70] Opening 'https://path-to-stream.com/chucklist.ts' for reading
[hls,applehttp @ 0x1d16e70] Opening 'https://path-to-stream.com/chucklist.ts' for reading
Input #0, hls,applehttp, from 'https://path-to-stream.com/chucklist.m3u8':
  Duration: N/A, start: 38789.189067, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 1152x864 [SAR 1:1 DAR 4:3], 15 tbr, 90k tbn, 30 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 16000 Hz, mono, fltp
    Metadata:
      variant_bitrate : 0
[tcp @ 0x27b36f0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
[ffm @ 0x237a480] no encoder found for codec id 8
http://localhost:8090/feed1.ffm: Invalid argument

如您所见,我收到一个错误:找不到编解码器ID 8的编码器 这很困扰我,因为我现在正在寻找解决方案的三天。我什至找不到编码器列表和对应的ID。我是否需要在./configure中启用某些功能?

我的目标是在http://localhost:8090/test1.mjpg

获得视频流

有人可以帮我吗?

0 个答案:

没有答案