Вы находитесь на странице: 1из 7

Partners

Support
Community
Ubuntu.com

PageHistory
Logintoedit

Search

HowToCaptureDigitalVideo

UnsupportedVersion
ThisarticleappliestoanunsupportedversionofUbuntu.
More
info...

CandidateforDeletion
Thisarticlemaynotbeappropriateforthiswiki,andmaybe
deleted.Moreinfo...

#titleCapturingDigitalV
ideoThispageisnotcurrentanddescribesmethodswhichdonotapplyto
currentreleasesofUbuntuandKino.Pleaselookatthe
Firewirepageforcurrentinformation.
DuncanLithgow

HowtoCaptureDigitalVideoonthe
UbuntuGNU/LinuxPlatformUsingOnly
OpenSourceApplications
Thisguideshowshowtoconfigureani386systemrunningUbuntu(DebianbasedGNU/Linux)to
capturefromadvdevicethroughanieee1394(firewire)interface.Thisisastepbysteptutorialthat
assumesthatthereaderhasverylittleexperiencewithLinuxsomanypartsoftheexplanationscan
beskippedoverbymoreexperiencedusers.Thepurposeofthistutorialisnotonlytoexplainhow
tosetupvideocapturebutalsotogivepracticalexperienceforanyonewishingtolearnhowUbuntu
functions.WewillusetheSynapticPackageManagerforinstallingsoftwarepackagesaswellasthe
oldschoolmethodofdownloadingandcompilingsourcecode.Thisshouldserveasasubstantial
foundationforanyonenewtotheUbuntuLinuxplatform.

Ifatanypointinthistutorialyoufeelfrustratedbytheintricaciesofthetechnologicalpedantryherein,
I'dliketoinviteyoutohaveareadof mypersonalblog (linkdead)tohelprelieveyourstress.(Don't
worry...itsnotthatdif
ficult...justlotsofnewstuf
ftolearn.)
yourhappyslave,ekendradas(linkdead)

Kino:DigitalVideoforLinux
Theexampleusedinthistutorialisbasedonthesespecifications:

box:
hppavillionze5300notebookw/builtinieee1394(firewire)port
os:

UbuntuGNU/Linux 4.10(TheWartyWarthog):October2004.(Wartyisnolonger
supportedbyUbuntu)

dvdevice:
PanasonicNVGX7DVCamera(PAL)

ConfiguretheSynapticPackageManager
ThefirstthingweneedtodoistoconfiguretheSynapticPackageManagertolookintorepositories
thatarenotinUbuntu'smaindistribution.T
odothistakealookatAddingRepositoriesHowto

relatedinformation:

Ubuntu'sSoftwareComponentStrategy
(linkdead)

AnListofUbuntuCompatiblePackages

DownloadandInstallPackagesViatheSynapticPackage
Manager
NextweneedtosearchtherepositoryforthesoftwareneededforcapturingfromaDVdevice.The
mainsoftwarewewilluseiscalled
Kino.Itreliesuponseveralotherpiecesofsoftwaretorun
properlythough.W ewilladdressthatlater
.FornowjustclickonsearchintheSynapticPackage
Managerandlookforapackagecalled kino(withoutthequotes).Underneaththetextboxinthe
searchpanelisadropdownmenu.Setthisto'name'andthenclick'search'.Ifyoureloadedthelist
ofavailablepackagesinsteponeyoushouldhavealistofpackagesshowupinyourmenuwiththe
characterskinowithinthename.

https://www.ubuntulinux.or
g/wiki/spmKino
(linkdead)

Nowselectthekinopackagebyclickingonthetickboxtotheleftofthename.Select'Markfor
Installation'onthemenuthatpopsup.

https://www.ubuntulinux.or
g/wiki/screencapture.png
(linkdead)

Adialogueboxwillmostlikelyshowupaskingyoutomarkadditionalrequiredchanges.Justclick
onmark.

Nowyoushouldselecttheothertwopackagesinthemenu,namely
kinodvtitlerandkino
timfx.Nowdoanothersearchfordvgrabandselectitinthesameway
.alsoimlib1devand
libxml2andlibxml2devandlibdv4makesurebuildessential,xdevandesoundare
installedormarkedforinstallation.

Ifinanyoftheabovestepsadialogueboxopensupaskingtodownloaddependenciesthen
justagree.

Afterallhasbeenselectedclickon
applyandafterreviewingclick'apply'again.

Theselectedpackageswillnowdownloadandafterwardsaterminalwillpopupandinstallthe
recentpackagesintotheproperplacesonyoursystem.Whentheterminalreads
Successfully
appliedallchangesjustclosethewindow
.YoucanalsoexitoutoftheSynapticPackageManager
atthistime.

Thatpartwaseasy.Thenextmethodrequiresabitmorelearning....

relatedinformation:

LinuxDigitalV
ideo(Kino)Homepage

http://packages.ubuntu.com/
ListofRequiredHardandSoftware

