Which codec for Motion Jpeg

About encoding, codec settings, muxers and filter usage
Zappa
New Cone
New Cone
Posts: 6
Joined: 30 Dec 2006 01:36

Which codec for Motion Jpeg

Postby Zappa » 30 Dec 2006 01:45

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 30 Dec 2006 18:30

mux should be mpjpeg
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Zappa
New Cone
New Cone
Posts: 6
Joined: 30 Dec 2006 01:36

Postby Zappa » 30 Dec 2006 22:39

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

Zappa
New Cone
New Cone
Posts: 6
Joined: 30 Dec 2006 01:36

Postby Zappa » 02 Jan 2007 21:22

Is there noone with a little hint for me or a reason for this behaivor ?

Thanx
Bernd

Zappa
New Cone
New Cone
Posts: 6
Joined: 30 Dec 2006 01:36

Postby Zappa » 04 Jan 2007 13:15

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]


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests

cron