Mailing List Archive

0.25 and V4L not working
Hello all, I was just decided to update my system to 0.25 today and I
noticed that my V4L card no longer workings in 0.25.
The card works fine in tvtime and in 0.24. However it is totally broken in
0.25. The card is a pinnacle 800i.. nothing special

http://www.linuxtv.org/wiki/index.php/Pinnacle_PCTV_HD_Card_%28800i%29

I'm not sure if this is a bug or something weird with the 0.24 to 0.25
update.. Anyone have any idea on how to fix this? WAF is low.... and that
makes no one happy... :(

here is my backend log...

2012-03-20 20:16:41.146442 I MainServer::ANN Playback
2012-03-20 20:16:41.146454 I adding: bugs as a client (events: 0)
2012-03-20 20:16:41.149965 I TVRec(8): Changing from None to WatchingLiveTV
2012-03-20 20:16:41.150105 I Database connection created: DBManager17
2012-03-20 20:16:41.150135 I New DB connection, total: 13
2012-03-20 20:16:41.168820 I Connected to database 'mythconverg' at host:
192.168.0.11
2012-03-20 20:16:41.178033 I TVRec(8): HW Tuner: 8->8
2012-03-20 20:16:41.186038 I V4LChannel(/dev/video0): SetInputAndFormat(5,
NTSC) (v4l v2) input_switch: 0 mode_switch: 1
2012-03-20 20:16:41.186059 E V4LChannel(/dev/video0): SetInputAndFormat(5,
NTSC)
while disabling streaming (v4l v2)
eno: Invalid argument (22)
2012-03-20 20:16:41.313806 I V4LChannel(/dev/video0): SetInputAndFormat(5,
NTSC) (v4l v2) input_switch: 0 mode_switch: 1
2012-03-20 20:16:41.313841 E V4LChannel(/dev/video0): SetInputAndFormat(5,
NTSC)
while disabling streaming (v4l v2)
eno: Invalid argument (22)
2012-03-20 20:16:41.457201 E V4LChannel(/dev/video0): SetInputAndFormat()
failed
2012-03-20 20:16:41.457220 E TVRec(8): Failed to set channel to 34.
Reverting to kState_None
2012-03-20 20:16:41.457246 I TVRec(8): Changing from WatchingLiveTV to None
2012-03-20 20:16:54.218697 I Database connection created: DBManager18
2012-03-20 20:16:54.218725 I New DB connection, total: 14
2012-03-20 20:16:54.235850 I Connected to database 'mythconverg' at host:
192.168.0.11
2012-03-20 20:17:21.484444 I Database connection created: DBManager19
2012-03-20 20:17:21.484470 I New DB connection, total: 15
Re: 0.25 and V4L not working [ In reply to ]
On 03/20/2012 08:30 PM, Eric B wrote:
> Hello all, I was just decided to update my system to 0.25 today and I
> noticed that my V4L card no longer workings in 0.25.
> The card works fine in tvtime and in 0.24. However it is totally
> broken in 0.25. The card is a pinnacle 800i.. nothing special
>
> http://www.linuxtv.org/wiki/index.php/Pinnacle_PCTV_HD_Card_%28800i%29
>
> I'm not sure if this is a bug or something weird with the 0.24 to 0.25
> update.. Anyone have any idea on how to fix this?

What distro? Where did you get MythTV (from a package or
built-from-source)? What MythTV version (output of mythbackend
--version)? What did you use for configure options? What is the output of:

find /usr/include -name '*videodev*'

Please do a:

make distclean

on your repo, then apply the attached patch to the tree (from inside the
top directory of your mythtv repo--the one that contains mythtv and
mythplugins and checksums and such):

patch -Np1 -i /path/to/mythtv-add_v4l1_header.patch

then re-configure, make, make install and see if it works. Then, report
back with results of the test, and the answers to the above questions.

Thanks,
Mike
Re: 0.25 and V4L not working [ In reply to ]
>What distro? Where did you get MythTV (from a package or
built-from-source)?

I am running ubuntu 10.04, kernel 2.6.32-39 generic and was using the
packages for the mythbuntu repo

>What MythTV version (output of mythbackend --version)?

sorry I forgot to do this before I uninstalled to build from source, it
was 0.25.beta....something...

>What did you use for configure options? What is the output of:
>find /usr/include -name '*videodev*'

/usr/include/linux/videodev.h
/usr/include/linux/videodev2.h

I've applied your patch and am going to try and build of source tonight...
hopefully I will be able to give you results after works tomorrow.

I used
git clone git://github.com/MythTV/mythtv.git
git clone git://github.com/MythTV/mythweb.git*
to get the myth code
*
used
./configure --enable-vdpau --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-nonfree
Re: 0.25 and V4L not working [ In reply to ]
On 03/22/2012 12:31 AM, Eric B wrote:
>> What distro? Where did you get MythTV (from a package or
>> built-from-source)?
> I am running ubuntu 10.04, kernel 2.6.32-39 generic and was using the
> packages for the mythbuntu repo
>
>> What MythTV version (output of mythbackend --version)?
> sorry I forgot to do this before I uninstalled to build from source, it
> was 0.25.beta....something...
>
>> What did you use for configure options? What is the output of:
>> find /usr/include -name '*videodev*'
> /usr/include/linux/videodev.h
> /usr/include/linux/videodev2.h

Hmmm, that means the patch is unlikely to do anything--though it also
means that your V4L-based device should work fine. What capture
device? Is it an ivtv-based device?

> I've applied your patch and am going to try and build of source tonight...
> hopefully I will be able to give you results after works tomorrow.
>
> I used
> git clone git://github.com/MythTV/mythtv.git
> git clone git://github.com/MythTV/mythweb.git*
> to get the myth code
> *
> used
> ./configure --enable-vdpau --enable-libx264 --enable-libfaac
> --enable-libmp3lame --enable-nonfree

Not a bad configure line, but might want to also use --enable-proc-opt

Mike

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: 0.25 and V4L not working [ In reply to ]
On 03/22/2012 02:19 AM, Michael T. Dean wrote:
> On 03/22/2012 12:31 AM, Eric B wrote:
>>> What distro? Where did you get MythTV (from a package or
>>> built-from-source)?
>> I am running ubuntu 10.04, kernel 2.6.32-39 generic and was using the
>> packages for the mythbuntu repo
>>
>>> What MythTV version (output of mythbackend --version)?
>> sorry I forgot to do this before I uninstalled to build from source, it
>> was 0.25.beta....something...
>>
>>> What did you use for configure options? What is the output of:
>>> find /usr/include -name '*videodev*'
>> /usr/include/linux/videodev.h
>> /usr/include/linux/videodev2.h
> Hmmm, that means the patch is unlikely to do anything--though it also
> means that your V4L-based device should work fine. What capture
> device? Is it an ivtv-based device?
>
>> I've applied your patch and am going to try and build of source tonight...
>> hopefully I will be able to give you results after works tomorrow.
>>
>> I used
>> git clone git://github.com/MythTV/mythtv.git
>> git clone git://github.com/MythTV/mythweb.git*
>> to get the myth code
>> *
>> used
>> ./configure --enable-vdpau --enable-libx264 --enable-libfaac
>> --enable-libmp3lame --enable-nonfree
> Not a bad configure line, but might want to also use --enable-proc-opt

Actually, try taking out the --enable-nonfree, too--that doesn't seem to
be a MythTV configure option, so you may be building things wrong with
it in there.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: 0.25 and V4L not working [ In reply to ]
>> Hmmm, that means the patch is unlikely to do anything--though it also
>> means that your *V4L*-based device should work fine. What capture
>> device? Is it an ivtv-based device?
>>
it is a pinnacle 800i card. I'm not sure what all the ivtv components
are (Conexant's
CX23415/CX23416 only?) , but here is list of the 800i's components

Xceive XC5000 (tuner & analog IF demodulator) [1]
Samsung S5H1409 (digital demodulator) [2]
Conexant CX23883 (A/V decoder & PCI bridge) [3]
Cirrus 5340 CZZ (audio ADC) [4]
Atmel ATMLH726 (8-pin eeprom)

Its a cheap card from best buy that I picked up a couple of years ago....
The only reason I still use it is there are a couple of channels that we
only get in analog that the wife watches... which makes it the most
important card :P

>> Not a bad configure line, but might want to also use --enable-proc-opt
>
>Actually, try taking out the --enable-nonfree, too--that doesn't seem to
>be a MythTV configure option, so you may be building things wrong with
>it in there.
>
>Mike

I had a couple of problems compiling but I ended using

./configure --enable-vdpau --enable-libmp3lame --enable-proc-opt

After tonights recording marathon I will backup the mysql database and
upgrade again and let you know what happens
Thanks for all the help
Eric
Re: 0.25 and V4L not working [ In reply to ]
On 03/21/2012 03:50 PM, Michael T. Dean wrote:
> On 03/20/2012 08:30 PM, Eric B wrote:
>> Hello all, I was just decided to update my system to 0.25 today and I
>> noticed that my V4L card no longer workings in 0.25.
>> The card works fine in tvtime and in 0.24. However it is totally
>> broken in 0.25. The card is a pinnacle 800i.. nothing special
>>
>> http://www.linuxtv.org/wiki/index.php/Pinnacle_PCTV_HD_Card_%28800i%29
>>
>> I'm not sure if this is a bug or something weird with the 0.24 to 0.25
>> update.. Anyone have any idea on how to fix this?
>
> What distro? Where did you get MythTV (from a package or
> built-from-source)? What MythTV version (output of mythbackend
> --version)? What did you use for configure options? What is the output
> of:
>
> find /usr/include -name '*videodev*'
>
> Please do a:
>
> make distclean
>
> on your repo, then apply the attached patch to the tree (from inside the
> top directory of your mythtv repo--the one that contains mythtv and
> mythplugins and checksums and such):
>
> patch -Np1 -i /path/to/mythtv-add_v4l1_header.patch
>
> then re-configure, make, make install and see if it works. Then, report
> back with results of the test, and the answers to the above questions.
>
> Thanks,
> Mike
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users


I'm having a similar issue with the HVR-2250. The patch provided
applied, but wouldn't build properly. I'm going to try the attached
patch. -A

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
On 03/23/2012 10:54 PM, Anthony Messina wrote:
> On 03/21/2012 03:50 PM, Michael T. Dean wrote:
>> > On 03/20/2012 08:30 PM, Eric B wrote:
>> >
>> > What distro? Where did you get MythTV (from a package or
>> > built-from-source)? What MythTV version (output of mythbackend
>> > --version)? What did you use for configure options? What is the output
>> > of:
>> >
>> > find /usr/include -name '*videodev*'
>> >
>> > Please do a:
>> >
>> > make distclean
>> >
>> > on your repo, then apply the attached patch to the tree (from inside the
>> > top directory of your mythtv repo--the one that contains mythtv and
>> > mythplugins and checksums and such):
>> >
>> > patch -Np1 -i /path/to/mythtv-add_v4l1_header.patch
>> >
>> > then re-configure, make, make install and see if it works. Then, report
>> > back with results of the test, and the answers to the above questions.
>> >
>> > Thanks,
>> > Mike
>> >
>> >
>> > _______________________________________________
>> > mythtv-users mailing list
>> > mythtv-users@mythtv.org
>> > http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> I'm having a similar issue with the HVR-2250. The patch provided
> applied, but wouldn't build properly. I'm going to try the attached
> patch. -A

Which did not work, unfortunately:

23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23 23:30:03.343125 I
Updating status for "Inside March Madness" on cardid 9 (Tuning =>
Recording)
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.468654 I TVRec(9): rec->GetPathname():
'/srv/video/tv1/2033_20120323233000.mpg'
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.487784 E V4LRec(9:/dev/video0): Can't open vbi device: ''
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.487872 I Database connection created: DBManager15
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.487900 I New DB connection, total: 13
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.500246 W MPEGRec(/dev/video0): StartEncoding failed
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate ioctl
for device (25)
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.500252 E MPEGRec(/dev/video0): Failed to start recording
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
23:30:03.500554 W MPEGRec(/dev/video0): StopEncoding failed
Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate ioctl
for device (25)


I'll take a better look tomorrow. So much for the quick fix ;) -A


--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
On Fri, 23 Mar 2012 23:34:11 -0500
Anthony Messina <amessina@messinet.com> wrote:

> On 03/23/2012 10:54 PM, Anthony Messina wrote:
> > On 03/21/2012 03:50 PM, Michael T. Dean wrote:
> >> > On 03/20/2012 08:30 PM, Eric B wrote:
> >>> >> Hello all, I was just decided to update my system to 0.25
> >>> >> today and I noticed that my V4L card no longer workings in
> >>> >> 0.25. The card works fine in tvtime and in 0.24. However it is
> >>> >> totally broken in 0.25. The card is a pinnacle 800i.. nothing
> >>> >> special
> >>> >>
> >>> >> http://www.linuxtv.org/wiki/index.php/Pinnacle_PCTV_HD_Card_%28800i%29
> >>> >>
> >>> >> I'm not sure if this is a bug or something weird with the 0.24
> >>> >> to 0.25 update.. Anyone have any idea on how to fix this?
> >> >
> >> > What distro? Where did you get MythTV (from a package or
> >> > built-from-source)? What MythTV version (output of mythbackend
> >> > --version)? What did you use for configure options? What is
> >> > the output of:
> >> >
> >> > find /usr/include -name '*videodev*'
> >> >
> >> > Please do a:
> >> >
> >> > make distclean
> >> >
> >> > on your repo, then apply the attached patch to the tree (from
> >> > inside the top directory of your mythtv repo--the one that
> >> > contains mythtv and mythplugins and checksums and such):
> >> >
> >> > patch -Np1 -i /path/to/mythtv-add_v4l1_header.patch
> >> >
> >> > then re-configure, make, make install and see if it works.
> >> > Then, report back with results of the test, and the answers to
> >> > the above questions.
> >> >
> >
> > I'm having a similar issue with the HVR-2250. The patch provided
> > applied, but wouldn't build properly. I'm going to try the attached
> > patch. -A
>
> Which did not work, unfortunately:
>
> 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.343125 I Updating status for "Inside March Madness" on
> cardid 9 (Tuning => Recording)
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.468654 I TVRec(9): rec->GetPathname():
> '/srv/video/tv1/2033_20120323233000.mpg'
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487784 E V4LRec(9:/dev/video0): Can't open vbi device: ''
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487872 I Database connection created: DBManager15
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487900 I New DB connection, total: 13
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500246 W MPEGRec(/dev/video0): StartEncoding failed
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate
> ioctl for device (25)
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500252 E MPEGRec(/dev/video0): Failed to start recording
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500554 W MPEGRec(/dev/video0): StopEncoding failed
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate
> ioctl for device (25)
>
>
> I'll take a better look tomorrow. So much for the quick fix ;) -A
>

Same problem with same card here.

--
Cheers, Saul
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: 0.25 and V4L not working [ In reply to ]
On 03/23/2012 11:34 PM, Anthony Messina wrote:
>> I'm having a similar issue with the HVR-2250. The patch provided
>> > applied, but wouldn't build properly. I'm going to try the attached
>> > patch. -A
> Which did not work, unfortunately:
>
> 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23 23:30:03.343125 I
> Updating status for "Inside March Madness" on cardid 9 (Tuning =>
> Recording)
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.468654 I TVRec(9): rec->GetPathname():
> '/srv/video/tv1/2033_20120323233000.mpg'
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487784 E V4LRec(9:/dev/video0): Can't open vbi device: ''
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487872 I Database connection created: DBManager15
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487900 I New DB connection, total: 13
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500246 W MPEGRec(/dev/video0): StartEncoding failed
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate ioctl
> for device (25)
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500252 E MPEGRec(/dev/video0): Failed to start recording
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500554 W MPEGRec(/dev/video0): StopEncoding failed
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate ioctl
> for device (25)
>
>
> I'll take a better look tomorrow. So much for the quick fix ;) -A

Well, it turns out my mythconverg was NULL for the vbi device, so I
added /dev/vbi0, which eliminsted the V4LRec(9:/dev/video0): Can't open
vbi device: '' error, but after a few seconds, I got the same error as
before the patch was applied:

mythbackend[22496]: eno: Inappropriate ioctl for device (25)

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
>>>>Then, report back with results of the test, and the answers to the
above questions.

Hey Mike, sorry for taking so long to get back to you. Anyhow I've applied
the patch and it did not fix the issue... it gave the same error....


012-03-24 09:45:15.153162 I MainServer::ANN Playback
2012-03-24 09:45:15.153173 I adding: bugs as a client (events: 0)
2012-03-24 09:45:15.174136 I TVRec(7): Changing from None to WatchingLiveTV
2012-03-24 09:45:15.180890 I TVRec(7): HW Tuner: 7->7
2012-03-24 09:45:15.189764 I V4LChannel(/dev/video0): SetInputAndFormat(4,
NTSC) (v4l v2) input_switch: 0 mode_switch: 1
2012-03-24 09:45:15.189796 E V4LChannel(/dev/video0): SetInputAndFormat(4,
NTSC)
while disabling streaming (v4l v2)
eno: Invalid argument (22)
2012-03-24 09:45:15.402745 I V4LChannel(/dev/video0): SetInputAndFormat(4,
NTSC) (v4l v2) input_switch: 0 mode_switch: 1
2012-03-24 09:45:15.402776 E V4LChannel(/dev/video0): SetInputAndFormat(4,
NTSC)
while disabling streaming (v4l v2)
eno: Invalid argument (22)
2012-03-24 09:45:15.607100 E V4LChannel(/dev/video0): SetInputAndFormat()
failed
2012-03-24 09:45:15.607118 E TVRec(7): Failed to set channel to 3.
Reverting to kState_None
2012-03-24 09:45:15.607142 I TVRec(7): Changing from WatchingLiveTV to None

>What MythTV version (output of mythbackend --version)?
Please attach all output as a file in bug reports.
MythTV Version : v0.25-rc-26-g495ef16-dirty
MythTV Branch : master
Network Protocol : 72
Library API : 0.25.20120315-2
QT Version : 4.6.2
Re: 0.25 and V4L not working [ In reply to ]
On 03/23/2012 11:34 PM, Anthony Messina wrote:
> On 03/23/2012 10:54 PM, Anthony Messina wrote:
>> > On 03/21/2012 03:50 PM, Michael T. Dean wrote:
>> >
>> > I'm having a similar issue with the HVR-2250. The patch provided
>> > applied, but wouldn't build properly. I'm going to try the attached
>> > patch. -A
> Which did not work, unfortunately:
>
> 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23 23:30:03.343125 I
> Updating status for "Inside March Madness" on cardid 9 (Tuning =>
> Recording)
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.468654 I TVRec(9): rec->GetPathname():
> '/srv/video/tv1/2033_20120323233000.mpg'
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487784 E V4LRec(9:/dev/video0): Can't open vbi device: ''
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487872 I Database connection created: DBManager15
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.487900 I New DB connection, total: 13
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500246 W MPEGRec(/dev/video0): StartEncoding failed
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate ioctl
> for device (25)
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500252 E MPEGRec(/dev/video0): Failed to start recording
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: 2012-03-23
> 23:30:03.500554 W MPEGRec(/dev/video0): StopEncoding failed
> Mar 23 23:30:03 mythtv-fe1 mythbackend[22496]: eno: Inappropriate ioctl
> for device (25)
>
>
> I'll take a better look tomorrow. So much for the quick fix ;) -A

According to
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=9190d191b1b814dfb488125b54cf0de6eedd9220...


The attached patch works, but the logs are running constantly with
entries like:

MPEGRec(/dev/video0): FormatCC(0x45d6,0xc4c8)

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
On 03/24/2012 10:04 AM, Anthony Messina wrote:
> According to
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=9190d191b1b814dfb488125b54cf0de6eedd9220...
>
>
> The attached patch works, but the logs are running constantly with
> entries like:
>
> MPEGRec(/dev/video0): FormatCC(0x45d6,0xc4c8)

Patch submitted:
http://code.mythtv.org/trac/ticket/10501

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
On 03/24/2012 10:03 AM, Eric B wrote:
> >>>>Then, report back with results of the test, and the answers to the
> above questions.
>
> Hey Mike, sorry for taking so long to get back to you. Anyhow I've
> applied the patch and it did not fix the issue... it gave the same
> error....

Yeah, that's what I expected based on the information you provided,
before. So, at this point, you can feel free to un-apply that patch and
use unmodified MythTV.

> 012-03-24 09:45:15.153162 I MainServer::ANN Playback
> 2012-03-24 09:45:15.153173 I adding: bugs as a client (events: 0)
> 2012-03-24 09:45:15.174136 I TVRec(7): Changing from None to
> WatchingLiveTV
> 2012-03-24 09:45:15.180890 I TVRec(7): HW Tuner: 7->7
> 2012-03-24 09:45:15.189764 I V4LChannel(/dev/video0):
> SetInputAndFormat(4, NTSC) (v4l v2) input_switch: 0 mode_switch: 1
> 2012-03-24 09:45:15.189796 E V4LChannel(/dev/video0):
> SetInputAndFormat(4, NTSC)
> while disabling streaming (v4l v2)
> eno: Invalid argument (22)
> 2012-03-24 09:45:15.402745 I V4LChannel(/dev/video0):
> SetInputAndFormat(4, NTSC) (v4l v2) input_switch: 0 mode_switch: 1
> 2012-03-24 09:45:15.402776 E V4LChannel(/dev/video0):
> SetInputAndFormat(4, NTSC)
> while disabling streaming (v4l v2)
> eno: Invalid argument (22)
> 2012-03-24 09:45:15.607100 E V4LChannel(/dev/video0):
> SetInputAndFormat() failed
> 2012-03-24 09:45:15.607118 E TVRec(7): Failed to set channel to 3.
> Reverting to kState_None
> 2012-03-24 09:45:15.607142 I TVRec(7): Changing from WatchingLiveTV
> to None

Based on this, I would suggest that it's likely your capture card
configuration is broken due to upgrades to kernel and driver. You
should do the capture card (not the video source) portion of:
http://www.gossamer-threads.com/lists/mythtv/users/264034#264034 (the
"If you ever change capture cards or capture card drivers..." paragraph).

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: 0.25 and V4L not working [ In reply to ]
On 03/24/2012 08:11 AM, Anthony Messina wrote:
> Well, it turns out my mythconverg was NULL for the vbi device, so I
> added /dev/vbi0, which eliminsted the V4LRec(9:/dev/video0): Can't open
> vbi device: '' error, but after a few seconds, I got the same error as
> before the patch was applied:
>
> mythbackend[22496]: eno: Inappropriate ioctl for device (25)

