Motion - Lossless Encoding

Patch Title

Lossless Encoding

Introduction

This patch gives motion the capability to encode videos using a lossless codec.

Description of Patch

This patch adds the option of using the LJPEG codec to encode videos losslessly. The video is 'packaged' in the avi file format. Lossless encoding allows for videos to be stored that aren't degraded in quality by the encoding process. The disadvantage is that the compression of lossless codecs is less than lossy codecs meaning that file sizes will be very large.

Installation of Patch

First, make sure ffmpeg is installed on your system and make sure that it is detected by motion when ./configure is run.

To apply the patch use:
patch -p1 < lossless2.patch

To enable lossless encoding edit your motion.conf file and edit the line in the ffmpeg section to:
ffmpeg_video_codec ffv1

Discussion and Comments

I finally took some time to test this and the result is this.

 [ljpeg @ 0xb7a350]colorspace not supported in jpeg avcodec_open - could not open codec: Illegal seek Segmentation fault 

My guess is that this yet another secret change the ffmpeg team did in one of the many CVS versions.

So I guess this is not really ready for Motion yet.

-- KennethLavrsen - 10 Jul 2005

I updated the patch to work with the FFMPEG lossless video codec. This codec is considered experimental by FFMPEG.

-- AndrewHamilton - 29 Nov 2006

Thanks Andrew !

your patch is compatible with svn version , so people can use with motion edge version smile

-- AngelCarpintero - 29 Nov 2006

Ready to be tested , patch against svn trunk.

-- AngelCarpintero - 13 Oct 2007
Committed to svn r235

-- AngelCarpintero - 16 Oct 2007
Topic revision: r9 - 11 Jan 2008, AngelCarpintero
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.