dvgrab / ffmpeg capture / compression


Recently I volunteered to record video for the DrupalCamp Seattle 2008. It quickly dawned on me that to record 10 hours of video, bring it home and capture it to disk and then compress it would take 30+ hours. Also, that wouldn't be anywhere close to live and they were hoping to post the video as soon as possible. Since I am only running Linux on my laptops now, I decided to see what could be accomplished via command line tools in Linux. I quickly stumbled on ffmpeg and dvgrab. DVgrab can capture raw dv from firewire and has features for detecting scenes when capturing from tape. FFMPEG can also capture directly from the firewire, but specializes in converting (transcoding) video from one format to another.

When capturing directly from firewire using ffmpeg I would get glitches every now and then.

ffmpeg -f dv -i /dev/dv1394/0 -target ntsc-svcd output.mpg

FFMpeg takes an input file (or multiple input files) and an output file.
The parameters for each come before the file.


If I tried writing raw DV from ffmpeg I would get IO errors basically stating my computer couldn't andle the throughput.

But, dvgrab worked flawlessly!

dvgrab -format raw test.dv

Since both can use pipes I tried piping dvgrab directly into ffmpeg.

dvgrab -format dv1 - | ffmpeg -f dv -i - -target ntsc-vcd test.mpg

This worked wiithout any glitches.
 So the next step was to figure out which format would give me the best compression vs. quality.

To do this I wrote a perl script which allowed me to easily experiment by converting a raw dv input file to various formats.
I have attached that script called encodetest.pl below.

After experimenting, I decided to go with flv since the video was to be posted to blip.tv, and blip.tv will convert anything posted to flv accept for flv which it leaves alone.
I tried posting some short xvid samples, ad they were taking an hour or more for blip.tv to convert, so flv had the additional advantage of being available instantly.

Next I wrote a very tiny perl script to encode video using the current timestamp as the filename and added it as a command to my desktop. Now all I had to do is literally click an icon to record and compress video to the conference. I have attached this perl script as well named rec_druplicon.pl

essentially the command it produces is:

dvgrab -format dv1 - | ffmpeg -deinterlace -f dv -i - -f flv -vcodec flv -s 480x270 -aspect 16:9 -qscale 3.5 -acodec libmp3lame -ab 32k -ar 22050 timestamp.flv


So how did it turn out?

As far as the recording, it went flawlessly. I was even able to post some of the videos during the next talk. The conditions could have been better. For some talks the lighting was poor in that the ambient light in the room was too bright to see the projector. In the main theatre, I was in the far back of the room and there was no PA, so the audio is faint, but the realtime recording/encoding worked better than expected. You can view all of the recordings at http://seadug.blip.tv/posts?view=archive&nsfw=dc

Some of the benefits of realtime encoding.
1. I could change tape without interupting the hard disk recording.
2. I could stop and start which automatically created multiple files named by timestamp.
3. All of the video from 2 days of recording fit easily n a DVD.
4. Most important, no slow post capture / compression so I was done as soon as I left the conference.

encode_test.pl.txt12.82 KB
rec_druplicon.pl.txt956 bytes
(Thanks to everyone who comments)

On the steel Source

On the steel Source codes
Ways for one pointlocate the spice
Passive roll to connect less fix simple
Oil to street likes Bheek ride plan
Lone your mark fixes Oken paul switch
Ready to share more works slide one teo
Lean the margin juine narrow pos
The straw with pans point with sample

With this method, you may e

With this method, you may e book a trip with and get extra bang for my buck!!!! my weblog; play Gmod

Yes to stick

Joke to the slim simply get 100 contest votes
And to the top side Get free effective online contest
Start from the best Easy facebook photo contest votes
From easy level to top Yes to voting services
Helps to share from Achieve easy online votes
With the powering help Tool to connect your friends
Tools are simply connected to vapulsemedia
When you want to store vapulsemedia
Gear your needs today vapulse media
Yes for the new one to vapulsemedia.net


this apps is balest must sue it DAEMON Tools Pro 7 Crack
also its best and biggest android app Corel Windvd Pro 11 Activation Code
aiseesoft fonelab 8 crack
we now , each student has best laptop and for best laptop , they want to free softwares that is tomshardwares.com
and best setup and crack latst upcomming softwares www.flamboyantly.info
and also League of Stickman Samurai Apk

Fantastic efforts! First of

Fantastic efforts! First of all I like the idea of your blog and second thing i like is the way you have presented your thoughts. play Gmod

Dalaman rent acar

I want to thank you for sharing this useful information . Keep posting such useful information . You are doing right job . http://www.rentacar-dalaman.com

prodotti x erezione naturali

Hey all! I've got to say your blog post is certainly decent. My group is as a result shocked to enjoy a book this particular blog post. At present go here prodotti x erezione naturali Bless you designed for attractive writing.

Hi, Nice Post. Thanks for

Hi, Nice Post. Thanks for sharing this useful information with us. cbseresults.nic.in cbse 10th result cbse 12th result www.results-gov.in results 2016

SSC Result

Packers and Movers India

How do you make this kind of article, this was not just detailed it is also resourceful.
Packers and Movers Chennai @
Packers and Movers Thane @
Packers and Movers Navi Mumbai @
Packers and Movers Faridabad @
Packers and Movers Ghaziabad @

Packers and Movers India

I love this post. Keep on posting more like this.
Packers and Movers Gurgaon @
Packers and Movers Bangalore @
Packers and Movers Delhi @
Packers and Movers Noida @

Packers and Movers India

Very well written and explained. Enjoyed reading - Please visit for More information about -
Packers and Movers Pune @
Packers and Movers Hyderabad @
Packers and Movers Mumbai @

Check Cashing

Outstanding live. I needed closer to regards from this awesome study. I simply make an effort to highly valued all of the small to medium sized the software once. In these days go along with this approach Check Cashing Regards quite a lot utterly produce achievements it goes without mention keep on making.

What is rental property management?

Doing research about rental property management program? will this options is where you can purchase a rental property online. But there are many responsibilities required visit our official website to learn more things.What is rental property management?


Hey ! Thanks for sharing - www.votesfactory.com


Nice Article..

agen bola secrets

Way cool! Some very valid points! I appreciate you penning this article plus the rest of the website is also very good.agen bola secrets

bola tangkas


Thanks for such a great article here. I was searching for something like this for quite a long time and at last I’ve found it on your blog. It was definitely interesting for me to I read about web applications and their market situation nowadays. thanks one more time and keep posting such nice ones in the nearest future too
GATE 2016 ResultBest Morning QuotesPlus one Improvement exam result 2015Kerala Hse Plus Two (+2) Result 2016Kerala Hse Plus One(+1) Results 2016jobs
Kerala Hse Result 2016cbse Result 2016
aipgmee2016results10 Result 2016
sslc Result 2016newyear2016
Get thisCheck AvailabilityTrendingnewsTrendingnews


Thanks for sharing itunes codes free


You can get unlimited generatoe codes and itunes codes,gift card for i phone to get this link. http://itunesgiftcardcodesfree.com

And It Works

Very glad to see that someone found this and that it helped. Thanks for leaving a comment too!This is one of the good articles you can find in the net explaining everything in detail regarding the topic. I thank you for taking your time sharing your thoughts and ideas to a lot of readers out there

thanks nice blog

I am thankful for the article.Really looking forward to read more.new year 2016 happy new year 2016
bonne année 2016 Journée internationale des droits des femmes 2016

great post


great post


Check Cashing Spring-Valley

Me including ones working hard with and may lose time waiting for far more write-up seeing that by people seeing that write-up afforded everyone joy and provides many aids you to complete similar do the job here. At this point stop by Check Cashing Spring-Valley My business is likewise presenting some sort of referrals web page link of this blog site around my research study. Appreciate it intended for placing like beneficial information. Hold placing.


Find the best essays and term papers only on http://essayservicey.com! The best and reliable!

Millions are seeking relief

Millions are seeking relief using the same kind of outdated devices that only turn out costing energy and income. The so-called comfort just uses a different way of debt. You'll find better approaches. rainbow-finance

Scientific works inside theories involving finances along with credit, good specification in the research subject, are characterized to get many-sided along with many-leveled. vipcarfinance

Looking to teach your kids about income management? The sooner you start this procedure, the easier it's going to be for your kids to acquire financial habits that could benefit the puppy for a long time, and reduce them via moving household after higher education in critical debt. teachingfinance


king of thieves hack
También fue algo confuso para muchas personas. Aunque casi cualquiera puede ver cuánto más difícil se ha vuelto hacer un beneficio poner premium sólo para iPad juegos de rol, Vogel siempre parecía dedicados a la base de fans que había construido en la plataforma.

king of thieves trucos

Essay writing help!

I always like college workshops! Here is a resource for you guys that will help you to pass all your university tasks!

They inferred that scholarly

They inferred that scholarly 70-463 vce constancy and execution enhances when understudies are taught to create positive outlooks and are likewise taught viable learning VCP510-DT vce methodologies. They found that understudy determination is a result of scholarly mentalities and metacognition and self-administrative aptitudes 642-887 vce

tips and clues

Most of the students loose their minds during exams and tests. Using skilled assisatnce may help you to save your time and get fine results at your test.
Open source on demand.

payday loans

You need to be a part of a contest for one of the most useful blogs online. I most certainly will highly recommend this website!payday loans


Your blog post is just completely quality and informative related to traders hits.. Many new facts and information which I have not heard about before. Keep sharing more blog posts.

club penguin code

this is the best place to get unlimited cheats and codes of club penguin if you are looking for club penguin free membership then visit here

club penguin code

this is the best place to get unlimited cheats and codes of club penguin if you are looking for club penguin free membership then visit here


Well somehow I got to read lots of articles on your blog. It’s amazing how interesting it is for me to visit you very often.

The education regarding

The education regarding meaning beliefs becomes necessary regarding greater existence. The value of the part of write my papers very fast grabessays.com neighborhood holds the beds base regarding contact. The persons interact jointly using this type of mechanism.


Clash of clans hack
In recent years, Android is a platform and ecosystem grown tremendously. It surrounds us and is growing for many meaningful. We feel it (partly because of) our task to enrich technology for everyone to make it understandable and show how Android your life. Our slogan Discover the power of Android is key.
clash of clans gems hack

Hydroxycut Reviews

Thanks so much with this fantastic new web site very fired up to show it to anyone. It makes me so satisfied your vast understanding and wisdom have a new channel for trying into the world..
Hydroxycut Reviews

A student really should

A student really should sense satisfy anytime they tidies up or matches any kind of task together with success. They wouldn’t possibly be confounded in addition trust paper wrіtіng to uncertain. They need to be self-assured at their expertise in addition to skills.

The actual politics

The actual politics scientific disciplines is usually a systematic examine involving condition and its companies. The study us essay wrіtіng servіce involving government, it is areas for instance legislature, account manager and also judiciary.

Zoology would be the study

Zoology would be the study involving animals that has established his comment is here UN universe. It relates to your located design, their composition.


Every single student has his favorite teacher. Next to his teacher he feels at ease. That is a huge trouble in various students. They GrabMyEssays wrіte my papers will show unpredicted actions having different teachers which appear to never end up being great.


This is what I have been searching in many websites and I finally found it here. Amazing article. I am so impressed. Could never think of such a thing is possible with it...I think you have a great knowledge especially while dealings with such subjects. SlimQuick

Post new comment

More information about formatting options