Anthony,

Even though you've already "fixed" this by editing the DB, please try
(only) the capture card portion of:

http://www.gossamer-threads.com/lists/mythtv/users/264034#264034

(specifically, the paragraph starting with, "If you ever change capture
cards or capture card drivers..."--and not the "Delete all video
sources" stuff) to delete all your capture cards and re-add them and
make sure they're configured correctly by mythtv-setup. (We need to
ensure that these devices will work for everyone without direct DB editing.)

Note that in doing "Delete all capture cards," you won't lose your
channels or your video sources, so you won't have to rescan for channels
or anything. You'll just be redefining your capture cards and
re-connecting your inputs.

Also, anyone who upgrades to 0.25 should likely do a "Delete all capture
cards" and then re-configure them to ensure they have proper recording
and Live TV order set--especially those who used the "break MythTV to
prioritize Live TV over recordings" (where you add capture cards with
2-4 multirec inputs, then go back and add one more input to each card).
The recording and Live TV order are new options in card setup that allow
you to specify the order in which cards are used for recording and Live TV.

Thanks,
Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: 0.25 and V4L not working [ In reply to ]
On 03/24/2012 12:22 PM, Michael T. Dean wrote:
> Anthony,
>
> Even though you've already "fixed" this by editing the DB, please try
> (only) the capture card portion of:
>
> http://www.gossamer-threads.com/lists/mythtv/users/264034#264034
>
> (specifically, the paragraph starting with, "If you ever change capture
> cards or capture card drivers..."--and not the "Delete all video
> sources" stuff) to delete all your capture cards and re-add them and
> make sure they're configured correctly by mythtv-setup. (We need to
> ensure that these devices will work for everyone without direct DB editing.)
>
> Note that in doing "Delete all capture cards," you won't lose your
> channels or your video sources, so you won't have to rescan for channels
> or anything. You'll just be redefining your capture cards and
> re-connecting your inputs.
>
> Also, anyone who upgrades to 0.25 should likely do a "Delete all capture
> cards" and then re-configure them to ensure they have proper recording
> and Live TV order set--especially those who used the "break MythTV to
> prioritize Live TV over recordings" (where you add capture cards with
> 2-4 multirec inputs, then go back and add one more input to each card).
> The recording and Live TV order are new options in card setup that allow
> you to specify the order in which cards are used for recording and Live TV.
>
> Thanks,
> Mike

