Streaming AVI with MJPEG compression

About encoding, codec settings, muxers and filter usage
flanagann
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Sep 2008 16:58

Streaming AVI with MJPEG compression

Postby flanagann » 26 Sep 2008 17:18

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

flanagann
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Sep 2008 16:58

Re: Streaming AVI with MJPEG compression

Postby flanagann » 01 Oct 2008 17:24

Any idea?

:?

rideallday
New Cone
New Cone
Posts: 3
Joined: 13 Nov 2008 02:18

Re: Streaming AVI with MJPEG compression

Postby rideallday » 13 Nov 2008 18:07

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).

flanagann
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Sep 2008 16:58

Re: Streaming AVI with MJPEG compression

Postby flanagann » 14 Nov 2008 12:27

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 :)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests