Menu Home

编译ffmpeg使支持PIPE输入

查看ffmpeg支持的输入协议

./configure  --list-protocols

可能的输出:

applehttp
httpproxy
rtmp
bluray    
https			
rtmpe
cache			
librtmp			
rtmps
concat			
librtmpe		
rtmpt
crypto			
librtmps		
rtmpte
ffrtmpcrypt		
librtmpt		
rtmpts
ffrtmphttp		
librtmpte		
rtp
file			
md5			
sctp
gopher			
mmsh			
tcp
hls			
mmst			
tls
http			
pipe			
udp

增加PIPE支持

./configure --enable-protocol=pipe

一个完整的编译参数

./configure  --enable-libmp3lame 
             --enable-vdpau 
             --enable-libx264 
             --enable-gpl 
             --disable-static 
             --enable-shared 
             --disable-armv5te 
             --disable-armv6 
             --disable-armv6t2 
             --disable-armvfp 
             --enable-gpl  
             --enable-protocol=pipe