Digitizing Media with Linux

Hello, faithful readers – all two of you –

Be warned that this is another Linux post, intended for me to keep track of a task I’ve done, so if I need to repeat it, I don’t have to reinvent the wheel from scratch.

Today’s task: to record video from my old VCR into my computer.

If you wanted to do this on your own Linux computer, you’d need:

  • a computer
  • a video capture card
  • a vcr
  • wires to hook everything together

Specifically, you’d need to make sure that your vcr output is going into the video capture card’s input. On my setup, I’m using a pcHDTV 3000 card, and I’m using the composite input. That’s considered “input 1” in the code below.

I’m using Mencoder to record the video, as I like the settings it has: I get a good balance of quality video and size with the setting below.

#!/bin/bash

export MAIN_DIALOG='
  <window title="MyDVR" icon-name="gtk-preferences" resizable="true" decorated="true" width_request="320">
 <vbox>
  <hbox>
    <text>
      <label>Time to record (hh:mm:ss):</label>
    </text>
    <entry activates_default="true">
      <default>00:00:05</default>
      <variable>ENTRY1</variable>
    </entry>
  </hbox>

  <hbox>
    <text>
      <label>Name of recording:</label>
    </text>
    <entry editable="false">
      <default>MyMovie</default>
      <variable>ENTRY2</variable>
    </entry>
  </hbox>

  <hbox>
      <button>
        <label>Record!</label>
        <action>xterm -e mencoder tv:// -tv driver=v4l2:device=/dev/video0:norm=NTSC:input=1:width=720:height=480:audiorate=44100:alsa:adevice=hw.0:brightness=17:contrast=0:hue=0:saturation=0 -oac copy -ovc lavc -noskip -quiet -vf crop=720:460:0:20 -vf yadif=0.5 -lavcopts vcodec=mpeg4:vbitrate=3000 -endpos $ENTRY1 -o  "$ENTRY2.mp4"</action> 
        <action type="exit">OK</action>
      </button>
      <button>
        <label>Cancel</label>
        <action type="exit">Exit</action>
      </button>
    </hbox>
  
 </vbox>
</window>'

gtkdialog --program=MAIN_DIALOG

So, this may not have been the most interesting post I’ve ever written, but I’m putting it up here so I can refer to it later if need be. Thanks for your patience, readers!

Advertisements

0 Responses to “Digitizing Media with Linux”



  1. Leave a Comment

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




Pastor Ed Backell

Flickr Photos

Pastoral Tweets

  • Check out this photo of Pho Yelm Restaurant on #Yelp yelp.com/biz_photos/pho… 1 day ago
  • How Does God Show Us He Loves Us? God Brings Us Into His Family (Romans 8:14-16) 2 days ago
  • God chooses US, just like He chose Jacob. He calls us His own; we belong to God, and there’s nothing we can do to break God’s promise to us. 2 days ago
  • How Does God Show Us He Loves Us? God’s Plans Change Us (Genesis 28:16-19) 2 days ago
  • How Does God Show Us He Loves Us? God Has Plans For Us (Genesis 28:10-15) 2 days ago

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 774 other followers


%d bloggers like this: