Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
嵌入式设备与智能手机之间的FFMpeg/FFServer P2P流媒体_Ffmpeg_P2p_Rtsp_Ffserver - Fatal编程技术网

嵌入式设备与智能手机之间的FFMpeg/FFServer P2P流媒体

嵌入式设备与智能手机之间的FFMpeg/FFServer P2P流媒体,ffmpeg,p2p,rtsp,ffserver,Ffmpeg,P2p,Rtsp,Ffserver,在过去的几天里,我一直在使用FFMpeg和FFServer,因为我正在考虑将它们作为嵌入式设备(带有集成高清摄像头)和各种客户端(智能手机)之间实时流媒体的候选 我已经使用以下FFServer配置实现了流: HTTPPort 1234 RTSPPort 1235 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 512000 # Maximum bandwidth per client

在过去的几天里,我一直在使用FFMpeg和FFServer,因为我正在考虑将它们作为嵌入式设备(带有集成高清摄像头)和各种客户端(智能手机)之间实时流媒体的候选

我已经使用以下FFServer配置实现了流:

HTTPPort 1234
RTSPPort 1235
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 512000             # Maximum bandwidth per client
                               # set this high enough to exceed stream bitrate
CustomLog -
NoDaemon                       # Remove this if you want FFserver to daemonize after start
<Feed feed.ffm>               # This is the input feed where FFmpeg will send
  File /tmp/feed.ffm            # video stream.
  FileMaxSize 512K
</Feed>
<Stream test.h264>                      # Output stream URL definition
   Feed feed.ffm              # Feed from which to receive video
   Format rtp
   # Video settings
   VideoCodec libvpx
   VideoSize 720x576           # Video resolution
   VideoFrameRate 60           # Video FPS
   AVOptionVideo flags +global_header  # Parameters passed to encoder
                                       # (same as ffmpeg command-line parameters)
   AVOptionVideo cpu-used 0
   AVOptionVideo qmin 10
   AVOptionVideo qmax 42
   AVOptionVideo quality good
   AVOptionAudio flags +global_header
   PreRoll 15
   StartSendOnKey
   VideoBitRate 400            # Video bitrate
   NoAudio
</Stream>
ffmpeg -rtbufsize 2100M -f dshow -i video="Integrated Camera" -vcodec libx264 http://127.0.0.1:1234/feed.ffm
我还有一个简单的Android客户端,它使用以下URL播放RTSP流:

rtsp://mylocalnetworkip:1235/test.h264
但现在我正试图在嵌入式设备和智能手机之间实现P2P连接。这必须通过互联网(而不是局域网)实现,并且能够实现UDP打孔(如Skype对p2p视频呼叫的打孔)

  • 仅使用ffmpeg就可以实现这一点吗
  • ffmpeg能否与Stun/Turn服务器集成以绕过对称NAT