Pergunta

Existe alguma maneira para acessar um plaing filme VLC através de HTTP em jpeg / png formato.

Você vê, o que eu quero, é ter um filme jogar no meu player VLC local, e acesso atualmente jogando quadro através de algo como http: // localhost: 9999 / current.jpg

Existe maneira sucha, ou ferramenta talvez someother pode fornecê-la?

Thanx um lote de antecedência

Foi útil?

Solução

You have to 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, in any webpage (works on 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.

Outras dicas

In the case of experiencing 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}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top