DownloadSourceCodePackages
Nowthatwe'vedownloadedandinstalledourcorecomponentsweneedtodownloadandcompile
somecodecsanddriversthatworkspecificallywithoursystem.Theadvantageofcompilingdrivers
fromsourcecodeourselvesisthatitismorelikelytorunonoursetupthanagenericallydistributed
binary.Alsomodificationscanbemadebythosewithtechnicalinclinations.

Forthiswewillagainneedtodownloadsomefilesbutthistimewewilldoitthroughthebrowser
here.Pleaseputtheminaconvenientlocationonyourhdd.

Herearethefiles:

libraw13941.2.1(driverstoconnecttoyourieee1394interface)

libavc13940.5.3(driverstooperatetheplaybackcontrolsonyourdvcamera)

libsamplerate0.1.2

audiofile

relatedinformation:

IEEE1394forLinux

SourceForgesiteforlibavc1394

SampleRateConversionCodeHomePage(meganerd.com)

NextwewillneedtodosomethingthatW
indozeuserswillhavetoget
theirheadaround.For
anyonefamiliarwiththeoldDOSsystemsthis
shouldallseemvaguelyfamiliar....

CompilingandInstallingaPackageViatheCommand
Prompt
Nowweneedtoopenarootterminal.Thisisatextualinterfacewherewe
cantypecommandsto
Applications>SystemTools
thesystemattheprompt.Justclickon
>RootTerminal

Adialoguethatlookslike
thisshouldpopup.

Justenteryourrootpasswordagainwhenpromptedandthenourterminalwillopenup.Notethat
thereisadifferencebetweenarootterminal suchasthisandanormalterminal.Theroot
terminalallowsustoexecutecommandsthatwillef
fecttheconfigurationofoursystemandinstall
sudoprefix
packages.Thenormalpromptwon'tallowthisunlessweloginasarootuserusinga
beforeallofourcommands.That'sanothersubjectaltogether
.

Thisfirstlinewiththeblinkingcursorisacommandprompt.Hereiswherewewilltypeour
instructions.

Firstweneedtonavigatetothedirectorywherewedownloadedtheabovedriversandcodecs.

Thecommandstouseforthisare:

dirlistscontentsofdirectoryincludingfolders.
cd/returnsustotherootdirectory

cddirectorynamefromtherootdirectorywecanmoveintodirectoryname(Ifwearein
therootdirectoryweneedtoputtheforwardslashotherwisewejustuse
cddirectoryname
andthatwillmoveusintothefolderwhere
directorynameisthenameofthefolderwewant
tonavigateinto.)

cd..takesustothedirectorydirectlyabovethepresentone

Sometimesitcanbeabitdauntingtonavigateintoafolderduetospellingetc...ithelpstousethe
dircommandfirstbecausethespellingistheninview
.Ifthereareanyspacesinthenamesofyour
folders(aWindozehabit)youwillneedtoeitherrenamethemoruseabackwardsslashbeforeany
spacesinthenameex.afoldernamed"stuf
fforkino"wouldbeopenedbyentering
cdstuff\for\kino

Anothertipistousetheupanddownarrowstoscrollthroughpreviouscommands.Thiscanmake
enteringcommandseasierandpreventtypos.

dirsothat
Onceweareinthefolderwherewedownloadedtheabovepackagesweshouldtype
wewon'tmessupthespellinginthenextsteps.

Thefirstpackagewewillextractcontainstheieee1394drivers.Thecommandforuncompressing
.tar.gzarchivesisthis:

tarxzvflibraw13941.2.1.tar.gz

Nowalotofstuffshouldcomeflyingdownthepageandafterawhileanothercommandprompt
shouldappear.Type<b>dir</b>again.Nowyoucanseethereisnowadirectorywhereallofthe
contentswereextracted.Inthisexamplethedirectoryiscalledlibraw13941.2.1

