dvgrab / ffmpeg capture / compression

Commands
Linux

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.


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

SK

When speaking about society law control society and also helps protect human's right and believes. In many cases laws will help solve situation and misunderstanding. When there is law people must probably obey by it and will help citizen be more in control. Law help place the right justices were and when it is needed in a community . https://www.dpreview.com/members/8885051028/overview


KAIVEN

When speaking about society law control society and also helps protect human's right and believes. In many cases laws will help solve situation and misunderstanding. When there is law people must probably obey by it and will help citizen be more in control. Law help place the right justices were and when it is needed in a community . https://www.dpreview.com/members/8885051028/overview


you wil get instagram

you wil get instagram followers and photo likes,instagram modules pes pro latest,pes pro instagram modules
instagram modules pes pro latest


You can be a great author.I

You can be a great author.I will be sure to bookmark your blog and will often come. Thanks
gmod free to play


picture how quick time pass,

picture how quick time pass, after August, ber months time already and Setempber may be the 1st Christmas season in my location, I genuinely really like it! http://kerisan271.wixsite.com/review-police


jhon

People with human, financial and social capital marketable beyond their country of origin – the ‘brains’ – are potentially more mobile than others who do not possess such capital. Their departure has long been frowned upon as an irreversible loss for the countries of origin who invested in their education .http://reviewpolice.jimdo.com/


Before you even begin to

Before you even begin to look to get an insurance company Gluten. Thanks gmod free trial


KAIVEN

thanks on your marvelous posting! I quite enjoyed reading it. http://review-police.webnode.com/


Halloween

Halloween will be coming people will do shopping for halloween here i will drop a link of Spirit halloween hour to save your money while halloween shopping.

Spirit halloween hour


Halloween

Halloween will be coming people will do shopping for halloween here i will drop a link of Spirit halloween hour to save your money while halloween shopping.

http://bit.ly/2byUX7e


under my belt

The exact answer to how many views are needed for a video to be declared as viral is still unanswered, hence in view of the viral videos so far, it comes out that a video is viral if it hits at least one million viewers. Just enjoying one million viewers doesn’t place a video in the list of viral videos, at the same time; it is also crucial to note that how much time it takes to achieve that number of viewers, which should be within a few days. In the final brief analysis, when a video becomes renowned or burning news with at least one million views within a week, is rightly said to be a viral video.
under my belt


jeck

I discovered your this post while hunting down data about site related examination ... It's a decent post .. continue posting and upgrading data.Review Police


KAIVEN

This blog post really grabbed my attention. With that said I am going to subscribe. Therefore I will get more updates on what you have to say. Supplement Reviews


UMB Writing Service

It is easier to maintain cleanliness but it is very hard to perform various tasks during the course of cooking if your kitchen is a minor part of a room or house. It is above suspicion that the cleanliness of a kitchen is indispensable, but to ensure cleanliness it is also needed that your kitchen must be equipped with the required facilities availing which, you can ensure the hygiene of the kitchen. A large kitchen doesn’t mean to be a contemporary residential kitchen, let it be down-to-earth with a sink along with hot and cold water, and cabinets.
under my belt


SK

La luz de esperanza es esta convocatoria. Que los diputados y senadores hayan convocado a la sociedad civil es el reconocimiento explícito del fracaso del sistema de representación formal. Review Police


SK

pangit ka posted on: April 18, 2013 At least it is now convenient for me to buy a flooring for my new house. And not only me but for every body who are planning to construct a building. Supplement Reviews


I’m very fired up to show

I’m very fired up to show it to anyone. It makes me so satisfied your vast understanding. Thanks.. gmod free to play


jhon

We provide low-cost but high-quality articles & blog guest comments to our honorable clients. We are a dedicated team of highly qualified teachers and write every word to the core of our heart. Just email the details and receive your work within the deadline.
Review Police


jhon

Many thanks for the exciting blog posting! Simply put your blog post to my favorite blog list and will look forward for additional updates. Simply wanted to write down a word in order to say thanks to you for those wonderful tips. http://reviewpolice16.bravesites.com/


jhon

explore a broader topic rather than focusing on one project, should involve researchers from several US institutions and several foreign institutions, and should lead to multiple collaborative proposals in a new scientific area. Review Police


KAIVEN

Hi there, You’ve done a great job. I will definitely digg it and personally suggest to my friends. I am sure they’ll be benefited from this website . Review Police


jhon

Essay can be a composing writing wherever we've associate degree inclination to might perceive the small print or larger description of that mounted .http://reviewpolice.mee.nu/


KAIVEN

La luz de esperanza es esta convocatoria. Que los diputados y senadores hayan convocado a la sociedad civil es el reconocimiento explícito del fracaso del sistema de representación formal. Porque de otro modo, ninguno de nosotros estaría acá. No es tiempo de reclamos pero si vamos a empezar a hacer las cosas de otra manera, es importante reconocer las responsabilidades.Review Police


KAIVEN

I really like your modern stylish ideas which you have shared about manipulative. This blog provide extraordinary and exact information for which I was searching.http://review-police.jigsy.com/


under my belt

http://www.undermybelt.com/
In biological term, body fat is known as adipose tissue, in a simple word a loose connective tissue. Though fats are essential for your body, hence they are risky in respect of the saying that excess of anything is bad. If the quantity of fat is as much as need by the body, it plays an important role especially as an ‘energy storage agent’ in the shape of lipids.


pawnshop

The Trusted Luxury Items & Electronics Pawnshop in the Philippines.
pawn philippines


under my belt

Some bibliophiles & bloggers might deem this topic “Under my belt” a bit outlandish in a viewpoint, specifically non-native speakers. Under my belt is an Idiom that represents something you learned, experienced and now you are a connoisseur in. The blog primarily encompasses the topics I quested, uncovered, acquired and then moved my pen to write on.

http://www.undermybelt.com/


jhon

cool meinen ersten hab ich in Niedersachsen gemacht und hier in hamburg sind ja auch genug dann klappt das ja schneller als gedacht. Review Police


Home Singapore

Spot on with this write-up, I really feel this website needs a great deal more attention. I’ll probably be returning to read more, thanks for the info!Home Singapore the vales EC


jhon

This is a great opportunity to secure a position in the Australian branch of a well respected International organisation. They are looking for an individual they can develop through the organisation who has a great attitude and energy.Terraria game


SK

Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive .Review


Thanks on your marvelous

Thanks on your marvelous posting! I quite enjoyed reading it. pes pro instagram module latest


first home

The team at Home Mortgage Bank boasts decades of experience in assisting homebuyers with the mortgage lending process.first home


Thanks on your marvelous

Thanks on your marvelous posting! I quite enjoyed reading it. Terraria


JERY

Before you even begin to look to get an insurance company Gluten use in so many products like soap, medical instruments etc. Terraria


heryy

cool meinen ersten hab ich in Niedersachsen gemacht und hier in hamburg sind ja auch genug dann klappt das ja schneller als gedacht .Terraria game


Already using personal

Already using personal smartphones and tablets to access business information and applications. Thanks Terraria


Your post with such a nice

Your post with such a nice topic. Usually I visit your blogs and get updated through the information you include but today’s blog would be the most appreciable. Thanks. gmod


Thanks on your marvelous

Thanks on your marvelous posting! I quite enjoyed reading it. you can be a great author.I will be sure to bookmark your blog and will often come . gmod


jhon

I saw your post a while back and saved it to my computer.
Only recently have I got a opportunity to check it and I must tell you wonderful work.really good post, i certainly enjoy this website, continue the good work. play Gmod Download


Nain

Before you even begin to look to get an insurance company Gluten use in so many products like soap, medical instruments etc. gmod free


Before you even begin to

Before you even begin to look to get an insurance company Gluten use in so many products like soap, medical instruments etc. PSD to html


Thanks on your marvelous

Thanks on your marvelous posting! I quite enjoyed reading it. you can be a great author.I will be sure to bookmark your blog and will often come . play Gmod


gmod free to play

An intriguing dialog is value remark. I feel that it is best to compose more on this matter, it may not be a forbidden theme however normally people are insufficient to chat on such subjects. To the following. gmod free to play


Before you even begin to

Before you even begin to look to get an insurance company Gluten use in so many products like soap, medical instruments etc. https://terraria197.wordpress.com/


Post new comment

More information about formatting options