How do I force a reload of an image that I stream via RTSP?

About encoding, codec settings, muxers and filter usage
Lupin III.
New Cone
New Cone
Posts: 2
Joined: 29 Sep 2010 15:18

How do I force a reload of an image that I stream via RTSP?

Postby Lupin III. » 18 Mar 2014 17:00

I have set up a stream of an image on my harddisk with this command line:
vlc -I dummy --image-duration=-1 --image-fps=1/1 --sout "#transcode{vcodec=mp2v,fps=1,vb=1}:rtp{mux=ts,sdp=rtsp://:8554/my_stream}" C:\Users\User\Desktop\my_image.png

I can connect to this stream with another instance of VLC as expected. The bitrate value "vb" seems to be ignored by the encoder though, as there's no difference in the value set, except the image quality being horrible, when it's left out completely.
I now want the image to be updated once a second (or even better only when the image on the disk changes). Setting image duration to 1 and using "--repeat" is no use because this will close the stream every second and the client will lose connection.

How can I make VLC reload the image?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How do I force a reload of an image that I stream via RT

Postby Jean-Baptiste Kempf » 22 Apr 2014 14:08

vb=1 is too low => bad quality

To keep connection, use --sout-keep.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests