Re: [gphoto-devel] gPhoto2 - Regarding Camera Control Suggestion

Marcus Meissner <[email protected]> Sat, 16 May 2020 15:57:35 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Organization SUSE Software Solutions Ger many GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany , GF: Felix Imendörffer, HRB 36809, AG Nürnber g
Message-ID <[email protected]>
On Sat, May 16, 2020 at 06:02:34PM +0600, Nazmus Sakib wrote:
> Hi Marcus. Well noted.
> 
> One more problem I am facing related with Live Streaming and I'll be glad
> to have your advise.
> 
> I am using Live Streaming using below commands and view the stream on VLC
> Player (Network Stream).
> 
> gphoto2 --set-config viewfinder=1
> gphoto2 --capture-movie --stdout | ffmpeg -re -i pipe:0 -listen 1 -f mjpeg
> http://10.10.10.253:8080/feed.mjpg
> 
> But I am experiencing around 3 - 5 sec delay in the Stream View. My WiFi is
> stable tough. I tested it using both Canon 6D and Nikon 5100.
> 
> Is there any way to reduce the delay and make the stream as much real-time
> as possible?

This is hard to do ... we emit images via stdout as quick as we can, but
the buffering over ffmpeg and http will cause delays :/

I found https://stackoverflow.com/questions/16658873/how-to-minimize-the-delay-in-a-live-streaming-with-ffmpeg

e.g. ffmpeg flags:

-fflags nobuffer

would be worth to try.

Ciao, Marcus