在arm上使用ffmpeg rtmp拉流时出现了下面异常:
[flv @ 0x1b0e120] Could not find codec parameters for stream 2 (Video: h264, none, 2560 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, flv, from 'rtmp://devlivepull.migucloud.com/live/T4VBFHD7_C0':
Metadata:
fileSize : 0
audiochannels : 2
encoder :
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Data: none
Stream #0:1: Audio: aac, 44100 Hz, stereo, 163 kb/s
Stream #0:2: Video: h264, none, 2560 kb/s, 20 fps, 20 tbr, 1k tbn
是因为运行configure时将decoders关闭了:--disable-decoders。就带上对应的解码器--enable-decoder=h264
重新编译运行结果正确:
Metadata:
fileSize : 0
audiochannels : 2
encoder :
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Data: none
Stream #0:1: Audio: aac, 44100 Hz, stereo, 163 kb/s
Stream #0:2: Video: h264 (High), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 2560 kb/s, 20 fps, 20 tbr, 1k tbn, 40 tbc
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)