Page 1 of 1

Which codec for Motion Jpeg

Posted: 30 Dec 2006 01:45
by Zappa
Hi everyone,

I am trying to use vlc as a streaming (relay) server for an axis webcam which has not got enough bandwidth to support all users connecting to it.
As I want to keep it simple (no extra viewers, etc,) I want to use the Motion JPEG Image from the cam and stream it via the HTTP interface.

I try this using the following command, but I only get the first image displayed, the update on the image are not shown, can anyone give me a hint, which codec or format to use ?

Code: Select all

vlc -vvv http://85.XXX.XXX.XXX/axis-cgi/mjpg/video.cgi?resolution=CIF --sout='#duplicate{dst=std{access=http,mux=raw,url=127.0.0.1:1234/test.jpg}}' --ttl 12
(Server is a RH Enterprise 4 with a self compiled vlc on it)

Many thanx in advance,

best seasonal greatings !

Bernd

Posted: 30 Dec 2006 18:30
by dionoea
mux should be mpjpeg

Posted: 30 Dec 2006 22:39
by Zappa
Hi,
mux should be mpjpeg
Thank you, now its at least readable with vlc, but a few troubles remain:

* When trying to view the jpeg with a broswer (Firefox and IE) I get a "never coming jpeg", it shows a broken image symbol. (downloading the jpg and trying to play it on vlc also fails, the first frame is visible for some time and then the "image" is over). (while testig it with "raw" at least the first frame was visible in the browsers)

* When viewing it with vlc, the image is very slow - each second passing at the camera takes about 5 seconds on the relayed image, so the camera image is quite some time behind after a little time viewing, although the system itself shows no evidence of beein stressed or to high loaded.


Any more help would be highly appreciated !

Best wishes

Bernd

Posted: 02 Jan 2007 21:22
by Zappa
Is there noone with a little hint for me or a reason for this behaivor ?

Thanx
Bernd

Posted: 04 Jan 2007 13:15
by Zappa
Hi there,

I now have the stream running with the following command:

Code: Select all

vlc -vvv http://85.126.170.50/mjpg/video.mjpg --sout='#duplicate{dst=std{access=http,mux=mpjpeg,url=10.0.0.1:1234/test.mjpg}}' --ttl 12
but when I try to open the created URL in the Browser (Firefox), then it tries to download the file (... which is a BIN file) , again using VLC as a viewer it works (this time without any delays)

Can anyone tell me how to get the correct headers for the browser please ?

Thanx,

best regards

Bernd

[/code]