On Thursday, January 5, 2006, 2:03:46 PM, Rob wrote:
> Hi,
> John Molohan wrote:
>> Duncan Webb wrote:
>>
>>> John Molohan wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm running freevo 1.5.3 patched for python2.4, with a pvr-150. This
>>>> setup had been running nicely until I upgraded from ivtv-0.3.3k to
>>>> ivtv-0.4.0 drivers (I wanted to check out Duncans vbi2srt). I can
>>>> still watch TV with freevo but recording gives the following crash.
>>>
>>>
>>>
>>> I think that you should use freevo-1.5.4 with Python-2.4. Somewhere I
>>> read that freevo-1.5.4 had fixes for Python-2.4.
>>>
>>> Personally I use Python-2.3, freevo-1.5.4 and ivtv-0.4.0 without any
>>> problems. Robert Winder reports that ivtv-0.4.1 also works.
> Does that mean some people running 0.4.1 don't have this problem?
What i recall is when DEBUG is set in local_conf.py some extra
informational ioctl is called. This bug is there for a year or maybe
more :-). User can workaround this by disabling DEBUG or removing (if
DEBUG: v.print_settings()) in ivtv_record.py as Rob already pointed
out or apply the following oneliner patch provided by Duncan Web back
in september and not the one he mentioned earlier in this thread ;-)
--- v4l2.py 2006-01-05 20:56:22.000000000 +0100
+++ v4l2.py.orig 2006-01-05 20:53:54.000000000 +0100
@@ -243,7 +243,7 @@
def getfmt(self):
- val = struct.pack( FMT_ST, 1L,0,0,0,0,0,0,0)
+ val = struct.pack( FMT_ST, 0,0,0,0,0,0,0,0)
r = fcntl.ioctl(self.device,GET_FMT_NO,val)
return struct.unpack( FMT_ST, r )
But if a my hijack this post, when using Duncan's his vbi2srt i
noticed something has changed since at least ivtv 0.4.0 in the auto
load process and initialisation of the ivtv card. It sets my card in
PAL settings but other specific PAL settings like framerate and
framespergop aren't correctly set. Didn't noticed this before but at
least since ivtv 0.4.0 it sets framerate=0 where it should be
framerate=1 (0=30 frames NTSC and 1=25 frames PAL). No worries still
because when recording with freevo ioctls are passed on to ivtv with
the values given in TV_IVTV_OPTIONS where i have 'framerate' : 1
and 'framespergop' : 15,
But these particular values aren't set by freevo's ioctl's ? Other
values in TV_IVTV_OPTIONS are correctly set. Did looked at the code in
V4l2.py but changes and debugging this didn't looked trivial to me.
Oh and @ Duncan this framerate issue is not the reason why the subtitles
aren't in sync with xine. There are sync probs with or without a
correct framerate or gop setting. Mplayer OTOH works fine and keeps the
subtitles perfectly in sync.
>> confirm, as I really want to try out your code. I think Rob did most of
>> the ivtv work, maybe he can shed some light?
> Yep.
>>>> "/usr/lib/python2.4/site-packages/freevo/tv/v4l2.py", line 249, in
>>>> getfmt
>>>> 2006/01/04 18:12 GMT [*RecordServer*] r =
>>>> fcntl.ioctl(self.device,i32(GET_FMT_NO),val)
>>>> 2006/01/04 18:12 GMT [*RecordServer*] IOError: [Errno 22] Invalid
>>>> argument
> Strange, the ivtv guys are working towards v4l2 compatability but it
> looks like a driver change broke something. I don't have 0.4.1 running
> here yet though, but maybe I'll have a chance to update soon. In the
> meantime just comment out line 160 in
> /usr/lib/python2.4/site-packages/freevo/tv/plugins/ivtv_record.py (if
> DEBUG: v.print_settings()). You also may like to try the 0.5.x driver.
> -Rob
/Robert
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel