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


相关文章
|
编解码 安全
RTP Payload Format for Opus Speech and Audio Codec
[Docs] [txt|pdf] [Tracker] [WG] [Email] [Diff1] [Diff2] [Nits] Versions: (draf...
1786 0
|
索引
av_find_best_stream
av_find_best_stream
164 0
av_find_best_stream
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
162 0
ffmpeg编码报错:more samples than frame size (avcodec_encode_audio2)
error loading /system/media/audio/ui/Effect_Tick.ogg
问题原因:      同一个AVD,调试了很多个项目,产生了N多个log文件,这些文件可能产生了影响。 解决办法:     新建一个AVD即可。
872 0
BruCon video
In alphabethical order: a-new-web-attack-vector-script-fragmentation_Stephan-Chenette.
794 0
ShmooCon 2013 video
http://www.shmoocon.org/shmoocon_2013
611 0
wsfuzzer video
http://www.neurofuzz.com/modules/software/vidz.php
672 0
shmoocon 2014 video
https://www.youtube.com/user/ChRiStIaAn008/playlists
580 0

热门文章

最新文章