Xvid Codec
Introduction
Motion already has a encoder ( ffmpeg ) to create videos ( mpeg1 , mpeg4 , msmpeg4 ). Xvid is a GPL encoder alternative with similar technology as MPEG4 but with a free GPL codec for decoding as well.
Description of Patch
The patch add support to motion to use xvid codec to get mpeg4 files instead of ffmpeg.
Installation of Patch
patch < motion-3.2.2-xvid.diff
Change History of Patch
- motion-3.2.2-xvid v 1.1 , 03 Jun 2005
- motion-3.2.2-xvid v 1.2 , 04 Jun 2005
- Fixed a segfault for motion videos ( just fixing some typos ).
- Fixed name of videos for events messages .
- motion-3.2.2-xvid v 1.3/1.4 , 14 Jun 2005 ( Thanks to Bill Brack)
- Fixed a segfault when filepath is not set ( target_dir in motion.conf )
- Fixed problem related to close vloopback devices.
- Fixed problem in events to avoid use two encoders
xvid will need to add some config parameters as ffmpeg , moreover i think that some current options should change the name to more general purpose , i propose :
- ffmpeg_cap_new -> video_cap_new
- ffmpeg_cap_motion -> video_cap_motion
- ffmpeg_video_codec -> video_codec
- ffmpeg_filename -> video_filename
--
AngelCarpintero - 03 Jun 2005
I agree that the names must change but why not make the name changes consistant with the other changes we made recently. We agreed to use the "movie" in the new on_xxxx options so maybe we should use this in the new names. I also want to avoid abbreviations like "cap". Finally I always disliked the ffmpeg_cap_new name.
So maybe (be welcome to give counter proposals)
- ffmpeg_cap_new -> movie_capture_normal
- ffmpeg_cap_motion -> movie_capture_motion
- ffmpeg_video_codec -> movie_video_codec
- ffmpeg_filename -> movie_filename
--
KennethLavrsen - 14 Jun 2005
Wanted to finally test your patch.
Compiling stops at.
make:
* No rule to make target `@XVID_OBJ@', needed by `.depend'. Stop.
--
KennethLavrsen - 20 Jun 2005
- No forget that. I forgot to run autoconf. -- KennethLavrsen - 20 Jun 2005
I think avilib shold no be part of motion, instead check for it with
autoconf (configure.in)
--
PeterHolik - 04 Jul 2005
I upload in the wiki a new version of the preview patch which work with the version 3.2.6 apply the patch by
$patch < whereisyourdiff/motion-3.2.6-xvid.diff to apply this patch on source
$autoreconf to rebuild configure script
--
ThomasB - 04 Aug 2006