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


相关文章
ffmpeg推流报错Failed to update header with correct duration.
ffmpeg推流报错Failed to update header with correct duration.
1068 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
182 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
|
索引
av_find_best_stream
av_find_best_stream
167 0
av_find_best_stream
|
编解码
av_read_frame返回值为-5 Input/output error
av_read_frame返回值为-5 Input/output error
206 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’?
129 0
|
JavaScript 前端开发
|
编解码 安全
RTP Payload Format for Opus Speech and Audio Codec
[Docs] [txt|pdf] [Tracker] [WG] [Email] [Diff1] [Diff2] [Nits] Versions: (draf...
1788 0
opensecuritytraining video
https://www.youtube.com/user/OpenSecurityTraining/playlists https://www.
777 0

热门文章

最新文章