22. July 2019

How to convert AVI to MP4 by MEncoder

Here is a simple command which allows conversion of AVI format to MP4 format by MEncoder.

mencoder input.avi -o output.mp4 -oac copy -ovc lavc -lavcopts vcodec=mpeg1video -of mpeg

The conversion is useful e.g. for Smart TV like Samsung which are often not able to play AVI.

17. April 2011

How to store video stream from Airlive camera

Airlive OD-325HD is quite good outdoor camera with night vision. This feature is quite useful when you need to monitor shop or outdoor areas.

OD-325HD camera is able to send video stream and images via TCP/IP.

How to dump image from the camera?

Wget can do all the magic.

wget "" \

What about video stream?

In this case we will need mencoder. This tool is able to read RTSP stream and store it into the file. I was playing with parameters until I found configuration for OD-325HD.

Note for Debian users: I suggest to use version from debian-multimedia.org. You can add following line into /etc/apt/sources.list:

deb http://www.debian-multimedia.org/ stable main

You can dump stream using following command:

mencoder  -v rtsp://username:somepass@ \
 -rtsp-stream-over-tcp \
 -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -o dump.avi

VLC plays stored video without problem. Note: Windows Media Player has some problems with playing this kind of data.

I found a lot of useful information at Covex page.