Quantcast

Forums | MacLife

You are not logged in.

#1 2009-08-29 3:56 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50394
Website

Mini DV, kino, transcoding

I recently acquired a Mini DV camcorder.

The plan is to make short video clips of encounters with wildlife (mostly reptiles and amphibians) for the web.
I can use Linux to eat the DV via firewire and kino to edit the dv.

I haven't tested the DV ripping yet as I need both a head cleaner (cheap) and a replacement DV cable (also cheap) but what I want to do after edting -

transcode and resize to:

Ogg Theora, mp4, flash flv

The plan is to use html 5 with ogg and mp4 so that any html5 capable browser (right now just firefox and safari) will just play it, with flash as a fall back for IE etc.

I can use ffmpeg2theora for the creation of theora.
I can probably use ffmpeg for the creation of the mp4 but I think I'll use a Windows PC with QuickTime Pro just because I don't want to be sued for not using software that licenses the patent from the MPEG group, and I suspect using QuickTime is less likely to have headaches where it doesn't work - can QuickTime Pro do a straight transcode / resize from a dv file to mp4 that safari can play?

I haven't investigated how to do the flv yet - but I believe there are free linux tools.

Next question is about sizing -

I shot some video with consumer digital camera that produced a motion jpeg in an avi container with a 4:3 aspect ratio.
When I ran ffmpeg2theora on the avi and told it to resize to 400 width, it produced a 400x300 video, but the sound was screwed.

I then used kino to import the motion jpeg to dv, edited the clip, and saved as dv.
Then when I used ffmpeg2theora on the result, the sound was good but the aspect ratio had changed - instead of 400x300 I got 400x266. I'm guessing that is because dv standard is 720x480 so kino on import had to change the aspect ratio, is that correct?

If so, then going from MiniDV to kino shouldn't be a problem. However, I read on some blog that it is best to keep both dimensions as a multiple of 16 when resizing video. Why is that, and is it really necessary?

Thanks for suggestions.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#2 2009-08-29 8:52 am

avkills
demyelinated brain matter
Registered: 2001-05-09
Posts: 7094

Re: Mini DV, kino, transcoding

The resize problem is due to the fact that the consumer digital camera was recording in square pixels, since that is what computers use.  DV video uses non-square pixels, hence why it looks a little stretched out on computer displays. Most editing software has a switch to view it as either compensated or not.  Both are still 4:3 aspect, just the pixel size is different.

Have not heard about the multiple of 16 before; but I know you can hose the field order going from DV to MPEG-2 if you crop , which then makes it look like crap on a TV.

-mark

Offline

 

#3 2009-08-29 12:35 pm

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50394
Website

Re: Mini DV, kino, transcoding

OK - it looks like the factor of 16 is necessary for divx/xvid.
It seems not technically necessary but compresses better.

I'll probably stick with it even though not using divx/xvid.

I'll have to look into the square vs rectangle pixel thing - since my target is computer I don't need rectangle pixels.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#4 2009-08-29 8:26 pm

sturner
Royal High Poobah
Moderator
From: Carrollton, TX USA
Registered: 2000-01-31
Posts: 13779

Re: Mini DV, kino, transcoding

Look into ffmpeg.


I'm not dead yet.
There are 3 types of people, those who can count and those who can't.
"There are few things graven in stone, excepting your date of death."

Offline

 

#5 2009-08-29 9:45 pm

avkills
demyelinated brain matter
Registered: 2001-05-09
Posts: 7094

Re: Mini DV, kino, transcoding

DV is going to have non-square pixels whether you want them or not.  However, whatever you use to compress should be able to turn the result into the something that is square pixel, computer friendly.

-mark

Offline

 

#6 2009-09-02 5:22 pm

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50394
Website

Re: Mini DV, kino, transcoding

Thanks.

What was suggested I do for computer display is save as dv from kino and then use ffmpeg2theora specifying both width AND height back to a square pixel 4:3 ratio.

With the 4:3 mjpeg I've been playing with, importing into kino, editing, saving as dv, and then using ffmpeg2theora specifying  -x 384 -y 288 resulted in a video that looked right on computer screen.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson