Imran's personal blog

August 8, 2012

About video

Filed under: Uncategorized — ipeerbhai @ 1:56 am

Hi All,

I recently began thinking about video recording.  There are two problems I commonly run into:

1. Making DVDs for my not so tech savy parents.

2. Creating permanent copies of pictures and videos, so that I won’t lose memories of my son when I upgrade phones/computers/etc…

I used to think I’d solve these by making DVDs on a routine basis.  But there’s a problem with that — it takes too much time ( even with iMovie ).  So, I thought about how to automate it so that it’s fully automatic.  I’ve been examining what it would take to fully automate the process( or at least to the point where I have ISO files I can just burn ) is that we have many different ways to record video — our phones have cameras and we have a camcorder.

Before I started writing such a complex tool, I wanted to just buy it( or maybe use an online service to do it all ).  I’ve looked at software that already exists, but it’s not automatic enough.  I want to do as little as possible.  So, I’ve been looking at writing up a script to do it all on a Linux box running FFMpeg.

Here’s what I’ve discovered so far:

iPhones email videos @ 480×272, encoded in h.264 with AAC.  The video is in a recorded in a fixed  position ( landscape orientation ), and has orientation metadata used by players to orient it correctly.  I’m still figuring out the max info about items stored in the camera roll.

Blackberry devices email videos @ 640X480 encoded in mp4 and AAC.  I haven’t yet figured out the max info about stored items.

I haven’t figured out the camcorder yet, either.

DVDs are 720×480 or 720×576 ( standard DVD.  Can be HD, but I’ll worry about that later )

In order to concatenate videos together, everything must transcode to MPEG-1, at the same dimensions.  Different sized merged encodes will cause DVD players to do weird things ( like skip the clip, or to crash. )  DVDs, however, are MPG-2 format.  So, there’ll be a lot of transcoding before I get to DVD.  Quality loss could be a serious problem.  I’ll have to use very high quality settings in my encodes.  This means that I’ll probably have to use a cloud service for any significant length of time, as I don’t want to tie the home computer up all day transcoding, merging, applying filter effects, etc…

So, I know I’ll need to use use something like this in FFMPEG:

FFmpeg -i input.VIDEO -vf  “transpose=x; pad:720,480,XXX/2-720,YYY/2-480” -s 720×480 output.mpg

But there are many things yet to figure out to make this work.  I wonder if this will interest other people — or is it just something that would be useful for my family?

Thanks,

Imran

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: