Installing AGVCRToMPEG2 on 9.04

AGVCRtoMPEG2 – is an old and outdated program that can convert your AGVCR recordings to avi or mp3.

README can be found at https://svn.ci.uchicago.edu/svn/if-media/AGVCRToMPEG2/README

Dependencies from apt repos:

  • Scons
  • Subversion
  • Build-essentials
  • libgsm
  • libsamplerate
  • libz

sudo apt-get install scons subversion build-essential libgsm1-dev libsamplerate-dev libz-dev

Download the code form the svn repository

svn co https://svn.ci.uchicago.edu/svn/if-media/AGVCRToMPEG2

We have to use the exact version of ffmpeg that he used in development since he has used superseeded functions from the ffmpeg libiary

svn co svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg -r 5652

Configure and Make ffmpeg (don’t install unless you want to)

cd ffmpeg

./configure

make

Next we have to edit the scons file in cd ~/AGVCRToMPEG2 , it is meant to take the command argument of where you complied the version of ffmpeg but it seems to use old and outdated scons code so we hard code the location in.

Using your favourite editor e.g vim SConstruct

On line 23:

ffmpeg_path = env[‘ffmpeg_path’]
#ffmpeg_path= /home/jack/D/project/ffmpeg

change to

#ffmpeg_path = env[‘ffmpeg_path’]
ffmpeg_path= ‘/home/carma/ffmpeg’

replace carma with your username

We can now attempt to compile the code with the the command scons. but your most likely to get errors due to poor C++ coding most are just related to messing #includes

The following files will need to be edited:

AGVCRToMPEG2.cpp
VPMedia/video/h261/VPMH261ASEncoder.cpp
VPMedia/video/h261/VPMH261Encoder-mash.cpp
VPMedia/video/VPMVideoBufferSink.cpp
VPMedia/video/VPMVideoAssembler.cpp
AudioMixer.cpp
VPMSSRCManager.cpp

To make things easier attached is the output of svn diff AGVCRTOMPEG2_904update.patch Note gunzip because of wordpress security doesn’t allow patch files.

gunzip AGVCRTOMPEG2_904update.patch.gz

now patch

patch -p0 < AGVCRTOMPEG2_904update.patch

Compile attempt 2

scons

Readme contains many examples and hopefully you now have a working system.

One thought on “Installing AGVCRToMPEG2 on 9.04”

  1. Just a note

    tested and works fine producing mp3s.

    ts files are still jerky

    through it’s hard to tell because the dell Intel HDA sound card doesn’t work on 32 bit ubuntu worked fine in 64bit confusing..

Comments are closed.