Bugs item #1566027, was opened at 2006-09-27 00:05
Message generated for change (Comment added) made by duncanwebb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1566027&group_id=46652
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: other
>Group: 1.5.x svn
>Status: Pending
>Resolution: Fixed
Priority: 5
Submitted By: John Molohan (johnmolohan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in revision 8245 with v4l2 & ivtv
Initial Comment:
Hi,
testing svn with ivtv 0.7.0 gives me the following
traceback;
Video Opened at /dev/video0
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/freevo/main.py", line
315, in eventhandler
app.eventhandler(event)
File
"/usr/lib/python2.4/site-packages/freevo/menu.py", line
381, in eventhandler
if not isinstance(menu, Menu) and
menu.eventhandler(event):
File
"/usr/lib/python2.4/site-packages/freevo/tv/tvguide.py",
line 232, in eventhandler
self.player('tv', self.selected.channel_id)
File
"/usr/lib/python2.4/site-packages/freevo/tv/tvmenu.py",
line 100, in start_tv
plugin.getbyname(plugin.TV).Play(mode, tuner_id)
File
"/usr/lib/python2.4/site-packages/freevo/tv/plugins/mplayer.py",
line 129, in Play
ivtv_dev.setinput(vg.input_num)
File
"/usr/lib/python2.4/site-packages/freevo/tv/v4l2.py",
line 220, in setinput
r = fcntl.ioctl(self.device, i32(SETINPUT_NO),
struct.pack(INPUT_ST,value))
IOError: [Errno 22] Invalid argument
----------------------------------------------------------------------
>Comment By: Duncan Webb (duncanwebb)
Date: 2006-09-30 15:55
Message:
Logged In: YES
user_id=104395
Added a try except block around setinput, when it fails due
to a config error, it will write the settings to the main
log. This will help to identify where the problem lies.
eg:
Driver: ivtv
Card: WinTV PVR 350
Version: 400
Capabilities: 17236211
Enumerating supported Standards.
0: 0x3000 NTSC
1: 0xff PAL
2: 0x7f0000 SECAM
Current Standard is: 0xff
Enumerating supported Inputs.
0: Composite 0
1: Composite 1
2: Composite 2
3: Composite 3
4: Tuner 0
5: Composite 4
6: S-Video 0
7: S-Video 1
8: S-Video 2
9: S-Video 3
Input: 9
Width: 720, Height: 576
Read Frequency: 2808
Here the Input is 9 and the tuner is 4.
----------------------------------------------------------------------
Comment By: Duncan Webb (duncanwebb)
Date: 2006-09-27 16:18
Message:
Logged In: YES
user_id=104395
I know what caused this:
Upgrading the ivtv driver has changed the tuner input from 4
to 0.
I'm thinking where to put this error handling. There is
virtually no error handling in tv/v4l2.py. However it is
easy to trap the IOError there. Trouble is that errno 22 is
returned when the function is called with either the wrong
arguments or the sizes of the structure is incorrect.
I think that there is a better way and I'll see if I can
find it.
----------------------------------------------------------------------
Comment By: John Molohan (johnmolohan)
Date: 2006-09-27 11:14
Message:
Logged In: YES
user_id=774680
This is caused by setting an invalid input_num in
VIDEO_GROUPS in local_conf.py so it's not a showstopper but
some errorhandling and user notification might be nice.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1566027&group_id=46652
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel