<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SupremeTechs &#187; record analog video in linux</title>
	<atom:link href="http://supremetechs.com/tag/record-analog-video-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://supremetechs.com</link>
	<description>Anything and everything techy</description>
	<lastBuildDate>Mon, 07 May 2012 11:47:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Adventures in analog video recording on Linux</title>
		<link>http://supremetechs.com/2009/07/28/adventures-analog-video-recording-linux/</link>
		<comments>http://supremetechs.com/2009/07/28/adventures-analog-video-recording-linux/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 06:50:28 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[analog video in linux]]></category>
		<category><![CDATA[record analog video in linux]]></category>
		<category><![CDATA[recording vhs in linux]]></category>
		<category><![CDATA[vhs to avi in linux]]></category>
		<category><![CDATA[vhs to dvd in Linux]]></category>

		<guid isPermaLink="false">http://supremetechs.com/wordpress/?p=398</guid>
		<description><![CDATA[Linux does many things well, but the multimedia experience can be lacking without the correct bit of hackery. I mean, some cool things can be done with Linux on the multimedia side, but typically it'll take a lot of work to learn how it's done. Mac and Windows make complex things simple, while Linux makes [...]<p><a href="http://supremetechs.com/2009/07/28/adventures-analog-video-recording-linux/">Adventures in analog video recording on Linux</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> does many things well, but the multimedia experience can be lacking without the correct bit of hackery. I mean, some cool things can be done with <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> on the multimedia side, but typically it'll take a lot of work to learn how it's done. Mac and <a href="http://supremetechs.com/category/windows/" >Windows</a> make complex things simple, while <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> makes simple things complex.</p>
<p>Back when I purchased my TV tuner card for my PC, I was using <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> as my main OS. I still use it daily but not on my main PC. Only occasionally do I boot to <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> on it. I typically run <a href="http://supremetechs.com/category/windows/" >Windows</a> Server 2008 as I've talked about on previous posts. When I bought the tuner I wanted to make sure that it worked under <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a>. So, I purchased one that was made specifically for <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a>, a PCHDTV 5500.</p>
<p>It has served its purpose as a TV tuner, since I watched a year or so of cable TV in analog on it prior to the digital switch. I have never been able to get the HD side of things to work on it. Either it's beyond me or my cable company just had all of the channels encrypted. I didn't spend enough time on it to find out.</p>
<p>Recording analog video in <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> can be FUN. By "fun" I mean the type of fun one has pulling their own toe hairs. Be forewarned, getting a good recording is best done from the command line. I tried many ways. I ended up going with mencoder.</p>
<p>That being said, there's not much you can't do with mencoder and ffmpeg from the command line.</p>
<p>I have some VHS recordings I'm converting to AVI and then later on to DVD. I first had to purchase a VCR because, wouldn't you know it, I didn't have one that worked.</p>
<p>After that I had to come up with a good way to connect it to my capture card. The card has coax and component inputs. The new VCR didn't come with any coaxial connections. The capture card had a yellow RCA connection for video. I could use that but then there was the problem with audio. The capture card had a 1/8" jack for audio. Luckily I had an RCA-to-1/8" adapter for one of my gadgets (not sure which). I ended up using two sets of RCA's.</p>
<p>I was amazed I actually got audio and video from it. Here's where more fun came in. I was running virtualbox in the background. Everything I tried to use to record the video told me that /dev/dsp could not be opened. I went through many hoops trying to troubleshoot that issue. I should have realized it sooner but it was all virtualbox's fault. Next time I'll make sure it's not running when I'm dealing with audio.</p>
<p>After all of those problems were worked out, I was able to use:</p>
<p>mencoder tv:///1 -tv driver=v4l2:width=640:height=480:forceaudio:adevice=/dev/dsp -ovc xvid -xvidencopts bitrate=-750:threads=2 -oac mp3lame -lameopts cbr:br=64:mode=3 -o /home/five/homevid.avi</p>
<p>I'll try to explain some of what is going on in that command. Mencoder is the program itself. There's little to be said there. The next part is interesting: tv:///1  That tells mencoder we are using the tv card and that we want to use the composite1 input. Typically it defaults to input=0 or tv:///0, which is the coax TV input. There are three inputs on the card: tv, composite, and s-video. The next part (driver=v4l2) tells mencoder that we want to use Video4Linux2. Then we specify the width and height of the capture. The forceaudio bit was placed there during my troubleshooting. It just forces the use of audio device /dev/dsp. I had tried a couple other devices during my troubleshooting, thus the addition of that option. Then we have the option for output video codec (xvid). I set the bitrate and the number of threads. I actually upped that bitrate considerably later to around 2048. I believe I'll end up upping it even more for the next vid. I did the same with the audio output bitrate. I set it up to 256.</p>
<p>That should help anyone experiencing some of the pain I went through.</p>
<p><a href="http://supremetechs.com/2009/07/28/adventures-analog-video-recording-linux/">Adventures in analog video recording on Linux</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2009/07/28/adventures-analog-video-recording-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

