<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Marcin Juszkiewicz - mencoder</title><link href="https://marcin.juszkiewicz.com.pl/" rel="alternate"/><link href="https://marcin.juszkiewicz.com.pl/tag/mencoder/feed/" rel="self"/><id>https://marcin.juszkiewicz.com.pl/</id><updated>2006-04-29T18:06:00+02:00</updated><entry><title>Grabbing movies from TV</title><link href="https://marcin.juszkiewicz.com.pl/2006/04/29/grabbing-movies-from-tv/" rel="alternate"/><published>2006-04-29T18:06:00+02:00</published><updated>2006-04-29T18:06:00+02:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2006-04-29:/2006/04/29/grabbing-movies-from-tv/</id><summary type="html">&lt;p&gt;From time to time I grab something from &lt;span class="caps"&gt;TV&lt;/span&gt; to watch it later. Each time I had to re-discover proper MEncoder params and finally decided to write about it on site &amp;#8212; maybe someone other will find it&amp;nbsp;interesting.&lt;/p&gt;
&lt;p&gt;Machine is simple &lt;span class="caps"&gt;PC&lt;/span&gt; desktop powered by AthlonXP 2200+ &lt;span class="caps"&gt;CPU&lt;/span&gt; (1.8GHz …&lt;/p&gt;</summary><content type="html">&lt;p&gt;From time to time I grab something from &lt;span class="caps"&gt;TV&lt;/span&gt; to watch it later. Each time I had to re-discover proper MEncoder params and finally decided to write about it on site &amp;#8212; maybe someone other will find it&amp;nbsp;interesting.&lt;/p&gt;
&lt;p&gt;Machine is simple &lt;span class="caps"&gt;PC&lt;/span&gt; desktop powered by AthlonXP 2200+ &lt;span class="caps"&gt;CPU&lt;/span&gt; (1.8GHz) and Pixelview &lt;span class="caps"&gt;TV&lt;/span&gt; tuner&amp;nbsp;(&lt;code&gt;card=70&lt;/code&gt; in bttv) which sound output is connected via loop-cable to Line-In of onboard via82xx soundcard (&lt;span class="caps"&gt;ALSA&lt;/span&gt; driven) &amp;#8212; all under control of Debian &amp;#8216;sid&amp;#8217; running Linux 2.6 (2.6.16-ck1 now). For grabbing I use MEncoder (own &lt;span class="caps"&gt;CVS&lt;/span&gt;&amp;nbsp;build).&lt;/p&gt;
&lt;p&gt;First thing to do is to pick a channel &amp;#8212; I&amp;nbsp;run &lt;code&gt;tvtime&lt;/code&gt; and quit after select proper one. Then mixer (I use KMix) is needed: turn on capturing of Line-In (can mute it too so it will not bother you during grabbing). After this you should be ready to grab&amp;nbsp;videos.&lt;/p&gt;
&lt;p&gt;Now MEncoder has to be started (all in one&amp;nbsp;line):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mencoder tv:// -o tv2.avi -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4 \
-tv driver=v4l2:width=640:height=480:alsa=1:immediatemode=0:forceaudio:forcechan=1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will tell that we want DivX with &lt;span class="caps"&gt;MP3&lt;/span&gt; Audio &amp;#8212; on my machine this encoding takes ~50% &lt;span class="caps"&gt;CPU&lt;/span&gt;. Before I used M-&lt;span class="caps"&gt;JPEG&lt;/span&gt; but was taking too much disc&amp;nbsp;space.&lt;/p&gt;</content><category term="divx"/><category term="mencoder"/><category term="movies"/><category term="v4l"/><category term="video"/></entry></feed>