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
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
--
AngelCarpintero - 29 Nov 2006
Ready to be tested , patch against svn trunk.
--
AngelCarpintero - 13 Oct 2007
Committed to svn r235
--
AngelCarpintero - 16 Oct 2007