Actually, it turned out that the vbi entry wasn't the problem.

I've filed a ticket with the patch that works with the updates in
v4l2-ioctl where EINVAL has been changed to ENOTTY for unimplemented calls.

http://code.mythtv.org/trac/ticket/10501

This fixes the problem for me with saa7164 (HVR-2250) and analog
recordings without touching the DB.

I'll likely go in and recreate the capture cards anyway in the coming days.

Thanks, Mike.

-A

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
On 03/24/2012 01:33 PM, Anthony Messina wrote:
> On 03/24/2012 12:22 PM, Michael T. Dean wrote:
>> Anthony,
>>
>> Even though you've already "fixed" this by editing the DB, please try
>> (only) the capture card portion of:
>>
>> http://www.gossamer-threads.com/lists/mythtv/users/264034#264034
>>
>> (specifically, the paragraph starting with, "If you ever change capture
>> cards or capture card drivers..."--and not the "Delete all video
>> sources" stuff) to delete all your capture cards and re-add them and
>> make sure they're configured correctly by mythtv-setup. (We need to
>> ensure that these devices will work for everyone without direct DB editing.)
>>
>> Note that in doing "Delete all capture cards," you won't lose your
>> channels or your video sources, so you won't have to rescan for channels
>> or anything. You'll just be redefining your capture cards and
>> re-connecting your inputs.
>>
>> Also, anyone who upgrades to 0.25 should likely do a "Delete all capture
>> cards" and then re-configure them to ensure they have proper recording
>> and Live TV order set--especially those who used the "break MythTV to
>> prioritize Live TV over recordings" (where you add capture cards with
>> 2-4 multirec inputs, then go back and add one more input to each card).
>> The recording and Live TV order are new options in card setup that allow
>> you to specify the order in which cards are used for recording and Live TV.
>>
>> Thanks,
>> Mike
> Actually, it turned out that the vbi entry wasn't the problem.
>
> I've filed a ticket with the patch that works with the updates in
> v4l2-ioctl where EINVAL has been changed to ENOTTY for unimplemented calls.
>
> http://code.mythtv.org/trac/ticket/10501
>
> This fixes the problem for me with saa7164 (HVR-2250) and analog
> recordings without touching the DB.

Right. I saw that (and thanks for tracking it down and for the patch,
btw). I'm just concerned about the fact that your configuration /was/
broken, and want to ensure that mythtv-setup properly configures the
ivtv side of your HVR-2250.

> I'll likely go in and recreate the capture cards anyway in the coming days.
>
> Thanks, Mike.

Thanks. I'll feel much better about releasing if I know ivtv-based card
creation works properly. :)

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: 0.25 and V4L not working [ In reply to ]
On 03/24/2012 12:38 PM, Michael T. Dean wrote:
> Right. I saw that (and thanks for tracking it down and for the patch,
> btw). I'm just concerned about the fact that your configuration /was/
> broken, and want to ensure that mythtv-setup properly configures the
> ivtv side of your HVR-2250.
>
>> > I'll likely go in and recreate the capture cards anyway in the coming days.
>> >
>> > Thanks, Mike.
> Thanks. I'll feel much better about releasing if I know ivtv-based card
> creation works properly. :)

Ok, I'll be recreating my capture cards later today. Do you have any
recommendations for ordering and/or creation based on the following:

1. SchedulesDirect Caching as I have some channels over un encrypted
cable and others which must use the STB which is why I need the analog
side of the HVR-2250 in the first place.

2. Tuner list as follows

a. HVR-2250 (ATSC and analog)

b HDHomeRun (old style ATSC with two tuners

3. My current tuner setup is as follows

videodevice audiodevice vbidevice cardtype
1 /dev/dvb/adapter0/frontend0 NULL NULL DVB
2 /dev/dvb/adapter0/frontend0 NULL NULL DVB
3 /dev/dvb/adapter1/frontend0 NULL NULL DVB
4 /dev/dvb/adapter1/frontend0 NULL NULL DVB
5 1011DACC-0 NULL NULL HDHOMERUN
6 1011DACC-0 NULL NULL HDHOMERUN
7 1011DACC-1 NULL NULL HDHOMERUN
8 1011DACC-1 NULL NULL HDHOMERUN
9 /dev/video0 NULL /dev/vbi0 MPEG


I was thinking of adding them in the same order as above. I do group
#1, #2, and #9 together as they really represent the first physical
device on the HVR-2250. I was never able to get the analog side of the
second adapter (video1) on the HVR-2250 to show anything other than a
blue screen so I just don't use it.

Any advice is appreciated. Thanks again. -A

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Re: 0.25 and V4L not working [ In reply to ]
>You should do the capture card (not the video source) portion of:
>http://www.gossamer-threads.com/lists/mythtv/users/264034#264034<http://www.gossamer-threads.com/lists/mythtv/users/264034#264034>(the
>"If you ever change capture cards or capture card drivers..." paragraph)

Hey I recreated my capture cards and it did not fix the issue...
Re: 0.25 and V4L not working [ In reply to ]
>I've filed a ticket with the patch that works with the updates in
>v4l2-ioctl where EINVAL has been changed to ENOTTY for unimplemented
calls.
>
>http://code.mythtv.org/trac/ticket/10501<http://code.mythtv.org/trac/ticket/10501>

I applied this patch and it still did not work.. However I noticed that the
patch was for file
mythtv/libs/libmythtv/mpegrecorder.cpp
and the 800i card uses the Analog V4L capture card setup, not the MPG
setup.
maybe it is in v4lrecorder.cpp?... sorry if this is a bad idea since I have
no idea how the mythtv code works

However I ended up trying every type of card setup that was remotely
related and no luck :(
Re: 0.25 and V4L not working [ In reply to ]
>Based on this, I would suggest that it's likely your capture card
>configuration is broken due to upgrades to kernel and driver. You
>should do the capture card (not the video source) portion of:
>http://www.gossamer-threads.com/lists/mythtv/users/264034#264034 (the
>"If you ever change capture cards or capture card drivers..."
paragraph).

Hey, I'm not sure but I don't think this can be a kernel/driver issue
since it works perfectly in 0.24 and TVtime.... same kernel and driver,
the only thing that is different is the mythtv version...
Re: 0.25 and V4L not working [ In reply to ]
>I applied this patch and it still did not work.. However I noticed that
the
>patch was for file
>mythtv/libs/libmythtv/mpegrecorder.cpp
>and the 800i card uses the Analog *V4L* capture card setup, not the MPG
>setup.
>maybe it is in v4lrecorder.cpp?... sorry if this is a bad idea since I
have
>no idea how the mythtv code works

