[pvrusb2] Using sysfs to change the input setting and capturing the mpeg stream
Martin Galese
martin at galese.net
Mon Jul 31 13:27:08 CDT 2006
Aaron,
I don't have any suggestions on sharpening the video, but I imagine that you
can mute the audio to avoid the static.
Try:
echo 1 > ctl_mute/cur_val
On 7/31/06, Aaron Newcomb <anewcomb2 at gmail.com> wrote:
>
> Thanks, Mike.
>
> I think my problem was trying to use vi to edit the file instead of
> just doing ...
>
> echo "s-video" >cur_val
>
> Once I did that it worked fine. However, I get terrible static sound
> in mplayer when I do that. I also get it when I use cat to capture the
> video. I am not using audio at this point so it's not that big of a
> deal, but is there a way to get rid of that static? Also, does anyone
> have any tips on sharpening up the video? I am guessing my options are
> probably limited here because of the analog signal.
>
> On 7/31/06, Mike Isely <isely at isely.net> wrote:
> > On Mon, 31 Jul 2006, Aaron Newcomb wrote:
> >
> > [...]
> >
> > > You can see above the the input is set to Composite 4. Can I use the
> > > sysfs interface to change that to s-video??
> >
> > From the viewpoint of the saa7115, there is no "s-video" input. For
> that
> > chip there's just some set of numbered inputs. The wiring of those
> inputs
> > on the chip to the actual jacks on the device is knowledge only held by
> > the pvrusb2 driver. So when you use sysfs to change the input to
> > "s-video" (or whatever, and yes you can do that), then the input as
> > reported by the saa7115 is just going to be whatever numbered choice
> > corresponds to that.
> >
> > To change the input in sysfs, look at the ctl_input control and put into
> > "cur_val" one of the choices that you can see from cat'ing the enum_val
> > file. (You probably already know all that; I'm just trying to cover all
> > the bases here).
> >
> > >
> > > Also, once I get s-video working what is the easiest way to record the
> > > mpeg stream from the command line?
> > >
> >
> > cat /dev/video0 >my_file_that_i_want_to_save_to.mpg
> >
> > Note: I am out of town right now (actually typing this from inside a
> > restaurant with free wi-fi). Where I'm heading won't have broadband, so
> > my responsiveness here for the next week or so is going to be somewhat
> > sporadic.
> >
> > -Mike
> >
> >
> >
> > --
> > | Mike Isely | PGP
> fingerprint
> > Spammers Die!! | | 03 54 43 4D 75
> E5 CC 92
> > | isely @ pobox (dot) com | 71 16 01 E2 B5
> F5 C1 E8
> > | |
> > _______________________________________________
> > pvrusb2 mailing list
> > pvrusb2 at isely.net
> > http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
> >
>
>
> --
> Thanks,
> Aaron
> _______________________________________________
> pvrusb2 mailing list
> pvrusb2 at isely.net
> http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
>
--
Martin Galese
More information about the pvrusb2
mailing list