- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试获取 RTSP 流并将其转换为 HLS 流。
如果我使用 ffmpeg 版本 N-76684-g1fe82ab
这个命令工作得很好。
c:\temp\ffmpeg.exe -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument.
C:\inetpub\wwwroot\hls>ffmpeg.exe -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
ffmpeg version N-83779-gfe57bf7cd6 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --prefix=/usr/local/x86_64-w64-mingw32 --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-static --enable-runtime-cpudetect --enable-w32th
reads --disable-shared --disable-ffplay --disable-ffserver --arch=x86_64 --extra-cflags=-I/local/x86_64-w64-mingw32/include --extra-ldflags='-L/local/x86_64-w64-mingw32/lib -static
'
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 82.102 / 57. 82.102
libavformat 57. 66.103 / 57. 66.103
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 74.100 / 6. 74.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[udp @ 023e9d40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 039af180] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
Invalid UE golomb code
[h264 @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[rtsp @ 023e7220] Failed to open codec in avformat_find_stream_info
Invalid UE golomb code
[NULL @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 023eaca0] non-existing PPS 0 referenced
Invalid UE golomb code
[h264 @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 023eaca0] non-existing PPS 0 referenced
Last message repeated 20 times
[rtsp @ 023e7220] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 023e7220] Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.249.233:8554/Stream':
Metadata:
title : Session streamed by Stream
comment : Stream
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), none(progressive), 90k tbr, 90k tbn, 180k tbc
[hls @ 039d5140] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
ffmpeg -analyzeduration 10M -probesize 10M -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
ffmpeg version N-83779-gfe57bf7cd6 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --prefix=/usr/local/x86_64-w64-mingw32 --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-static --enable-runtime-cpudetect --enable-w32threads --disable-shared --disable-ffplay --disable-ffserver --arch=x86_64 --extra-cflags=-I/local/x86_64-w64-mingw32/include --extra-ldflags='-L/local/x86_64-w64-mingw32/lib -static'
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 82.102 / 57. 82.102
libavformat 57. 66.103 / 57. 66.103
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 74.100 / 6. 74.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[udp @ 0238a140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0421f1a0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
Invalid UE golomb code
[h264 @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[rtsp @ 02387960] Failed to open codec in avformat_find_stream_info
Invalid UE golomb code
[NULL @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 0238af20] non-existing PPS 0 referenced
Invalid UE golomb code
[h264 @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
[NULL @ 0238af20] non-existing PPS 0 referenced
Last message repeated 24 times
[rtsp @ 02387960] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 02387960] Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.249.233:8554/FirstVuHD':
Metadata:
title : Session streamed by Stream
comment : Stream
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), none(progressive), 90k tbr, 90k tbn, 180k tbc
[hls @ 04edf8a0] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
c:/temp/ffmpeg -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[h264 @ 0000000000506d20] log2_max_frame_num_minus4 out of range (0-12): -1
Last message repeated 5 times
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 75 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 86 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 57 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 6 packets
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[h264 @ 0000000000506d20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000000506d20] decode_slice_header error
[h264 @ 0000000000506d20] no frame!
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 1093 packets
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 10 packets
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 2 packets
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[h264 @ 0000000000506d20] RTP: missed 20 packets
Input #0, rtsp, from 'rtsp://192.168.249.233:8554/Stream':
Metadata:
title : Session streamed by Stream
comment : Stream
Duration: N/A, start: 0.033367, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, 29.97 tbr, 90k tbn, 180k tbc
Output #0, hls, to 'c:\inetpub\wwwroot\hls\streaming.m3u8':
Metadata:
title : Session streamed by Stream
comment : Stream
encoder : Lavf57.14.100
Stream #0:0: Video: h264, yuv420p, 1920x1080, q=2-31, 29.97 tbr, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[rtsp @ 0000000000503e60] max delay reached. need to consume packet
[NULL @ 0000000000506d20] RTP: missed 211 packets
frame= 398 fps= 71 q=-1.0 size=N/A time=00:00:16.68 bitrate=N/A
最佳答案
超出范围的值是错误代码。
您拥有的错误代码可以解码如下。来自 ffmpeg 的错误代码(来自 avutil 的 error.h):
http://ffmpeg.org/doxygen/trunk/error_8h_source.html
原来您指定的值是:
#define AVERROR_INVALIDDATA FFERRTAG( 'I','N','D','A')
#define AVERROR_BSF_NOT_FOUND FFERRTAG(0xF8,'B','S','F') ///< Bitstream filter not found
#define AVERROR_BUG FFERRTAG( 'B','U','G','!') ///< Internal bug, also see AVERROR_BUG2
#define AVERROR_BUFFER_TOO_SMALL FFERRTAG( 'B','U','F','S') ///< Buffer too small
#define AVERROR_DECODER_NOT_FOUND FFERRTAG(0xF8,'D','E','C') ///< Decoder not found
#define AVERROR_DEMUXER_NOT_FOUND FFERRTAG(0xF8,'D','E','M') ///< Demuxer not found
#define AVERROR_ENCODER_NOT_FOUND FFERRTAG(0xF8,'E','N','C') ///< Encoder not found
#define AVERROR_EOF FFERRTAG( 'E','O','F',' ') ///< End of file
#define AVERROR_EXIT FFERRTAG( 'E','X','I','T') ///< Immediate exit was requested; the called function should not be restarted
#define AVERROR_EXTERNAL FFERRTAG( 'E','X','T',' ') ///< Generic error in an external library
#define AVERROR_FILTER_NOT_FOUND FFERRTAG(0xF8,'F','I','L') ///< Filter not found
#define AVERROR_INVALIDDATA FFERRTAG( 'I','N','D','A') ///< Invalid data found when processing input
#define AVERROR_MUXER_NOT_FOUND FFERRTAG(0xF8,'M','U','X') ///< Muxer not found
#define AVERROR_OPTION_NOT_FOUND FFERRTAG(0xF8,'O','P','T') ///< Option not found
#define AVERROR_PATCHWELCOME FFERRTAG( 'P','A','W','E') ///< Not yet implemented in FFmpeg, patches welcome
#define AVERROR_PROTOCOL_NOT_FOUND FFERRTAG(0xF8,'P','R','O') ///< Protocol not found
#define AVERROR_STREAM_NOT_FOUND FFERRTAG(0xF8,'S','T','R') ///< Stream not found
#define AVERROR_BUG2 FFERRTAG( 'B','U','G',' ')
#define AVERROR_UNKNOWN FFERRTAG( 'U','N','K','N') ///< Unknown error, typically from an external library
#define AVERROR_EXPERIMENTAL (-0x2bb2afa8) ///< Requested feature is flagged experimental. Set strict_std_compliance if you really want to use it.
#define AVERROR_INPUT_CHANGED (-0x636e6701) ///< Input changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_OUTPUT_CHANGED)
#define AVERROR_OUTPUT_CHANGED (-0x636e6702) ///< Output changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_INPUT_CHANGED)
#define AVERROR_HTTP_BAD_REQUEST FFERRTAG(0xF8,'4','0','0')
#define AVERROR_HTTP_UNAUTHORIZED FFERRTAG(0xF8,'4','0','1')
#define AVERROR_HTTP_FORBIDDEN FFERRTAG(0xF8,'4','0','3')
#define AVERROR_HTTP_NOT_FOUND FFERRTAG(0xF8,'4','0','4')
#define AVERROR_HTTP_OTHER_4XX FFERRTAG(0xF8,'4','X','X')
#define AVERROR_HTTP_SERVER_ERROR FFERRTAG(0xF8,'5','X','X')
关于video - 使用 FFMPEG 将 RTSP 流式传输到 HLS 流,使用较新的 FFMPEG 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45923382/
我有一个简单的 Rtsp 客户端...客户端将 Rtsp 命令发送到 Rtsp 服务器并从服务器获取 RTP 数据包。 The problem is that after a time( about
所以我正在尝试创建一个流式传输音乐的 RTSP 服务器。 我不明白服务器如何播放音乐,不同的请求会得到当时正在播放的内容。 所以,整理我的问题: 1)服务器如何播放音乐文件? 2) 对服务器的请求如何
我已经安装 gst-rtsp-server我想尝试一个简单的代码。但是在编译时我收到以下错误: In function `main': test-launch01.c:(.text+0x64): un
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,因为
我刚刚开始研究流媒体库和底层协议(protocol)。我了解 rtsp/rtp 流媒体以及这两种协议(protocol)的用途。但是,如果我们需要 IP 地址、编解码器和 rtsp/rtp 协议(pr
我想从 Live-CAM 捕获 Rtsp 流,然后我想将其重新流式传输到另一个 Rtsp 服务器。 基本上,我的计算机将使用 FFMpeg 作为中继服务器。 我已经尝试过这个临时命令,但我无法让它工作
我正在使用 java web 应用程序使用 rtsp 从 IP 摄像机检索视频; rtsp url 在 url 本身中嵌入了用户名/密码,这似乎很不安全。例如rtsp://用户:密码@ip/... 有
对不起,我的英语不好 我正在为 rtsp 通信程序工作 此 RTSP 服务器在我的 SETUP 请求中回复 459 错误(不允许聚合操作) 我对此一无所知。 请帮我。我做错了什么? ==== Mess
对于这个问题的普遍性,我深表歉意。我尝试了很多东西,但似乎没有任何效果。我有服务器? (我们称它为 服务器 A)驻留在局域网中,那里也有一个 IP 网络摄像头。该网络摄像头不断在地址上提供 RTSP
对于这个问题的普遍性,我深表歉意。我尝试了很多东西,但似乎没有任何效果。我有服务器? (我们称它为 服务器 A)驻留在局域网中,那里也有一个 IP 网络摄像头。该网络摄像头不断在地址上提供 RTSP
我有一个 RTSP 视频源 (h265),我可以使用 VLC 显示它。我想将流分成两部分,一个以原始分辨率(使用 h265 编码),另一个以新的较低分辨率(使用 h264 编码)。这两个新流也应该是
实时流协议(protocol) (RTSP) 版本 1.0 发布为 RFC 2326 1998 年。 现在将近 20 年后,2.0 版发布为 RFC 7826 2016 年 12 月。 我想知道这些更
我想使用 Kurento 作为媒体服务器,它将 WebRTC 作为输入并提供 RTSP 流作为 url:rtsp://kurento/streamName 这可能吗? 我看到了https://gith
我正在使用 rtsp-simple-server ( https://github.com/aler9/rtsp-simple-server ) 并向 RTSP 服务器提供 FFMPEG 流。 我使用
关注:https://github.com/kyriesent/node-rtsp-stream和 How to display IP camera feed from an RTSP url ont
我目前有一个采用 H.264 编码的 IP 摄像机流式视频 (RTSP)。 我想使用 FFmpeg 将此 H.264 编码流转换为另一个 RTSP 流,但 MPEG-2 编码。我该怎么做?我应该使用哪
我目前正在为 Android 设备开发通过 RTSP/UDP 进行的视频流。我的目标是通过 4G 蜂窝网络流式传输视频。我面临的问题是所使用的方法不适用于 Samsung Galaxy Core SM
获取 [rtsp @ 000002aa9df0cb80] 方法设置失败:500 内部服务器错误 当我尝试在 opencv python 中流式传输 rtsp 相机但一段时间后它可以正常工作几分钟并且不
我是这个论坛的新手,我的英语水平不是最好的! 我有一个网站,在那里我发布了摄像机的视频流,以显示在嵌套时间现场发生的事情!一个具有高 IT 技能的人为我构建了一个小服务器用于重新流 (Datarhei
我收到一个 HTTP 错误 400,以响应下面显示的函数正在处理的以下 RTSP URL。 描述 rtsp://root:pass@192.168.1.47/axis-media/media.amp
我是一名优秀的程序员,十分优秀!