Page 1 of 1

Streaming AVI with MJPEG compression

Posted: 26 Sep 2008 17:18
by flanagann
Hello!! This is my 1st message in the forum. I'll be working with VideoLan next months so for sure it won't be the last one ;)

I'm trying to stream an AVI file captured from a TV card with MJPEG compression. Results in the client are crappy, as you can see in the picture. Sound it's not transmitted, don't know why.

Image

As I read in the VideoLan wiki, MJPEG must be contained in a TS, OGG or ASF container format. I use TS since OGG and ASF don't work even in local tests and UDP protocol.

Command line string:
:sout=#duplicate{dst=std{access=udp,mux=ts,dst=xxx.xxx.xxx.xxx:1234}}

I'm a newbie so I don't really know whether I'm using the right container for the original video file or not, or if I have to use another protocol.

Any help is appreciated!

Regards

Re: Streaming AVI with MJPEG compression

Posted: 01 Oct 2008 17:24
by flanagann
Any idea?

:?

Re: Streaming AVI with MJPEG compression

Posted: 13 Nov 2008 18:07
by rideallday
Try to mux it in AVI, works good for me. I am trying to save an AXIS camera to file (among other things).

My sout is:

file/avi:/tmp/tempo.mjpg

This is where I got the hint from- it's a good reference:
http://www.digitalpreservation.gov/form ... 0063.shtml

Not sure whether you can mux AVI as a UDP stream, though (I'm using RTP and mp4 for that).

Re: Streaming AVI with MJPEG compression

Posted: 14 Nov 2008 12:27
by flanagann
Try to mux it in AVI, works good for me. I am trying to save an AXIS camera to file (among other things).

My sout is:

file/avi:/tmp/tempo.mjpg

This is where I got the hint from- it's a good reference:
http://www.digitalpreservation.gov/form ... 0063.shtml

Not sure whether you can mux AVI as a UDP stream, though (I'm using RTP and mp4 for that).
Hi! Thanks for answering!! It's not a common thing on these forums ;)

I've already solved it!! What I do is compressing MJPEG video to MPEG4 XVID using VirtualDub. I also compress audio to AC3. Streaming quality is quite good. I finally realised that MJPEG is a good format for capturing, but not for streaming :)