Capturing VLC frames over HTTP

Is there a way to access the movie in VLC via HTTP in jpeg / png format.

You see, I want the movie to play in my local VLC player and access the current playable frame through something like http: // localhost: 9999 / current.jpg

Is there such a way, or maybe some other tool can provide it?

Thanx in advance

+4
source share
2 answers

You must use vlc mjpg output module

this cmd line works for me:

vlc.exe --sout="#transcode{acodec=none,vcodec=mjpg,vb=512}:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=0.0.0.0:8080/image.jpg},dst=display}" movie.avi 

then on any web page (works in Chrome / Firefox)

 <img src="http://127.0.0.1:8080/image.jpg" width="320" height="240"/> 

or directly using vlc http://127.0.0.1:8080/image.jpg

hope this helps.

+5
source

In the event of a delay in the mjpg stream, you can cancel the live view as follows:

 :sout=#transcode{vcodec=MJPG,vb=512}:std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=0.0.0.0:8080/image.jpg,delay=0} 
0
source

Source: https://habr.com/ru/post/1300777/


All Articles