<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: mplayer pvr support</title>
	<atom:link href="http://wonkabar.org/archives/190/feed" rel="self" type="application/rss+xml" />
	<link>http://wonkabar.org/archives/190</link>
	<description>linux, databases, cartoons and cornflakes</description>
	<pubDate>Tue, 06 Jan 2009 13:34:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Dawning</title>
		<link>http://wonkabar.org/archives/190#comment-12886</link>
		<dc:creator>Dawning</dc:creator>
		<pubDate>Sun, 03 Jun 2007 20:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-12886</guid>
		<description>More progress - the problem I mentioned about mplayer eventually ceasing to play from /dev/video0 after some unknown case - this can be resolved by reloading the ivtv kernel module.

So run: rmmod ivtv 
and then: modprobe ivtv

Also, it seems that the case where mplayer would stop playing from /dev/video0 was when I attempted to execute: mplayer pvr://

And as you'd expect, upon reloading ivtv - the input settings are reset to defaults.</description>
		<content:encoded><![CDATA[<p>More progress - the problem I mentioned about mplayer eventually ceasing to play from /dev/video0 after some unknown case - this can be resolved by reloading the ivtv kernel module.</p>
<p>So run: rmmod ivtv<br />
and then: modprobe ivtv</p>
<p>Also, it seems that the case where mplayer would stop playing from /dev/video0 was when I attempted to execute: mplayer pvr://</p>
<p>And as you&#8217;d expect, upon reloading ivtv - the input settings are reset to defaults.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawning</title>
		<link>http://wonkabar.org/archives/190#comment-12885</link>
		<dc:creator>Dawning</dc:creator>
		<pubDate>Sun, 03 Jun 2007 19:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-12885</guid>
		<description>Okay, I've at least figured out how to change the input sources for the PVR-150.

I used v4l2-ctl, it's actually pretty easy. I wanted the Composite 1 input selected, so for me, I just ran:

v4l2-ctl -i 2

Just run the v4l2-ctl --help command and you'll see your options. The highlights to me are:

-n -&#62; Displays video input sources
-i -&#62; sets video input source
-I -&#62; shows current video input source
--get-audio-input
--set-audio-input

So now when I run mplayer pvr:// I get:

Playing pvr://.
[pvr] Using device /dev/video0
[pvr] Detected Hauppauge WinTV PVR-150
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite 1' '#3, S-Video 2' '#4, Composite 2' 
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line In 2' 
[v4l2] Available norms: '#0, PAL-BGH' '#1, PAL-DK' '#2, PAL-I' '#3, PAL-M' '#4, PAL-N' '#5, PAL-Nc' '#6, SECAM-BGH' '#7, SECAM-DK' '#8, SECAM-L' '#9, SECAM-L'' '#10, NTSC-M' '#11, NTSC-J' '#12, NTSC-K' 
[v4l2] Video input: Composite 1
[v4l2] Audio input: Line In 1
[v4l2] Norm: NTSC-M.
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes


Still have that failure, but at least it's using the sources I wanted.</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;ve at least figured out how to change the input sources for the PVR-150.</p>
<p>I used v4l2-ctl, it&#8217;s actually pretty easy. I wanted the Composite 1 input selected, so for me, I just ran:</p>
<p>v4l2-ctl -i 2</p>
<p>Just run the v4l2-ctl &#8211;help command and you&#8217;ll see your options. The highlights to me are:</p>
<p>-n -&gt; Displays video input sources<br />
-i -&gt; sets video input source<br />
-I -&gt; shows current video input source<br />
&#8211;get-audio-input<br />
&#8211;set-audio-input</p>
<p>So now when I run mplayer pvr:// I get:</p>
<p>Playing pvr://.<br />
[pvr] Using device /dev/video0<br />
[pvr] Detected Hauppauge WinTV PVR-150<br />
[v4l2] Available video inputs: &#8216;#0, Tuner 1&#8242; &#8216;#1, S-Video 1&#8242; &#8216;#2, Composite 1&#8242; &#8216;#3, S-Video 2&#8242; &#8216;#4, Composite 2&#8242;<br />
[v4l2] Available audio inputs: &#8216;#0, Tuner 1&#8242; &#8216;#1, Line In 1&#8242; &#8216;#2, Line In 2&#8242;<br />
[v4l2] Available norms: &#8216;#0, PAL-BGH&#8217; &#8216;#1, PAL-DK&#8217; &#8216;#2, PAL-I&#8217; &#8216;#3, PAL-M&#8217; &#8216;#4, PAL-N&#8217; &#8216;#5, PAL-Nc&#8217; &#8216;#6, SECAM-BGH&#8217; &#8216;#7, SECAM-DK&#8217; &#8216;#8, SECAM-L&#8217; &#8216;#9, SECAM-L&#8221; &#8216;#10, NTSC-M&#8217; &#8216;#11, NTSC-J&#8217; &#8216;#12, NTSC-K&#8217;<br />
[v4l2] Video input: Composite 1<br />
[v4l2] Audio input: Line In 1<br />
[v4l2] Norm: NTSC-M.<br />
[pvr] failed with errno 22 when reading 2048 bytes<br />
[pvr] read 0 bytes</p>
<p>Still have that failure, but at least it&#8217;s using the sources I wanted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawning</title>
		<link>http://wonkabar.org/archives/190#comment-12884</link>
		<dc:creator>Dawning</dc:creator>
		<pubDate>Sun, 03 Jun 2007 19:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-12884</guid>
		<description>I get the same problem with my PVR-150 (Ubuntu 7.04 - kernel 2.6.20)

I also would really like to know how to change the video input sources. Seems this is something that should be do-able from mplayer, however perhaps I have to use some other control for v4l2 or ivtv to make that change?

Also, when I first boot my machine and run mplayer /dev/video0 - get a window of static.. After awhile (not sure what triggers it) that ceases to work. All I get is mplayer seemingly hanging with the message "Playing /dev/video0."

help would be deeply appreciated.</description>
		<content:encoded><![CDATA[<p>I get the same problem with my PVR-150 (Ubuntu 7.04 - kernel 2.6.20)</p>
<p>I also would really like to know how to change the video input sources. Seems this is something that should be do-able from mplayer, however perhaps I have to use some other control for v4l2 or ivtv to make that change?</p>
<p>Also, when I first boot my machine and run mplayer /dev/video0 - get a window of static.. After awhile (not sure what triggers it) that ceases to work. All I get is mplayer seemingly hanging with the message &#8220;Playing /dev/video0.&#8221;</p>
<p>help would be deeply appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ariu</title>
		<link>http://wonkabar.org/archives/190#comment-9913</link>
		<dc:creator>ariu</dc:creator>
		<pubDate>Tue, 10 Apr 2007 03:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-9913</guid>
		<description>Hi 
I followed GitRDone patch above and it complies and works with /dev/video0.  However pvr:// repeats the following error and terminates after a while.  Any help is greatly appreciated.

Thanks
Umesh

[pvr] Using device /dev/video0
[pvr] Detected Hauppauge WinTV PVR-250
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite 1' '#3, S-Video 2' '#4, Composite 2' '#5, Composite 3' 
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line In 2' 
[v4l2] Available norms: '#0, PAL-BGH' '#1, PAL-DK' '#2, PAL-I' '#3, PAL-M' '#4, PAL-N' '#5, PAL-Nc' '#6, SECAM-BGH' '#7, SECAM-DK' '#8, SECAM-L' '#9, SECAM-L'' '#10, NTSC-M' '#11, NTSC-J' '#12, NTSC-K' 
[v4l2] Video input: Tuner 1
[v4l2] Audio input: Tuner 1
[v4l2] Norm: NTSC-M.
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes ........</description>
		<content:encoded><![CDATA[<p>Hi<br />
I followed GitRDone patch above and it complies and works with /dev/video0.  However pvr:// repeats the following error and terminates after a while.  Any help is greatly appreciated.</p>
<p>Thanks<br />
Umesh</p>
<p>[pvr] Using device /dev/video0<br />
[pvr] Detected Hauppauge WinTV PVR-250<br />
[v4l2] Available video inputs: &#8216;#0, Tuner 1&#8242; &#8216;#1, S-Video 1&#8242; &#8216;#2, Composite 1&#8242; &#8216;#3, S-Video 2&#8242; &#8216;#4, Composite 2&#8242; &#8216;#5, Composite 3&#8242;<br />
[v4l2] Available audio inputs: &#8216;#0, Tuner 1&#8242; &#8216;#1, Line In 1&#8242; &#8216;#2, Line In 2&#8242;<br />
[v4l2] Available norms: &#8216;#0, PAL-BGH&#8217; &#8216;#1, PAL-DK&#8217; &#8216;#2, PAL-I&#8217; &#8216;#3, PAL-M&#8217; &#8216;#4, PAL-N&#8217; &#8216;#5, PAL-Nc&#8217; &#8216;#6, SECAM-BGH&#8217; &#8216;#7, SECAM-DK&#8217; &#8216;#8, SECAM-L&#8217; &#8216;#9, SECAM-L&#8221; &#8216;#10, NTSC-M&#8217; &#8216;#11, NTSC-J&#8217; &#8216;#12, NTSC-K&#8217;<br />
[v4l2] Video input: Tuner 1<br />
[v4l2] Audio input: Tuner 1<br />
[v4l2] Norm: NTSC-M.<br />
[pvr] failed with errno 22 when reading 2048 bytes<br />
[pvr] read 0 bytes<br />
[pvr] failed with errno 22 when reading 2048 bytes<br />
[pvr] read 0 bytes &#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GitRDone</title>
		<link>http://wonkabar.org/archives/190#comment-9742</link>
		<dc:creator>GitRDone</dc:creator>
		<pubDate>Wed, 04 Apr 2007 13:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-9742</guid>
		<description>The quick patch for the above issue is in libvo/vo_ivtv.c (line 82):

  // sd.hide_last = blank_screen;
  //sd.pts_stop = 0;
  sd.flags=(sd.flags&#124;1);
  sd.pts=0;</description>
		<content:encoded><![CDATA[<p>The quick patch for the above issue is in libvo/vo_ivtv.c (line 82):</p>
<p>  // sd.hide_last = blank_screen;<br />
  //sd.pts_stop = 0;<br />
  sd.flags=(sd.flags|1);<br />
  sd.pts=0;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://wonkabar.org/archives/190#comment-2395</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Fri, 22 Dec 2006 20:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-2395</guid>
		<description>struct ivtv_cfg_stop_decode {
        int flags;              /* bit 0: 1 = hide last frame (go to black frame) after stop,
                                          0 = show last frame
                                   bit 1: 1 = wait until PTS is reached or
                                              until all pending buffers are processed
                                          0 = stop immediately

It shouldn't be too hard to make a patch to fix this?</description>
		<content:encoded><![CDATA[<p>struct ivtv_cfg_stop_decode {<br />
        int flags;              /* bit 0: 1 = hide last frame (go to black frame) after stop,<br />
                                          0 = show last frame<br />
                                   bit 1: 1 = wait until PTS is reached or<br />
                                              until all pending buffers are processed<br />
                                          0 = stop immediately</p>
<p>It shouldn&#8217;t be too hard to make a patch to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://wonkabar.org/archives/190#comment-2394</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Fri, 22 Dec 2006 20:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-2394</guid>
		<description>vo_ivtv.c:82: error: 'struct ivtv_cfg_stop_decode' has no member named 'hide_last'

I think it is an ivtv 0.9.1 / svn problem?</description>
		<content:encoded><![CDATA[<p>vo_ivtv.c:82: error: &#8217;struct ivtv_cfg_stop_decode&#8217; has no member named &#8216;hide_last&#8217;</p>
<p>I think it is an ivtv 0.9.1 / svn problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://wonkabar.org/archives/190#comment-2392</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Fri, 22 Dec 2006 20:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-2392</guid>
		<description>Just running a compile with the 2.6.18 headers now - I haven't bootstrapped glibc / gcc on those headers, but we'll see if it works in due course.

I bought my PVR when I was in Korea and live in a PAL country so it will be fun to get an IR blaster to control my DVD player to use as an external tuner. 

I'm also running ivtv-svn .. I'll post my success / failure shortly!</description>
		<content:encoded><![CDATA[<p>Just running a compile with the 2.6.18 headers now - I haven&#8217;t bootstrapped glibc / gcc on those headers, but we&#8217;ll see if it works in due course.</p>
<p>I bought my PVR when I was in Korea and live in a PAL country so it will be fun to get an IR blaster to control my DVD player to use as an external tuner. </p>
<p>I&#8217;m also running ivtv-svn .. I&#8217;ll post my success / failure shortly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Infirit</title>
		<link>http://wonkabar.org/archives/190#comment-1069</link>
		<dc:creator>Infirit</dc:creator>
		<pubDate>Fri, 20 Oct 2006 06:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://wonkabar.org/archives/190#comment-1069</guid>
		<description>Something to add is that it uses the new enopder api from the kernel. So any card that uses the api will work with mplayer pvr://

Hans Verkuil can be thanked for this as he designed the api and afaik coded the whole thing.</description>
		<content:encoded><![CDATA[<p>Something to add is that it uses the new enopder api from the kernel. So any card that uses the api will work with mplayer pvr://</p>
<p>Hans Verkuil can be thanked for this as he designed the api and afaik coded the whole thing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
