On Tuesday, September 17, 2013 20:52:16 Curtis Olson wrote:
> If someone decides to jump into this, another feature that would be cool
> would be to stream the display out as a video stream which could then be
> played by any number of video players on a remote computer (like mplayer.)
>  ffmpeg probably would provide library support to make this pretty
> straightforward, but I haven't had a chance to dive in and see how
> easy/hard it would be.
> One area where this feature could be useful is in UAV research and
> simulation where you'd like to emulate a live video feed back to a ground
> station.  It could also be fun for sharing/broadcasting your simulator
> session and probably could be made to work with a web video server.
> In my own experimentation I've been able to sort of do this by using ffmpeg
> to capture an area of the screen, encode it as h.264 and send it off to a
> remote destination as a udp video stream, for example:
> ffmpeg -f x11grab -s vga -r 15 -b 100k -preset ultrafast -tune zerolatency
> -maxrate 100k -i :0.0+1,58 -f mpegts -vcodec h.264 udp://
> remote.host.name.org:1234
> But this requires careful manual sizing and placement of my flightgear
> window and it would be cool to have this built right in...  I've seen other
> apps that can do this so I know it's technically possible, and I imagine
> not too much coding once you figure out the magic to make it happen.
> Curt.

Hi, there,
VLC does this better than ffmpeg, so it's probably a good idea to study it's 
codebase for streaming code. Also, MJPEG is nice, but as a container I'd 
choose Ogg/Theora instead of H264 since they're entirely open.


LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
Flightgear-devel mailing list

Reply via email to