/xvidcap-patched-mx19

XvidCap try to make working in MX Linux 19.3. Source code from: https://sourceforge.net/projects/xvidcap/files/xvidcap/1.1.7/ and patches from: https://github.com/OpenMandrivaAssociation/xvidcap

Primary LanguageCGNU General Public License v3.0GPL-3.0

Hi to all, I want to make it working fine XvidCap but can't enable record with audio. If I put in a terminal after compile with:

padsp xvidcap --audio yes --cap_geometry 1280x720[+200+200] --fps 30 --quality 100 --file "Su video.mov"

But Audio is not present:

Is possible to launch with:

padsp xvidcap

The next are the steps I do to try to make it working in:

MX Linux 19.3 x386

https://mxlinux.org/

but it doesn't work yet


DEPENDS

sudo apt install libglade2-dev libxmu-dev docbook-utils docbook-to-man docbook2x gnome-doc-utils libxml-perl libavcodec-dev libflac-dev libdbus-glib-1-dev

Is necessary to download and install:

https://packages.debian.org/stretch/scrollkeeper

and that is inside the folder:

/03-deb-depend

In the source code folder edit:

debian/rules

in the line that said:

CFLAGS = -Wall -g

change to:

CFLAGS = -Wall -g -lX11 -ldl -lXext


CHANGES I MADE:

In the source code:

01-source-code

I made the next changes:

Parche "xvidcap-1.1.7-automake-1.13.patch"

in the file:

configure.in



Linea 8

change:

AM_CONFIG_HEADER(config.h)

for:

AC_CONFIG_HEADERS(config.h)



Linea 17

delete:

AM_PROG_CC_STDC



Parche "xvidcap-1.1.7-desktop-entry.patch"

In the file:

xvidcap.desktop



change to:

Encoding=UTF-8

Add:

Comment[es]=X11 Grabación de pantalla



Change this:

Icon=xvidcap.png

for thiso:

Icon=xvidcap



Change this:

Categories=GTK;Application;AudioVideo;Video;

for this:

Categories=GTK;AudioVideo;Video;



Parche "xvidcap-1.1.7-ffmpeg-options.patch"

In the file:

configure.in



Change this:

test x$ac_cv_lib_theora_theora_encode_init = xyes && ac_my_ffmpeg_cfg_lib_switch="${ac_my_ffmpeg_cfg_lib_switch} --enable-libogg --enable-libtheora"

for this:

test x$ac_cv_lib_theora_theora_encode_init = xyes && ac_my_ffmpeg_cfg_lib_switch="${ac_my_ffmpeg_cfg_lib_switch} --enable-libtheora"



Parche "xvidcap-1.1.7-fix-headers.patch"

In the file:

/src/codecs.c



Change this:

#include <ffmpeg/avcodec.h>
#include <ffmpeg/avformat.h>

for this:

#include <avcodec.h>
#include <avformat.h>



In the file

/src/main.c



change this:

#include <ffmpeg/avcodec.h>

for this:

#include <avcodec.h>



In the file:

/src/xtoffmpeg.c



change:

#include <ffmpeg/avcodec.h>
#include <ffmpeg/avformat.h>
#include <ffmpeg/avdevice.h>

for this:

#include <avcodec.h>
#include <avformat.h>
#include <avdevice.h>



Delete:

#include <ffmpeg/swscale.h>
#include <ffmpeg/rgb2rgb.h>
#include <ffmpeg/fifo.h>

Add:

#include <swscale.h>
#include <rgb2rgb.h>
#include <fifo.h>



Parche: "xvidcap-1.1.7-glib.patch"

In the file:

/src/xvidcap-client-bindings.h

Delete:

#include <glib/gtypes.h>
#include <glib/gerror.h>



Parche "xvidcap-1.1.7-shmstr.patch"

In the file:

/src/capture.c

Chage this:

#include <X11/extensions/shmstr.h>

for:

#include <X11/extensions/shmproto.h>




COMPILATE THE PROGRAM

To compile put in a terminal:

LIBS="-lXext -lX11" ./configure --with-x --enable-libmp3lame --enable-libtheora --without-forced-embedded-ffmpeg make sudo make install

Run with this example:

padsp xvidcap --audio yes --cap_geometry 1280x720[+200+200] --fps 30 --quality 100 --file "Su video.mov"

But audio is not enabled:

xvidcap audio support is not present in this binary

I some of you can make it working please said me at:

wachin.id@gmail.com


BASED IN:

Bug #1113263 “./configure fails with cannot run /bin/bash ./conf...” : Bugs : Guitar Tuner https://bugs.launchpad.net/guitartuner/+bug/1113263

axiak/xvidcap-pulseaudio: Xvidcap support for native pulseaudio and maybe alsa https://github.com/axiak/xvidcap-pulseaudio