cdlibraw13941.2.1 )andhavealook
Nextweshouldnavigateintoournewdirectory(
around(dir).

Wenowareatthemissioncriticalstageof
configuring,compilingandinstallation
.
Toconfigureourpackageweneedtotype ./configure attheprompt.Somepackagesmight
haveaslightlydif configor
ferentspellingsobecarefultohavealookinthedirectoryfor
configure orsomethingsimilar .Lotsofstuffshouldappearhereandattheendweshouldbe
givenanotherprompt.Ifallofthestepsabovehavebeenfollowedweshouldn'tgetanerror
message.

Nowtocompilethesourcecodewetype make(Lotsmoregibberishylookingstuf
fshouldappear
forawhileandthenwearereturnedtothecommandprompt.)

Nowtypemakedev tocreateadevicefile.

Nextweneedtoinstallournewlycompiledbinary .Todothisjusttypemakeinstall andallof


thefileswillgointotheappropriatedirectories.

makeclean attheprompt.
Finallyweneedtocleanupthingsbytyping

Inmostcasesthat'sreallyallthereistoitandwewoulden'thavetousethemakedevcommand.
Youcanconcatenatethemaketar makeinstallclean later.
gets,sowewilluse

NowtounpackourDVPlaybackControllers...

cd..)
navigateuponedirectory(

tarxzvflibavc13940.5.3.tar.gz

cdlibavc13940.5.3

./configure

makeinstallclean

anotherdriver:

cd..)
navigateuponedirectory(

tarxvflibsamplerate0.1.2.tar.gz

cdlibsamplerate0.1.2

./configure

makeinstallclean

gettingthehangofthis?

nowtoinstallouraudiocodecs...

cd..)
navigateuponedirectory(

tarxvfaudiofile_0.2.6.orig.tar.gz

cdaudiofile0.2.6 (watchspellinghere,orjustpresstheT
ABkeyaftertypingthe
firstfewletters)

makeinstallclean

That'sallweneedtoinstallfornow
.Nottoobadwasit?
relatedinformation:

AGoodTutorialOnInstallingPackagesV
iatheCommandPrompt

AnotherUsefulGuide

CommandLineT
utorials

[http://www.gzip.org/#faq6gzip.org

AHack(Getusedtoit.)
Becauseubuntuhaven'tintegratedraw1394driversupportintotheirpackageyetweneedtotake
extrameasuressothatourdevicesarerecognizedbythesystem.Thishastobedoneeachtimethe
systembootsupsowewillneedtoeditabootconfigurationfiletocreateadevicenodecalled
<b>/dev/raw1394</b>thatwillbereaduponstartup.

attheprompttypegedit/etc/init.d/bootmisc.sh
scrolldowntothebottomofthedocumentbypressingthedownarrow

copytheeditbelowtoyourclipboard(
ctrl+c)

#BeginEdit.20041031RCBAddedtohopefullygettheraw1394devicenode.

mknod/dev/raw1394c1710

chownroot:video/dev/raw1394

chmod666/dev/raw1394

#EndEdit

justabove whereitreadsexit0(usectrl+V)
pasteitatnearlythebottomofthefile

nowsavethefile(Ctrl+S)andexit.

Nextweneedtocreatealauncherforkinoonthedesktop.Thisis
similartoashortcutinW
indoze.

Itssimple.

Justgotothedesktop(clickonthedesktopgraphiconthebottomleftofyourscreenin
GNOME).

rightclickondesktop>CreateLauncher

kinoisagoodidea)
inthe'Name'fieldtypewhatevernameyou'dliketouse(

kino
inthe'command'fieldtype

makesure'type'issetto'application'
chooseaniconifyoulike

Done!Wenowjustneedtorebootthesystem.Whenwe'rebackupandrunningjustbrowseback
tothispageandcontinueonifyouwantafewmoretipsforcapturingdvfromacamera.

===relatedinformation:===

SomethingGoodtoRead
UponreturnyoucanconnectyourdvcameraandthenstarttheKinoapplication(don'tfor
getto
turnthecameraon ).Ontherightsidethereisatabthatsays
capture.Clickthereandthenclick
onAV/Ctoenablecameracontrols.

Nowyoucanjustnavigatearoundthetapeinyourcamerabyclickingthecontrolsthere.Clickon
capture(withtheredlight)whenyougetthetapewhereyouwantit.

Helpfile:file:///usr/share/kino/help/index.html

ThehelpfilehasverygoodinformationforhowtoconfigureKinoforoptimumperformance.

relatedinformation:

http://kino.schirmacher
.de/dcforum/dcforum?az=show_topics&ampforum=100
Kinosupport
Forum

Hopethishelps.Icouldwritemorebutthentherewouldn'tbeanythingforanyonetowikiabout.
It'dbenicetohavearelatedpageforvideoinformationbutuntilIhavethetimeIcan'tputanything
up.Dropmealinefrommyblog http://www.gopinatha.net/journal/mrdanga.php sometimeifyou'd
liketodiscussanythingregardingstreamingmedia,internetapplicationdesignorifyoujustwantto
talkaboutthemeaningoflife.

Andremember...ifanythinggetsyoudown...shout
gorungaa!!reallyloudandamazingly
you'llfeelgood.

gorungaa!!

yourhappyslave,ekendradas

FromIngoLantschnerSunJan1610:27:40+00002005From:IngoLantschner Date:Sun,16Jan
200510:27:40+0000Subject:Error2duringmake MessageID:
<20050116102740+0000@https://www.ubuntulinux.or g&gtIfyougetanerrorduringmake,thisis
propablyduetoaspaceinthe
path.F.e.ifyoudownloadedandunpackthetarballsin
"/home/ingo/My Downloads/Video"youhaveablankin"MyDownloads"(btw .asillydefaultof
Firefox).Solution:RenametheFolder"MyDownloads"to
"MyDownloads"mvMy\Dowloads
MyDownloadsandtypemakeagain.AndManythankstoekendraforthisexcelentHowto!!!!!

HowToCaptureDigitalV ideo(lastedited2011051107:19:04by
https://login.launchpad.net/+id/ByrCsdA@vpn3206.gwdg.de[134.76.3.206]:
jengelh)