DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 2

简介: DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 2

使用ffmpeg推流到nginx服务器(带http-flv-module插件):

ffmpeg -re -i  rtsp://admin:qwer1234QWER@10.0.10.3:554/h264/ch1/sub/av_stream -f flv rtmp://10.100.0.202:1935/hn17_whiteday_sub/stream

在浏览器中拉流播放报错:DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 2

解决方法:

推流加上参数:-vcodec libx264,表示强制使用libx264进行编解码。

ffmpeg -re -i  rtsp://admin:qwer1234QWER@10.0.10.3:554/h264/ch1/sub/av_stream -vcodec libx264 -f flv rtmp://10.100.0.202:1935/hn17_whiteday_sub/stream


相关文章
QSoundEffect(qaudio): Error decoding source
QSoundEffect(qaudio): Error decoding source
296 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
118 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
FFmpeg Invalid data found when processing input
FFmpeg Invalid data found when processing input
520 0
|
编解码
configure: error: You requested G729 audio codec but not found...die
configure: error: You requested G729 audio codec but not found...die
84 0
tdav_converter_video.cxx:49:9: error: ‘uint8’ does not name a type; did you mean ‘uint’?
tdav_converter_video.cxx:49:9: error: ‘uint8’ does not name a type; did you mean ‘uint’?
117 0
|
编解码
configure: error: You requested G729 audio codec but not found...die
configure: error: You requested G729 audio codec but not found...die
199 0
|
JavaScript 前端开发
|
编解码 安全
RTP Payload Format for Opus Speech and Audio Codec
[Docs] [txt|pdf] [Tracker] [WG] [Email] [Diff1] [Diff2] [Nits] Versions: (draf...
1776 0