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
293 0
ffmpeg推流报错Failed to update header with correct duration.
ffmpeg推流报错Failed to update header with correct duration.
838 0
|
6月前
|
Android开发
Failed resolution of: Landroidx/localbroadcastmanager/content/LocalBroadcastManager
Failed resolution of: Landroidx/localbroadcastmanager/content/LocalBroadcastManager
86 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
117 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
成功解决UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 130: invalid continuation b
成功解决UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 130: invalid continuation b
成功解决UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 130: invalid continuation b
|
编解码 Python
问题解决:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xcf in position 0: invalid continuation by
问题解决:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xcf in position 0: invalid continuation by
3631 0
问题解决:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xcf in position 0: invalid continuation by
|
索引
av_find_best_stream
av_find_best_stream
140 0
av_find_best_stream
|
编解码
av_read_frame返回值为-5 Input/output error
av_read_frame返回值为-5 Input/output error
161 0
|
编解码
configure: error: You requested G729 audio codec but not found...die
configure: error: You requested G729 audio codec but not found...die
83 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’?
116 0