So I've fixed the problem and it works great! However I don't think you're
going to like my fix
in the file /mythtv/mythtv/libs/libmythtv/v4lchannel.cpp line 657.. I just
commented out this section of code regarding stream disabling, and that
fixed the problem. But I am sure that is not a good fix for everyone....
Here is the code section

// ConvertX (wis-go7007) requires streaming to be disabled
// before an input switch, do this if CAP_STREAMING is set.
bool streamingDisabled = false;
int streamType = V4L2_BUF_TYPE_VIDEO_CAPTURE;
/* if (needs_switch && has_stream_io)
{
ioctlval = ioctl(videofd, VIDIOC_STREAMOFF, &streamType);
if (ioctlval < 0)
{
LOG(VB_GENERAL, LOG_ERR, LOC + msg +
"\n\t\t\twhile disabling streaming (v4l v2)" + ENO);
ok = false;
}
else
{
streamingDisabled = true;
}
}
*/



The line causing the problem in line 659
ioctlval = ioctl(videofd, VIDIOC_STREAMOFF, &streamType);

but I am not smart enough to know how to fix it...:(

regards
Eric
Re: 0.25 and V4L not working [ In reply to ]
sorry for writing so many reply to this, but I found a fix that I think
will be accepted. Sorry I'm not sure how to make a patch
anyhow in file
src/mythtv/libs/libmythtv/v4lchannel.cpp

line 102
was
if (driver_name == "bttv" )
but needs to be
if (driver_name == "bttv" || driver_name == "cx8800")


fixes everything

regards
Eric