简体   繁体   English

AR Drone 2和ffserver + ffmpeg流媒体

[英]AR Drone 2 and ffserver + ffmpeg streaming

I want to be able to restream the video feed of the AR Drone 2 from a Debian Server to Flash. 我希望能够将AR Drone 2的视频源从Debian Server重新映射到Flash。

I am aware that the AR Drone uses the codec p264. 我知道AR Drone使用编解码器p264。 I'm totally green when it comes to video codecs, so I don't know what will be suitable for the goal I want to achieve? 在视频编解码器方面,我完全是绿色的,所以我不知道什么适合我想实现的目标?

I have been able to stream the video feed from the AR Drone but with very high latency and extremely low quality, compared to when I directly connect to the AR Drone using ffplay. 与使用ffplay直接连接到AR Drone时相比,我能够从AR Drone流式传输视频,但延迟非常高且质量极低。

I currently use the .swf example in the standard ffserver.conf: 我目前在标准的ffserver.conf中使用.swf示例:

<Stream test.swf>
Feed feed1.ffm
Format swf
VideoFrameRate 30
VideoIntraOnly
NoAudio
</Stream>

And the settings for the .ffm Feed are as follows: 并且.ffm Feed的设置如下:

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 17K
ACL allow 127.0.0.1
NoAudio
</Feed>

The command I use for giving input to the ffserver feed: 我用来为ffserver feed提供输入的命令:

ffmpeg -i http://192.168.1.1:5555 http://localhost:8090/feed1.ffm

How am I able to achieve lower latency and higher quality, since the stream is currently unwatchable? 我如何才能实现更低的延迟和更高的质量,因为流目前无法获取?

Unfortunately ffserver just simply will not get the job you want done. 不幸的是,ffserver根本无法完成你想要完成的工作。 You have hit the same wall as everyone else on the internet. 你和互联网上的其他人都在同一堵墙上。 The best I can get is about 3 second delay which gradually increases to about 5-10 seconds as the stream runs for a few hours. 我能得到的最好的是大约3秒的延迟,当流运行几个小时时,它会逐渐增加到大约5-10秒。

the stream isn't decoding with ffmpeg for me also. 我也没有用ffmpeg解码流。 I do not know why. 我不知道为什么。 it works with ffplay which just confuses me more! 它适用于ffplay,这让我更加困惑!

I am looking into Py-Media to see if i can just write my own code for a similar project. 我正在研究Py-Media,看看我是否可以为类似的项目编写自己的代码。 I want to stream ardrone video and minipulate the images in the stream. 我想流式传输ardrone视频并对流中的图像进行微缩处理。

ps look into gstreamer, I saw others discussing it yields different results. ps看看gstreamer,我看到其他人讨论它会产生不同的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM